MauryaHub PYQ Practice

Reinforcement Learning · End Term · Sep 2025 · FN

Reinforcement Learning · End Term · Sep 2025 FN

← Course papers · Start practice / exam

Questions and published explanations below are available without starting a test. Some questions may not have a published solution yet.

0 / 16 published solutions

Question 2 MCQ · 2.0 marks

Consider a discounted return
Source diagram or notation
in an infinite-horizon MDP with bounded rewards
Source diagram or notation
and discount factor
Source diagram or notation
. Which of the following statements is/are correct? 1. For fixed rewards, the contribution of
Source diagram or notation
to
Source diagram or notation
decays geometrically as
Source diagram or notation
. 2. If
Source diagram or notation
and rewards are uniformly bounded, the infinite sum
Source diagram or notation
is always finite. 3. For
Source diagram or notation
, the discounted return
Source diagram or notation
is bounded above in magnitude by
Source diagram or notation
.
6406536034980.
1, 2, 3
6406536034981.
1, 3
6406536034982.
2, 3
6406536034983.
only 1
6406536034984.
only 3

A published solution is not available for this question yet.

Report a correction for Q2

Question 3 MCQ · 1.0 marks

In the UCT (Upper Confidence bounds applied to Trees) variant of Monte Carlo Tree Search, the tree policy at a state
Source diagram or notation
typically selects an action
Source diagram or notation
by maximising
6406536034985.
A pure exploitation term based only on the estimated value
Source diagram or notation
6406536034986.
A pure exploration term based only on visit counts
Source diagram or notation
6406536034987.
A combination of estimated value and an exploration bonus based on visit counts
6406536034988.
A random choice among all child actions

A published solution is not available for this question yet.

Report a correction for Q3

Question 4 MCQ · 2.0 marks

Consider the following target equations: **Equation 1**
Source diagram or notation
**Equation 2**
Source diagram or notation
In both equations,
Source diagram or notation
refers to the shared parameters between the state-value network and advantage network.
Source diagram or notation
and
Source diagram or notation
refer to the non-shared parameters of the state-value and advantage network, respectively. In both equations,
Source diagram or notation
is calculated as follows:
Source diagram or notation
Note:
Source diagram or notation
are target network parameters for online network parameters
Source diagram or notation
Which among the following are correct statements?
6406536034989.
Target in Equation 1 is characteristic of Dueling DQN algorithm and target in equation 2 is characteristic of Dueling DDQN alogrithm
6406536034990.
Target in Equation 2 is characteristic of DQN algorithm and target in equation 2 is characteristic of Double DQN alogrithm
6406536034991.
Target in Equation 2 is characteristic of the DQN algorithm, and the target in Equation 2 is characteristic of the Dueling DDQN alogrithm
6406536034992.
Target in Equation 2 is characteristic of the Double Q-learning algorithm and the target in Equation 2 is characteristic of DDQN

A published solution is not available for this question yet.

Report a correction for Q4

Question 5 MSQ · 2.0 marks

Consider the REINFORCE update with baseline for a stochastic policy
Source diagram or notation
:
Source diagram or notation
Which of the following statements are true?
6406536034993.
Using a state-dependent baseline
Source diagram or notation
can reduce the variance of the gradient estimate without introducing bias.
6406536034994.
Choosing
Source diagram or notation
makes the update equivalent to using an advantage function.
6406536034995.
If
Source diagram or notation
depends on the action
Source diagram or notation
, the gradient estimate can become biased.
6406536034996.
Any baseline
Source diagram or notation
that is independent of
Source diagram or notation
will necessarily make the gradient estimate unbiased.

A published solution is not available for this question yet.

Report a correction for Q5

Question 6 NAT · 2.0 marks

Consider following MDP, assume
Source diagram or notation
:
Source diagram or notation
The edges have the value
Source diagram or notation
, where
Source diagram or notation
denotes the transition probability and
Source diagram or notation
is the immediate expected reward.
Source diagram or notation
are non-terminal states and
Source diagram or notation
is a terminal state. Based on the above data, answer the given
What is the probability that the accumulating eligibility trace for state
Source diagram or notation
is more than 3 at the end of a trajectory? **(Write your answer up to 4 decimal places)**

A published solution is not available for this question yet.

Report a correction for Q6

Question 7 NAT · 2.0 marks

