MauryaHub PYQ Practice

Computational Thinking · End Term · Jan 2026 · AN

Computational Thinking · End Term · Jan 2026 AN

← 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
6406536924206.
Useful Data has been mentioned above.
6406536924207.
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" dataset.
Source diagram or notation
At the end of execution, what does **Dict** represent?
6406536924208.
A dictionary where each city maps to the lowest total marks scored and the corresponding student's name.
6406536924209.
A dictionary where each city maps to the highest total marks scored and the corresponding student's name.
6406536924210.
A dictionary where each city maps to the lowest total marks recorded in that city.
6406536924211.
None of these

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 "Scores" dataset. What will **Z** represent at the end of the execution?
Source diagram or notation
6406536924220.
Number of students from the cities with the average Physics marks of the city less than the average Physics marks of the dataset.
6406536924221.
Number of students from the cities with the average Physics marks of the city greater than the average Physics marks of the dataset.
6406536924222.
Number of cities with the average Physics marks less than the average Physics marks of the dataset.
6406536924223.
Number of cities with the average Physics marks more than the average Physics marks of the dataset

A published solution is not available for this question yet.

Report a correction for Q4

Question 5 MCQ · 6.0 marks

Let **X** and **Y** be two rows in the "Scores" table. We call **X** and **Y** partially matching if student **X** and **Y** are either have the same **Total Marks** or are from the same city, but not both. Let **partialMatch(X, Y)** be a procedure to find whether **X** and **Y** are partially matching. Choose the correct implementation of the procedure **partialMatch**.
6406536924212.Source diagram or notation
6406536924213.Source diagram or notation
6406536924214.Source diagram or notation
6406536924215.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q5

Question 6 MCQ · 6.0 marks

The following pseudocode is executed using the **"Scores"** dataset. What will the value of **B** represent at the end of execution?
Source diagram or notation
6406536924237.
Number of repeated marks in Physics
6406536924238.
Minimum marks in Physics
6406536924239.
Maximum marks in Physics
6406536924240.
Most frequent marks in Physics

A published solution is not available for this question yet.

Report a correction for Q6

Question 7 MCQ · 4.0 marks

The following pseudocode is executed using the "Library" dataset. What will **B** represent at the end of execution?
Source diagram or notation
6406536924216.
Number of books written by author Kalam that have at least 200 pages
6406536924217.
Number of books not written by author Kalam and that have at least 200 pages
6406536924218.
Number of books written by author Kalam that have fewer than 200 pages
6406536924219.
Number of books that are not written by author Kalam and have fewer than 200 pages

A published solution is not available for this question yet.

Report a correction for Q7

Question 8 MSQ · 5.0 marks

Consider a graph generated from the "Scores" table that is represented by a matrix B. Each node in the graph corresponds to a student from the table. SeqNo is used to label the nodes in the graph. Which of the following statements are true about this graph?
Source diagram or notation
6406536924224.
There are two cliques in this graph, one for each gender.
6406536924225.
In every clique, there is at least a pair of students having different genders.
6406536924226.
All students in a given clique have the same gender.
6406536924227.
All students in a given clique are from the same city/town.
6406536924228.
There are no cliques in this graph.

A published solution is not available for this question yet.

Report a correction for Q8

Question 9 MSQ · 5.0 marks

Consider the following pseudocode for inserting elements into a sorted list. The pseudocode may have mistakes. Identify all such mistakes (if any).
Source diagram or notation
6406536924245.
Line 5: inside if statement condition should be '(not(inserted))'.
6406536924246.
Line 6: inside if statement condition should be 'x > z'.
6406536924247.
Line 11: [z] needs to be appended to the end of newList.
6406536924248.
Line 14: 'x' is appended to the end of the list instead of the beginning.

A published solution is not available for this question yet.

Report a correction for Q9

Question 10 MSQ · 5.0 marks

Let **LA** be a non-empty list of integers. A list **LB** is constructed using the following pseudocode.
Source diagram or notation
Which of the following will return **true** after the execution of above pseudocode?
6406536924255.
**length**(**LB**) == **length**(**LA**) - 1
6406536924256.
**LC** == **[50]**
6406536924257.
**last**(**LB**) == **[10]**
6406536924258.
**init**(**first**(**rest**(**LB**))) == **[20]**
6406536924259.
**first**(**last**(**LB**)) == **[50]**
6406536924260.
**first**(**init**(**LB**)) == **[10]**

A published solution is not available for this question yet.

Report a correction for Q10

Question 11 MSQ · 5.0 marks

The following pseudocode is executed using the "Words" dataset. Assume that the rows in the table are sorted in the ascending order of sequence number. What does **outList** represent at the end of execution?
Source diagram or notation
6406536924261.
**outList** represents a list of lists
6406536924262.
Each element in **outList** represents a list containing words and their letter counts from a sentence except for the adjectives
6406536924263.
Each element in **outList** corresponds to one word from the paragraph
6406536924264.
Each element in **outList** represents the words from a sentence that have part of speech 'adjective'

A published solution is not available for this question yet.

Report a correction for Q11

Question 12 MSQ · 5.0 marks

Consider the graph given below.
Source diagram or notation
Which of the following statement(s) is/are true?
6406536924265.
Vertex 0 is part of every clique of size 3 in the graph.
6406536924266.
There exists a clique of size 4 in the graph.
6406536924267.
Vertices 3 and 4 belong to at most one common clique of size 3.
6406536924268.
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 Q12

Question 13 MSQ · 6.0 marks

