Quiz Space

Computational Thinking (CT) week 1 important questions

Week 1 of Computational Thinking: Variables, iterators, filtering, datatypes, flowcharts. 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

The table below is the "Scores" dataset (one card per student, kept in Pile 1).

NameCityMathsPhysics
AshaChennai8369
JayJaipur7379
NikhilDelhi5740
HariChennai7721
KavyaPune2020
FaridChennai4674
OmkarJaipur3656

The following procedure is executed on the cards.

Step 1: Arrange all cards in a single pile called Pile 1
Step 2: Maintain a variable count and initialize it to 0
Step 3: If Pile 1 is empty then go to Step 7
Step 4: Read the top card in Pile 1
Step 5: If Maths > 50 then increase count by 1
Step 6: Move the card to Pile 2 and go to Step 3
Step 7: Print count

What is printed at the end?

Question 2

One correct option

The table below is the "Scores" dataset (one card per student, kept in Pile 1).

NameCityMathsPhysics
EshaKochi4560
GitaJaipur8121
IshaKochi5646
LakshmanJaipur6939
OmkarJaipur6961
ChitraKochi2960
HariPune8459

The following procedure is executed on the cards.

Step 1: Arrange all cards in a single pile called Pile 1
Step 2: Maintain a variable count and initialize it to 0
Step 3: If Pile 1 is empty then go to Step 7
Step 4: Read the top card in Pile 1
Step 5: If Maths > 70 and Physics > 40 then increase count by 1
Step 6: Move the card to Pile 2 and go to Step 3
Step 7: Print count

What is printed at the end?

  1. A

    00

  2. B

    22

  3. C

    −1-1

  4. D

    11

Question 3

Numerical answer

The table below is the "Scores" dataset (one card per student, kept in Pile 1).

NameCityMathsPhysics
AshaDelhi3227
PriyaKochi3275
BhavinJaipur8748
LakshmanJaipur8462
NikhilKochi7026
OmkarDelhi7022
FaridDelhi7485
KavyaDelhi6746

The following procedure is executed on the cards.

Step 1: Arrange all cards in a single pile called Pile 1
Step 2: Maintain a variable count and initialize it to 0
Step 3: If Pile 1 is empty then go to Step 7
Step 4: Read the top card in Pile 1
Step 5: If Maths > 60 then increase count by 1
Step 6: Move the card to Pile 2 and go to Step 3
Step 7: Print count

What is printed at the end?

More questions in this week

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