Consider following MDP, assume
Source diagram or notation
:
Source diagram or notation
The edges have the value
Source diagram or notation
, where
Source diagram or notation
denotes the transition probability and
Source diagram or notation
is the immediate expected reward.
Source diagram or notation
are non-terminal states and
Source diagram or notation
is a terminal state. Based on the above data, answer the given
Consider the following trajectory that the agent follows:
Source diagram or notation
What will the eligibility trace of state
Source diagram or notation
just before the episode terminates?**(Write your answer** **up to 4 decimal places)**

A published solution is not available for this question yet.

Report a correction for Q7

Question 8 NAT · 2.0 marks

Consider a 2D navigation environment (as shown in the figure below) where an autonomous cleaning robot must locate and collect trash items (T1 and T2) scattered in the environment and then deliver them to a designated disposal bin (G). The environment is shaped by curved, contour- like walls, forming nested spaces with only one narrow passage connecting them, which requires deliberate path planning.
Source diagram or notation
In this environment, the robot takes discrete actions from its action space
Source diagram or notation
,
Source diagram or notation
{ NORTH, SOUTH, EAST, WEST } Each action attempts to move the robot by
Source diagram or notation
cm in the corresponding direction. If the action would cause a collision with a wall boundary, the robot remains in the same position and receives a penalty. The grey regions represent potholes. If the robot ends up in one, it cannot escape on its own and requires human help, leading to a substantial penalty and relocation to the nearest safe position. When the agent reaches a trash item, it automatically collects it and receives a reward. Likewise, upon reaching a disposal bin, it automatically unloads the collected trash. Therefore, explicit pickup and drop actions are not required. The episode terminates either when the agent reaches the Goal (G) while carrying at least one piece of trash, or when it has fallen into potholes a total of 10 times. The position of the Robot (
Source diagram or notation
) can be represented as a tuple
Source diagram or notation
, where
Source diagram or notation
and
Source diagram or notation
are the distances of the robot from the bottom-left corner of the environment. For state representation, we would consider state discretisation by performing tile as well as coarse coding, which converts
Source diagram or notation
into
Source diagram or notation
.
Source diagram or notation
Observe that there is 1 grid-tiling and 1 coarse-tiling here:
Source diagram or notation
Source diagram or notation
Based on the above data, answer the given
Using the coded state representation (
Source diagram or notation
) as input to a DQN with two hidden layers and a fully connected output layer, what should be the dimensionality of the network’s input layer?

A published solution is not available for this question yet.

Report a correction for Q8

Question 9 NAT · 2.0 marks

Consider a 2D navigation environment (as shown in the figure below) where an autonomous cleaning robot must locate and collect trash items (T1 and T2) scattered in the environment and then deliver them to a designated disposal bin (G). The environment is shaped by curved, contour- like walls, forming nested spaces with only one narrow passage connecting them, which requires deliberate path planning.
Source diagram or notation
In this environment, the robot takes discrete actions from its action space
Source diagram or notation
,
Source diagram or notation
{ NORTH, SOUTH, EAST, WEST } Each action attempts to move the robot by
Source diagram or notation
cm in the corresponding direction. If the action would cause a collision with a wall boundary, the robot remains in the same position and receives a penalty. The grey regions represent potholes. If the robot ends up in one, it cannot escape on its own and requires human help, leading to a substantial penalty and relocation to the nearest safe position. When the agent reaches a trash item, it automatically collects it and receives a reward. Likewise, upon reaching a disposal bin, it automatically unloads the collected trash. Therefore, explicit pickup and drop actions are not required. The episode terminates either when the agent reaches the Goal (G) while carrying at least one piece of trash, or when it has fallen into potholes a total of 10 times. The position of the Robot (
Source diagram or notation
) can be represented as a tuple
Source diagram or notation
, where
Source diagram or notation
and
Source diagram or notation
are the distances of the robot from the bottom-left corner of the environment. For state representation, we would consider state discretisation by performing tile as well as coarse coding, which converts
Source diagram or notation
into
Source diagram or notation
.
Source diagram or notation
Observe that there is 1 grid-tiling and 1 coarse-tiling here:
Source diagram or notation
Source diagram or notation
Based on the above data, answer the given
Using the coded state representation (
Source diagram or notation
) as input to a DQN with two hidden layers and a fully connected output layer, what should be the size of the output layer?

A published solution is not available for this question yet.

Report a correction for Q9

Question 10 MSQ · 2.0 marks