Consider the following pseudocode is executed using the "Words" dataset.
Source diagram or notation
Which of the following statements is/are true?
6406536924229.
**A** represent the number of sentences in the "Words" dataset that do not end with a noun
6406536924230.
**A** represent the number of words in the "Words" dataset that are nouns
6406536924231.
**outList** represents list of lists of first and last word of each sentence in that order.
6406536924232.
**outList** represents list of lists of last and first word of each sentence in that order.

A published solution is not available for this question yet.

Report a correction for Q13

Question 14 MSQ · 6.0 marks

Consider the following procedure, where L1 and L2 are two non-empty lists.
Source diagram or notation
Choose the correct option(s).
6406536924241.
If L1 = [2, 3, 5], L2 = [2, 4, 5], then CompareLists[L1, L2] returns false.
6406536924242.
If L1 = [2, 4, 5], L2 = [5, 4, 2], then CompareLists[L1, L2] returns true.
6406536924243.
If L1 = [2, 4, 5], L2 = [2, 5, 4], then CompareLists[L1, L2] returns true.
6406536924244.
If L1 = [2, 4, 5], L2 = [3, 4, 2], then CompareLists[L1, L2] returns false.

A published solution is not available for this question yet.

Report a correction for Q14

Question 15 MSQ · 6.0 marks

The given pseudocode is executed using the "Words" dataset. At the end of execution **A** captures the frequency count of the least frequent consonant in the dataset. But the pseudocode may have mistakes. Identify all such mistakes (if any). Assume that all statements not listed in the options below are free of errors.
Source diagram or notation
6406536924249.
Line 1: Incorrect initialization of **A**
6406536924250.
Line 8: Incorrect conditional expression
6406536924251.
Line 9: **A** updated with wrong value
6406536924252.
Line 13: Incorrect initialization of **i**
6406536924253.
Line 16: Conditional expression should not use "**not**" operator
6406536924254.
Line 22: **i** updated at wrong place

A published solution is not available for this question yet.

Report a correction for Q15

Question 16 MSQ · 4.0 marks

Let **D** be a non-empty dictionary. Choose the correct option(s).
6406536924233.
Let **a** be a key of dictionary **D**, then **a** is always an integer.
6406536924234.
For keys **a** and **b** in **D**, if **a != b** then **D[a] != D[b]** may or may not be true.
6406536924235.
For keys **a** and **b** in **D**, **a == b** is always True.
6406536924236.
If **D = { 'a': 5, 'b' : [3, 4, 7], 'c' : 6}**, then the value of **init(rest(D[b]))** is [4].

A published solution is not available for this question yet.

Report a correction for Q16

Question 17 NAT · 5.0 marks

What will the value of **S** be at the end of the execution of the following pseudocode?
Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q17

Question 18 NAT · 4.0 marks

Consider the following procedure.
Source diagram or notation
What will the return value of **DoSomething(728)** be?

A published solution is not available for this question yet.

Report a correction for Q18

Question 19 MCQ · 4.0 marks

In the following pseudocode: • graph is a matrix • parents is a dictionary • sequence is a list
Source diagram or notation
Consider the following graph with six nodes. **A** is the **6 × 6** adjacency matrix corresponding to this graph. Assume that it has already been computed:
Source diagram or notation
In given subquestions, **S** represents a list, **P** represents a dictionary, while **A** represents adjacency matrix of the above graph. Based on the above data, answer the given subquestions.
What will be the value of S after executing the following pseudocode?
Source diagram or notation
6406536924271.
[0, 1, 2, 5, 3, 4]
6406536924272.
[0, 1, 4]
6406536924273.
[0, 1, 2, 3, 5, 4]
6406536924274.
[0, 3, 1, 4, 5]

A published solution is not available for this question yet.

Report a correction for Q19

Question 20 MCQ · 4.0 marks

In the following pseudocode: • graph is a matrix • parents is a dictionary • sequence is a list
Source diagram or notation
Consider the following graph with six nodes. **A** is the **6 × 6** adjacency matrix corresponding to this graph. Assume that it has already been computed:
Source diagram or notation
In given subquestions, **S** represents a list, **P** represents a dictionary, while **A** represents adjacency matrix of the above graph. Based on the above data, answer the given subquestions.
What will be the value of nodes after executing the following pseudocode?
Source diagram or notation
6406536924275.
[5, 2, 1, 0, 3, 4]
6406536924276.
[5, 2, 1, 4, 0, 3]
6406536924277.
[5, 2, 3, 0, 1, 4]
6406536924278.
Cannot be determined

A published solution is not available for this question yet.

Report a correction for Q20

Question 21 MCQ · 5.0 marks

Let **M** be an adjacency matrix of a graph **G** given below, where
Source diagram or notation
= 1 if there is an edge from **i** to **j**, otherwise 0. **ListV** represents the list of vertices of the graph **G**.
Source diagram or notation
Answer the given subquestions.
Consider the below pseudocode
Source diagram or notation
What will be the values of **p** and **q** at the end of execution?
Source diagram or notation
6406536924279.
p = 1, q = 1
6406536924280.
p = 2, q = 1
6406536924281.
p = 1, q = 2
6406536924282.
p = 2, q = 2

A published solution is not available for this question yet.

Report a correction for Q21

Question 22 NAT · 5.0 marks

Let **M** be an adjacency matrix of a graph **G** given below, where
Source diagram or notation
= 1 if there is an edge from **i** to **j**, otherwise 0. **ListV** represents the list of vertices of the graph **G**.
Source diagram or notation
Answer the given subquestions.
Consider the below pseudocode.
Source diagram or notation
What will be the value of **count** at the end of execution?

A published solution is not available for this question yet.

Report a correction for Q22