MauryaHub PYQ Practice

Computational Thinking · End Term · Jan 2026 · FN

Computational Thinking · End Term · Jan 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
6406536956184.
Useful Data has been mentioned above.
6406536956185.
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 "Shopping Bills" dataset. Assume each customer has a distinct name.
Source diagram or notation
What will **N** represent at the end of the execution?
6406536956186.
Minimum number of bills issued to a single customer
6406536956187.
Maximum number of bills issued to a single customer
6406536956188.
Number of distinct customers in the dataset
6406536956189.
Minimum number of customers who purchased items from the same shop

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
6406536956198.
Number of students from the cities with the average total marks of the city more than the average total marks of the dataset.
6406536956199.
Number of students from the cities with the average total marks of the city less than the average total marks of the dataset.
6406536956200.
Number of cities with the average total marks less than the average total marks of the dataset.
6406536956201.
Number of cities with the average total marks more than the average total 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** either have the same **DOB** 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**.
6406536956190.Source diagram or notation
6406536956191.Source diagram or notation
6406536956192.Source diagram or notation
6406536956193.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q5

Question 6 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
6406536956194.
Number of books written by author Kalam in Hindi
6406536956195.
Number of books written by author Kalam that are not in Hindi
6406536956196.
Number of Hindi books written by authors other than Kalam
6406536956197.
Number of books that are not written by author Kalam and are in Hindi

A published solution is not available for this question yet.

Report a correction for Q6

Question 7 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?
6406536956202.
**A** represents the number of sentences in the "Words" dataset that end with a noun
6406536956203.
**A** represents the number of words in the "Words" dataset that are nouns
6406536956204.
**outList** represents a list of lists of last and first word of each sentence in that order.
6406536956205.
**outList** represents a list of lists of first and last word of each sentence in that order.

A published solution is not available for this question yet.

Report a correction for Q7

Question 8 MSQ · 6.0 marks

The following pseudocode finds the smallest integer present in the input list. Choose the correct code fragment to complete the pseudocode.
Source diagram or notation
6406536956214.Source diagram or notation
6406536956215.Source diagram or notation
6406536956216.Source diagram or notation
6406536956217.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q8

Question 9 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 most 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
6406536956222.
Line 1: Incorrect initialization of **D**
6406536956223.
Line 8: Incorrect conditional expression
6406536956224.
Line 9: **A** updated with wrong value
6406536956225.
Line 13: Incorrect initialization of **i**
6406536956226.
Line 16: Conditional expression should not use "**not**" operator
6406536956227.
Line 22: **i** updated at wrong place

A published solution is not available for this question yet.

Report a correction for Q9

Question 10 MSQ · 6.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?
6406536956228.
**length**(**LB**) == **length**(**LA**) - 1
6406536956229.
**LC** == [50]
6406536956230.
**last**(**LB**) == **LA**
6406536956231.
**init**(**first**(**rest**(**LB**))) == [40, 30, 20]
6406536956232.
**first**(**last**(**LB**)) == [50]
6406536956233.
**first**(**init**(**LB**)) == [50, 40, 30, 20, 10]

A published solution is not available for this question yet.

Report a correction for Q10

Question 11 MSQ · 4.0 marks

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

A published solution is not available for this question yet.

Report a correction for Q11

Question 12 MSQ · 5.0 marks

The following pseudocode is executed using the "Library" dataset. At the end of the execution, **A** stores a dictionary with the author's name as key mapped to the number of books written by him/her. But the code 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
6406536956210.
Replacing the condition given in line 4 with the statement given below will provide the correct result.
Source diagram or notation
6406536956211.
Interchanging Line 4 and 7 will provide the correct result.
6406536956212.
Interchanging Line 5 and 8 will provide the correct result.
6406536956213.
The pseudocode will provide the correct result even without getting modified.

A published solution is not available for this question yet.

Report a correction for Q12