Consider a 2D navigation environment (as shown in the figure below) where an autonomous cleaning robot must locate and collect trash items (T1 and T2) scattered in the environment and then deliver them to a designated disposal bin (G). The environment is shaped by curved, contour- like walls, forming nested spaces with only one narrow passage connecting them, which requires deliberate path planning.
Source diagram or notation
In this environment, the robot takes discrete actions from its action space
Source diagram or notation
,
Source diagram or notation
{ NORTH, SOUTH, EAST, WEST } Each action attempts to move the robot by
Source diagram or notation
cm in the corresponding direction. If the action would cause a collision with a wall boundary, the robot remains in the same position and receives a penalty. The grey regions represent potholes. If the robot ends up in one, it cannot escape on its own and requires human help, leading to a substantial penalty and relocation to the nearest safe position. When the agent reaches a trash item, it automatically collects it and receives a reward. Likewise, upon reaching a disposal bin, it automatically unloads the collected trash. Therefore, explicit pickup and drop actions are not required. The episode terminates either when the agent reaches the Goal (G) while carrying at least one piece of trash, or when it has fallen into potholes a total of 10 times. The position of the Robot (
Source diagram or notation
) can be represented as a tuple
Source diagram or notation
, where
Source diagram or notation
and
Source diagram or notation
are the distances of the robot from the bottom-left corner of the environment. For state representation, we would consider state discretisation by performing tile as well as coarse coding, which converts
Source diagram or notation
into
Source diagram or notation
.
Source diagram or notation
Observe that there is 1 grid-tiling and 1 coarse-tiling here:
Source diagram or notation
Source diagram or notation
Based on the above data, answer the given
In the given environment, the state space is continuous while the action space is discrete. Now consider a similar environment where the action space is also continuous, with the action defined as the robot’s rotation angle relative to the positive horizontal axis. You decide to use a **Deterministic Policy Gradient (DPG)** method with a deterministic policy
Source diagram or notation
. Which of the following statements are valid for ensuring adequate exploration and obtaining unbiased policy-gradient estimates?
6406536035001.
In a deterministic but stochastic environment, the environment’s own randomness can provide sufficient exploration, so an explicit stochastic behaviour policy is not strictly necessary for exploration.
6406536035002.
In a deterministic and non-stochastic environment, to ensure exploration we can use an off-policy actor–critic setup, where the behaviour policy
Source diagram or notation
is more exploratory (e.g.,
Source diagram or notation
, where
Source diagram or notation
is small noise) than the deterministic target policy
Source diagram or notation
.
6406536035003.
In off-policy DPG, the policy gradient is taken with respect to the behaviour policy
Source diagram or notation
, since it is the one generating the data, rather than with respect to the deterministic target policy
Source diagram or notation
.
6406536035004.
For DPG with a function-approximated critic
Source diagram or notation
, using a compatible parametrisation between
Source diagram or notation
and
Source diagram or notation
can help ensure that the deterministic policy gradient estimate remains unbiased, even when
Source diagram or notation
is approximate.

A published solution is not available for this question yet.

Report a correction for Q10

Question 11 MCQ · 2.0 marks

Consider a 2D navigation environment (as shown in the figure below) where an autonomous cleaning robot must locate and collect trash items (T1 and T2) scattered in the environment and then deliver them to a designated disposal bin (G). The environment is shaped by curved, contour- like walls, forming nested spaces with only one narrow passage connecting them, which requires deliberate path planning.
Source diagram or notation
In this environment, the robot takes discrete actions from its action space
Source diagram or notation
,
Source diagram or notation
{ NORTH, SOUTH, EAST, WEST } Each action attempts to move the robot by
Source diagram or notation
cm in the corresponding direction. If the action would cause a collision with a wall boundary, the robot remains in the same position and receives a penalty. The grey regions represent potholes. If the robot ends up in one, it cannot escape on its own and requires human help, leading to a substantial penalty and relocation to the nearest safe position. When the agent reaches a trash item, it automatically collects it and receives a reward. Likewise, upon reaching a disposal bin, it automatically unloads the collected trash. Therefore, explicit pickup and drop actions are not required. The episode terminates either when the agent reaches the Goal (G) while carrying at least one piece of trash, or when it has fallen into potholes a total of 10 times. The position of the Robot (
Source diagram or notation
) can be represented as a tuple
Source diagram or notation
, where
Source diagram or notation
and
Source diagram or notation
are the distances of the robot from the bottom-left corner of the environment. For state representation, we would consider state discretisation by performing tile as well as coarse coding, which converts
Source diagram or notation
into
Source diagram or notation
.
Source diagram or notation
Observe that there is 1 grid-tiling and 1 coarse-tiling here:
Source diagram or notation
Source diagram or notation
Based on the above data, answer the given
You have decided to use the Dueling DQN architecture with the aggregation.
Source diagram or notation
What is the primary purpose of subtracting the term
Source diagram or notation
in this formulation?
6406536035005.
To clip the magnitude of the advantage values and thereby prevent exploding Q-values.
6406536035006.
To guarantee that the action with the largest advantage always has a strictly positive Q-value.
6406536035007.
To force the average advantage over all actions in a state to be zero, making the decomposition into
Source diagram or notation
and
Source diagram or notation
well-defined.
6406536035008.
To allow the network to represent any Q-function using only the advantage stream, making the value stream redundant.

