Quiz Space

Computational Thinking (CT) week 2 important questions

Week 2 of Computational Thinking: Iteration, selection, pseudocode, max/min. Extra important questions based on the recent, changing patterns of the exams, from basic to advanced. Practise them in learning mode: each question has a worked solution.

Question 1

Numerical answer

Table 1 holds the "Scores" dataset.

NameCityMathsPhysics
BhavinDelhi6634
ChitraDelhi7538
GitaPune7175
MeenaKochi5191
KavyaPune5756
FaridDelhi7031

The following pseudocode is executed.

max = 0
while (Table 1 has more rows) {
Read the first row X in Table 1
if (X.Maths > max) {
max = X.Maths
}
Move X to Table 2
}
Print max

What is printed?

Question 2

One correct option

Table 1 holds the "Scores" dataset.

NameCityMathsPhysics
GitaKochi4034
OmkarPune8536
PriyaPune4195
AshaJaipur6568
MeenaDelhi7635
LakshmanChennai7578
EshaChennai5889

The following pseudocode is executed.

min = 100
while (Table 1 has more rows) {
Read the first row X in Table 1
if (X.Physics < min) {
min = X.Physics
}
Move X to Table 2
}
Print min

What is printed?

  1. A

    3333

  2. B

    3535

  3. C

    6868

  4. D

    3434

Question 3

One correct option

Table 1 holds the "Scores" dataset.

NameCityMathsPhysics
ChitraChennai3634
EshaKochi6849
AshaDelhi3865
LakshmanChennai6482
GitaKochi3356
DevKochi3486
PriyaPune7292
IshaDelhi3762

The following pseudocode is executed.

max = 0
who = ""
while (Table 1 has more rows) {
Read the first row X in Table 1
if (X.Maths >= max) {
max = X.Maths
who = X.Name
}
Move X to Table 2
}
Print who

What is printed?

  1. A

    Esha

  2. B

    Priya

  3. C

    Chitra

  4. D

    Asha

More questions in this week

Authorise with Google to see every question with its answer and explanation and practise it in learning mode.