MauryaHub PYQ Practice

Computational Thinking · End Term · May 2026 · FN

Computational Thinking · End Term · May 2026 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 / 21 published solutions

Question 2 MCQ · 0.0 marks

Source diagram or notation
Source diagram or notation
6406537457941.
Useful Data has been mentioned above.
6406537457942.
This data attachment is just for a reference & not for an evaluation.

A published solution is not available for this question yet.

Report a correction for Q2

Question 3 MCQ · 5.0 marks

The following pseudocode is executed using the **"Scores"** table.
Source diagram or notation
What does
Source diagram or notation
represent?
6406537457943.
The average of the highest Chemistry marks scored across all the cities.
6406537457944.
The average Chemistry marks scored by all students in the dataset.
6406537457945.
The highest Chemistry marks among all cities, divided by the number of students.
6406537457946.
The average of the lowest Chemistry marks scored across all the cities.

A published solution is not available for this question yet.

Report a correction for Q3

Question 4 MCQ · 5.0 marks

The following pseudocode is executed using the **"Library"** dataset.
Source diagram or notation
What will the
Source diagram or notation
dictionary represent at the end of execution?
6406537457951.
Dictionary with authors as keys mapped to the span of years (difference between latest and earliest publication year) between their first and most recent book.
6406537457952.
Dictionary with authors as keys mapped to the year of their most recent publication.
6406537457953.
Dictionary with authors as keys mapped to the total number of books they have published.
6406537457954.
Dictionary with authors as keys mapped to the year of their first publication.

A published solution is not available for this question yet.

Report a correction for Q4

Question 5 MCQ · 5.0 marks

Assume that A is the adjacency matrix of the graph shown below.
Source diagram or notation
Consider the following pseudocode:
Source diagram or notation
The procedure is called as follows:
Source diagram or notation
What will be the value of
Source diagram or notation
?
6406537457972.Source diagram or notation
6406537457973.Source diagram or notation
6406537457974.Source diagram or notation
6406537457975.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q5

Question 6 MCQ · 5.0 marks

The following pseudocode is executed using the **"Words"** dataset. What will **A** represent at the end of the execution?
Source diagram or notation
6406537457982.
Number of words that end with a comma.
6406537457983.
Number of words that end with a comma and have a letter count greater than ratio of number of words to sum of letter count.
6406537457984.
Number of words that end with a comma and have a letter count less than or equal to the average letter count of dataset.
6406537457985.
Number of words that end with a comma and have a letter count greater than the average letter count of dataset.

A published solution is not available for this question yet.

Report a correction for Q6

Question 7 MCQ · 4.0 marks

The following flowchart is executed using the **"Scores"** dataset. Assume that Rida and Siddharth both have scored the lowest total marks across the whole dataset which is 173. Let cards are arranged in such a way that Rida's card is below Siddharth's card, what will the values of **A** and **B** be at the end of the execution?
Source diagram or notation
6406537457947.Source diagram or notation
6406537457948.Source diagram or notation
6406537457949.Source diagram or notation
6406537457950.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q7

Question 8 MCQ · 4.0 marks

The following table contains information regarding books in a library. Each row in the table corresponds to a book and is authored by exactly two authors, with equal contributions from both. There is a pool of
Source diagram or notation
authors, each author being assigned a unique index between 0 and
Source diagram or notation
. There are
Source diagram or notation
books in total.
Source diagram or notation
The table is represented by a dictionary named
Source diagram or notation
, with the keys as serial numbers and values as the corresponding lists of authors. Assume that
Source diagram or notation
has already been computed. For example:
Source diagram or notation
Given a pair of authors
Source diagram or notation
, with
Source diagram or notation
, what does the value
Source diagram or notation
represent at the end of the execution of the following pseudocode?
Source diagram or notation
6406537457955.
It represents the number of books published by authors
Source diagram or notation
or
Source diagram or notation
6406537457956.
It represents the number of books in which authors
Source diagram or notation
and
Source diagram or notation
have collaborated
6406537457957.
It represents the number of books published by author
Source diagram or notation
plus the number of books published by author
Source diagram or notation
6406537457958.
It represents the number of books published by author
Source diagram or notation
in which they have not collaborated with author
Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q8