A published solution is not available for this question yet.

Report a correction for Q11

Question 12 NAT · 2.0 marks

Consider the following Dueling DQN architecture given below that approximates the state-value function (
Source diagram or notation
) and advantage for actions A and B for states
Source diagram or notation
. The hidden layer nodes (grey colored nodes) employ the RELU activation function.
Source diagram or notation
The weight matrices of the network are given by:
Source diagram or notation
Here,
Source diagram or notation
contains the weights connecting the **input layer** to the **first hidden layer**. Similarly,
Source diagram or notation
contains the weights connecting the **first hidden layer**
Source diagram or notation
to the **second hidden** **layer**
Source diagram or notation
.
Source diagram or notation
Source diagram or notation
contains the weights connecting the
Source diagram or notation
to the
Source diagram or notation
.
Source diagram or notation
contains the weights connecting the layer
Source diagram or notation
to the layer
Source diagram or notation
. Lastly,
Source diagram or notation
contains the weights connecting the layer
Source diagram or notation
to the layer
Source diagram or notation
. Each entry in these matrices corresponds to a single scalar weight. For example, the entry
Source diagram or notation
in
Source diagram or notation
denotes the weight from neuron
Source diagram or notation
in the first hidden layer to neuron
Source diagram or notation
in the second hidden layer. At some timestep
Source diagram or notation
, the weight matrices are as follows
Source diagram or notation
Source diagram or notation
Let
Source diagram or notation
denote the set containing the weight matrices
Source diagram or notation
and
Source diagram or notation
. Let
Source diagram or notation
represent the set of weight matrices
Source diagram or notation
and
Source diagram or notation
, and let
Source diagram or notation
denote the set consisting of the weight matrix
Source diagram or notation
. Recall the dueling network formulation used in the programming assignment:
Source diagram or notation
We are interested in computing Q-values for the following state:
Source diagram or notation
Based on the above data, answer the given
Compute the **state-value**
Source diagram or notation
for state
Source diagram or notation
.

A published solution is not available for this question yet.

Report a correction for Q12

Question 13 NAT · 3.0 marks

Consider the following Dueling DQN architecture given below that approximates the state-value function (
Source diagram or notation
) and advantage for actions A and B for states
Source diagram or notation
. The hidden layer nodes (grey colored nodes) employ the RELU activation function.
Source diagram or notation
The weight matrices of the network are given by:
Source diagram or notation
Here,
Source diagram or notation
contains the weights connecting the **input layer** to the **first hidden layer**. Similarly,
Source diagram or notation
contains the weights connecting the **first hidden layer**
Source diagram or notation
to the **second hidden** **layer**
Source diagram or notation
.
Source diagram or notation
Source diagram or notation
contains the weights connecting the
Source diagram or notation
to the
Source diagram or notation
.
Source diagram or notation
contains the weights connecting the layer
Source diagram or notation
to the layer
Source diagram or notation
. Lastly,
Source diagram or notation
contains the weights connecting the layer
Source diagram or notation
to the layer
Source diagram or notation
. Each entry in these matrices corresponds to a single scalar weight. For example, the entry
Source diagram or notation
in
Source diagram or notation
denotes the weight from neuron
Source diagram or notation
in the first hidden layer to neuron
Source diagram or notation
in the second hidden layer. At some timestep
Source diagram or notation
, the weight matrices are as follows
Source diagram or notation
Source diagram or notation
Let
Source diagram or notation
denote the set containing the weight matrices
Source diagram or notation
and
Source diagram or notation
. Let
Source diagram or notation
represent the set of weight matrices
Source diagram or notation
and
Source diagram or notation
, and let
Source diagram or notation
denote the set consisting of the weight matrix
Source diagram or notation
. Recall the dueling network formulation used in the programming assignment:
Source diagram or notation
We are interested in computing Q-values for the following state:
Source diagram or notation
Based on the above data, answer the given
In order to compute Q-values, we need the advantage of action A and action B for state
Source diagram or notation
? Compute the following advantage vector
Source diagram or notation
What is the value of
Source diagram or notation
+
Source diagram or notation
?