Question 13 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
Which of the following statements is/are true at the end of the execution?
6406536956218.
Line 3: variable 'inserted' is initialised to True so it will never enter the nested if block for comparison.
6406536956219.
Line 6: inside if statement condition should be 'x > z'.
6406536956220.
Line 11: [z] needs to be appended to the end of newList.
6406536956221.
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 Q13

Question 14 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
6406536956234.
**outList** represents a list of lists
6406536956235.
Each element in **outList** represents a list containing words and their parts of speech from a sentence except for the adjectives
6406536956236.
Each element in **outList** corresponds to one word from the paragraph
6406536956237.
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 Q14

Question 15 MSQ · 5.0 marks

Consider the graph given below.
Source diagram or notation
Which of the following statement(s) is/are true?
6406536956238.
There are 3 cliques of size three present in the graph.
6406536956239.
The degree of vertex 2 is 4.
6406536956240.
The maximum size of clique that appears in the graph is 3.
6406536956241.
The nodes 0 and 2 form a clique of size two.

A published solution is not available for this question yet.

Report a correction for Q15

Question 16 MSQ · 5.0 marks

**reverse** is a recursive procedure to reverse a list. Select the correct code fragment to complete the pseudocode given below.
Source diagram or notation
6406536956242.
return ([last(L)] ++ reverse(init(L)))
6406536956243.
return ([first(L)] ++ reverse(rest(L)))
6406536956244.
return ([last(L)] ++ reverse(init(rest(L))) ++ [first(L)])
6406536956245.
return ([first(L)] ++ reverse(init(rest(L))) ++ [last(L)])
6406536956246.
return ([last(L)] ++ reverse(rest(init(L))) ++ [first(L)])

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(456)** be?

A published solution is not available for this question yet.

Report a correction for Q18

Question 19 MCQ · 4.0 marks

The following pseudocode is executing using the “Scores” table. At the end of the execution,**matrix** represents the adjacency matrix of the graph generated from the “Scores” table.
Source diagram or notation
Based on the above data, answer the given subquestions.
If **matrixPh[i] [j]** = 1, then:
6406536956249.
**i** scored at most 10 and at least 20 more marks in Physics than **j**
6406536956250.
**i** scored at least 10 and at most 20 more marks in Physics than **j**
6406536956251.
**j** scored at least 10 and at most 20 more marks in Physics than **i**
6406536956252.
**j** scored at most 10 and at least 20 more marks in Physics than **i**

A published solution is not available for this question yet.

Report a correction for Q19

Question 20 MCQ · 4.0 marks

The following pseudocode is executing using the “Scores” table. At the end of the execution,**matrix** represents the adjacency matrix of the graph generated from the “Scores” table.
Source diagram or notation
Based on the above data, answer the given subquestions.
Choose the correct statement based on the main data pseudocode.
6406536956253.
For all **i, j** with **i ≠ j**,
Source diagram or notation
+
Source diagram or notation
= 1
6406536956254.
For all **i, j** with **i ≠ j**, if
Source diagram or notation
= 1 then
Source diagram or notation
= 0
6406536956255.
For all **i, j** with **i ≠ j**, if
Source diagram or notation
= 0 then
Source diagram or notation
= 1
6406536956256.
For all **i, j** with **i ≠ j**, if
Source diagram or notation
= 1 then
Source diagram or notation
= 1
6406536956257.
For all **i, j** with **i ≠ j**, if
Source diagram or notation
= 0 then
Source diagram or notation
= 0

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
Based on the above data,answer the given
Consider the below pseudocode
Source diagram or notation
What will the values of **p** and **q** be at the end of execution of pseudocode given below?
Source diagram or notation
6406536956258.
p = 0, q = 0
6406536956259.
p = 1, q = 0
6406536956260.
p = 0, q = 1
6406536956261.
p = 1, q = 1

A published solution is not available for this question yet.

Report a correction for Q21

Question 22 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
Based on the above data,answer the given
Consider the below pseudocode.
Source diagram or notation
What will be the of value of **count** at the end of the execution?
6406536956262.
6
6406536956263.
7
6406536956264.
8
6406536956265.
9

A published solution is not available for this question yet.

Report a correction for Q22