Question 9 MCQ · 6.0 marks

Consider the implementation of the following procedure **getDictionary**. Assume that the procedure **absolute** takes an integer as parameter and returns the absolute value. For example, absolute(-2) = 2 and absolute(3) = 3.
Source diagram or notation
Let **D** be the value returned by **getDictionary([10, 20, 5, 10, 40, 15, 23, 7, 16])**. Answer the given subquestions based on **D**.
What is the value of **D[10]** ?
6406537457959.
7
6406537457960.
10
6406537457961.
30
6406537457962.
20

A published solution is not available for this question yet.

Report a correction for Q9

Question 10 NAT · 5.0 marks

Consider the implementation of the following procedure **getDictionary**. Assume that the procedure **absolute** takes an integer as parameter and returns the absolute value. For example, absolute(-2) = 2 and absolute(3) = 3.
Source diagram or notation
Let **D** be the value returned by **getDictionary([10, 20, 5, 10, 40, 15, 23, 7, 16])**. Answer the given subquestions based on **D**.
What is the value of **length(keys(D))** ?

A published solution is not available for this question yet.

Report a correction for Q10

Question 11 MSQ · 5.0 marks

Consider the graph given below.
Source diagram or notation
Which of the following statement(s) is/are true?
6406537457964.
There are 4 cliques of size three present in the graph.
6406537457965.
The nodes 0, 1, 2 and 4 form a clique of size four.
6406537457966.
The maximum size of clique that appears in the graph is 4.
6406537457967.
The nodes 0 and 1 form a clique of size two.

A published solution is not available for this question yet.

Report a correction for Q11

Question 12 MSQ · 5.0 marks

Consider the following undirected graph
Source diagram or notation
:
Source diagram or notation
Which of the following statements are correct? Select all that apply.
6406537457976.
There are exactly 2 cliques of size three present in the graph
6406537457977.
The degree of vertex 2 is 3
6406537457978.
The maximum size of a clique present in the graph is 3
6406537457979.
The vertices 1, 2, and 3 form a clique of size three
6406537457980.
The vertices 2, 4, and 5 form a clique of size three
6406537457981.
The vertices 4 and 6 form a clique of size two

A published solution is not available for this question yet.

Report a correction for Q12

Question 13 MSQ · 5.0 marks

Consider the procedure below, where
Source diagram or notation
is a non-empty list of positive numbers.
Source diagram or notation
At the end of execution, which of the following statement(s) is/are correct about
Source diagram or notation
?
6406537457996.
The first element of
Source diagram or notation
equals the first element of
Source diagram or notation
.
6406537457997.Source diagram or notation
is a list of numbers in non-decreasing order.
6406537457998.
The last element of
Source diagram or notation
equals the maximum element of
Source diagram or notation
.
6406537457999.
The number of elements in
Source diagram or notation
is one less than that of
Source diagram or notation
.

A published solution is not available for this question yet.

Report a correction for Q13

Question 14 MCQ · 6.0 marks

Consider the following pseudocode where **ListV** represents a list of all vertices of the graph given below:
Source diagram or notation
The matrix
Source diagram or notation
represents the directed graph below:
Source diagram or notation
The initial matrix is:
Source diagram or notation
Which of the following can be the value of
Source diagram or notation
?
6406537457968.Source diagram or notation
6406537457969.Source diagram or notation
6406537457970.Source diagram or notation
6406537457971.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q14

Question 15 MCQ · 6.0 marks