A published solution is not available for this question yet.

Report a correction for Q13

Question 14 NAT · 3.0 marks

Consider the following Dueling DQN architecture given below that approximates the state-value function (
Source diagram or notation
) and advantage for actions A and B for states
Source diagram or notation
. The hidden layer nodes (grey colored nodes) employ the RELU activation function.
Source diagram or notation
The weight matrices of the network are given by:
Source diagram or notation
Here,
Source diagram or notation
contains the weights connecting the **input layer** to the **first hidden layer**. Similarly,
Source diagram or notation
contains the weights connecting the **first hidden layer**
Source diagram or notation
to the **second hidden** **layer**
Source diagram or notation
.
Source diagram or notation
Source diagram or notation
contains the weights connecting the
Source diagram or notation
to the
Source diagram or notation
.
Source diagram or notation
contains the weights connecting the layer
Source diagram or notation
to the layer
Source diagram or notation
. Lastly,
Source diagram or notation
contains the weights connecting the layer
Source diagram or notation
to the layer
Source diagram or notation
. Each entry in these matrices corresponds to a single scalar weight. For example, the entry
Source diagram or notation
in
Source diagram or notation
denotes the weight from neuron
Source diagram or notation
in the first hidden layer to neuron
Source diagram or notation
in the second hidden layer. At some timestep
Source diagram or notation
, the weight matrices are as follows
Source diagram or notation
Source diagram or notation
Let
Source diagram or notation
denote the set containing the weight matrices
Source diagram or notation
and
Source diagram or notation
. Let
Source diagram or notation
represent the set of weight matrices
Source diagram or notation
and
Source diagram or notation
, and let
Source diagram or notation
denote the set consisting of the weight matrix
Source diagram or notation
. Recall the dueling network formulation used in the programming assignment:
Source diagram or notation
We are interested in computing Q-values for the following state:
Source diagram or notation
Based on the above data, answer the given
Compute the Q-value of action A and action B for state
Source diagram or notation
. What is the value of
Source diagram or notation
+
Source diagram or notation
?

A published solution is not available for this question yet.

Report a correction for Q14

Question 15 MCQ · 1.0 marks

Consider the following navigation problem:
Source diagram or notation
The agent is spawned at the Start state, and has 4 actions on each state (Up, Down, Left, Right). Teleport to X is a special state; if the agent lands on this state, it is **instantly** teleported to the state marked X. Every action from every state, excluding the End state, incurs a reward of -1 (Episode terminates once the agent reaches the End state) A hierarchical learning approach is proposed, with the following hierarchy:
Source diagram or notation
where zone A and B correspond to rows 2-4 and 5-7 on the grid, respectively. Based on the above data, answer the given
Which of the routes illustrated on the grid is taken when the Hierarchically Optimal policy is executed?
6406536035012.
Route 1
6406536035013.
Route 2
6406536035014.
Route 3

A published solution is not available for this question yet.

Report a correction for Q15

Question 16 MCQ · 1.0 marks

Consider the following navigation problem:
Source diagram or notation
The agent is spawned at the Start state, and has 4 actions on each state (Up, Down, Left, Right). Teleport to X is a special state; if the agent lands on this state, it is **instantly** teleported to the state marked X. Every action from every state, excluding the End state, incurs a reward of -1 (Episode terminates once the agent reaches the End state) A hierarchical learning approach is proposed, with the following hierarchy:
Source diagram or notation
where zone A and B correspond to rows 2-4 and 5-7 on the grid, respectively. Based on the above data, answer the given
Which of the routes illustrated on the grid is taken when the Recursively Optimal policy is executed?
6406536035015.
Route 1
6406536035016.
Route 2
6406536035017.
Route 3

A published solution is not available for this question yet.

Report a correction for Q16

Question 17 NAT · 1.0 marks

Consider the following navigation problem:
Source diagram or notation
The agent is spawned at the Start state, and has 4 actions on each state (Up, Down, Left, Right). Teleport to X is a special state; if the agent lands on this state, it is **instantly** teleported to the state marked X. Every action from every state, excluding the End state, incurs a reward of -1 (Episode terminates once the agent reaches the End state) A hierarchical learning approach is proposed, with the following hierarchy:
Source diagram or notation
where zone A and B correspond to rows 2-4 and 5-7 on the grid, respectively. Based on the above data, answer the given
Calculate the number of time-steps taken to finish the episode when the flat optimal policy is executed.

A published solution is not available for this question yet.

Report a correction for Q17