The following pseudocode is executed using the **"Shopping Bills"** dataset.
Source diagram or notation
If
Source diagram or notation
is required to represent the number of unordered pairs of bills issued by different customers from the same shop, which implementation of the
Source diagram or notation
procedure is correct?
6406537457987.Source diagram or notation
6406537457988.Source diagram or notation
6406537457989.Source diagram or notation
6406537457990.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q15

Question 16 NAT · 4.0 marks

Let
Source diagram or notation
be a row in the **"Words"** table such that
Source diagram or notation
. What will be the value of
Source diagram or notation
at the end of execution of the following pseudocode?
Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q16

Question 17 MCQ · 5.0 marks

Consider the implementation of the procedure
Source diagram or notation
.
Source diagram or notation
is a list of integers (may contain duplicates).
Source diagram or notation
Let
Source diagram or notation
be the dictionary returned by
Source diagram or notation
. Based on the above data, answer the given subquestions.
What is the value of
Source diagram or notation
?
6406537457991.
3
6406537457992.
2
6406537457993.
0
6406537457994.
1

A published solution is not available for this question yet.

Report a correction for Q17

Question 18 NAT · 4.0 marks

Consider the implementation of the procedure
Source diagram or notation
.
Source diagram or notation
is a list of integers (may contain duplicates).
Source diagram or notation
Let
Source diagram or notation
be the dictionary returned by
Source diagram or notation
. Based on the above data, answer the given subquestions.
What is the value of
Source diagram or notation
?

A published solution is not available for this question yet.

Report a correction for Q18

Question 19 MSQ · 6.0 marks

A teacher stores the scores obtained by students in a list
Source diagram or notation
. The teacher wants to create a list called
Source diagram or notation
containing only those scores that are greater than or equal to 75. The scores must appear in
Source diagram or notation
in the same order in which they appear in
Source diagram or notation
. Answer the given subquestions based on this information
Source diagram or notation
is a recursive procedure that accepts
Source diagram or notation
as an argument and returns
Source diagram or notation
which is a list containing only those scores that are greater than or equal to 75, in their original order. Select the correct implementation(s) of the procedure
Source diagram or notation
.
6406537458000.Source diagram or notation
6406537458001.Source diagram or notation
6406537458002.Source diagram or notation
6406537458003.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q19

Question 20 MSQ · 4.0 marks

A teacher stores the scores obtained by students in a list
Source diagram or notation
. The teacher wants to create a list called
Source diagram or notation
containing only those scores that are greater than or equal to 75. The scores must appear in
Source diagram or notation
in the same order in which they appear in
Source diagram or notation
. Answer the given subquestions based on this information
Source diagram or notation
is a non-recursive procedure that accepts
Source diagram or notation
as an argument and returns
Source diagram or notation
. Select the correct implementation(s) of the procedure.
6406537458004.Source diagram or notation
6406537458005.Source diagram or notation
6406537458006.Source diagram or notation
6406537458007.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q20

Question 21 MSQ · 6.0 marks

Source diagram or notation
is a list of strings containing information about the outcomes of cricket matches played by India in a tournament. Assume that each element in the list is either
Source diagram or notation
or
Source diagram or notation
. For example, if five matches have been played,
Source diagram or notation
could be:
Source diagram or notation
We call a list of outcomes a blank slate if the number of wins is equal to the number of losses.
Source diagram or notation
is a procedure that accepts
Source diagram or notation
as input and returns
Source diagram or notation
if it is a blank slate and
Source diagram or notation
otherwise.
Source diagram or notation
Select the correct code fragment(s) to complete the pseudocode.
6406537458008.Source diagram or notation
6406537458009.Source diagram or notation
6406537458010.Source diagram or notation
6406537458011.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q21

Question 22 NAT · 5.0 marks

Consider the following procedure
Source diagram or notation
.
Source diagram or notation
What is the value of
Source diagram or notation
after the execution of the procedure?

A published solution is not available for this question yet.

Report a correction for Q22