Quiz Space

Computational Thinking End Term: 30 April 2023, Set QPF1-S2 (January 2023 term)

Question 1

+3 marksOne correct option

The following pseudocode is executed using the "Scores" dataset. What will count represent at the end of the execution?

text
1 count = 0
2 while(Table 1 has more rows){
3 flag1 = False, flag2 = False
4 Read the first row X in Table 1
5 if(X.Gender == 'F'){
6 flag1 = True
7 }
8 if(X.CityTown == "Chennai"){
9 flag2 = True
10 }
11 if(flag1 == flag2){
12 count = count + 1
13 }
14 Move X to Table 2
15 }
  1. A

    Number of students who are either female or are from Chennai.

  2. B

    Number of female students from other than Chennai.

  3. C

    Number of female students from Chennai + number of male students from other than Chennai.

  4. D

    Number of all students except female students from other than Chennai.

Question 2

+3 marksOne correct option

The following pseudocode is executed using the "Words" dataset. What will B represent at the end of the execution?

text
1 A = 0, B = 0
2 while(Table 1 has more rows){
3 Read the first row X in Table 1
4 if(X.LetterCount > 4){
5 A = A + 1
6 }
7 else{
8 if(X.PartOfSpeech == "Noun"){
9 B = B + 1
10 }
11 }
12 Move X to Table 2
13 }
  1. A

    Number of nouns with letter count more than 4.

  2. B

    Number of words other than nouns with letter count more than 4.

  3. C

    Number of nouns with letter count less than or equal to 4.

  4. D

    Number of words other than nouns with letter count less than or equal to 4.

Question 3

+4 marksOne correct option

The following pseudocode is executed using the "Words" dataset. The variable count stores the number of words which are either nouns or have letter count at most 5, but not both. Choose the correct code fragment to complete the pseudocode.

text
1 count = 0
2 while(Table 1 has more rows){
3 Read the first row X in Table 1
4 if(checkSomething(X)){
5 count = count + 1
6 }
7 Move X to Table 2
8 }
9
10 Procedure checkSomething(Y)
11 A = False, B = False
12 if(X.PartOfSpeech == "Noun"){
13 A = True
14 }
15 if(X.LetterCount <= 5){
16 B = True
17 }
18 **********************
19 *** Fill the code ***
20 **********************
21 End checkSomething
  1. A
  2. B
  3. C
  4. D

22 more questions in this paper

Sign in with Google — it is free — to see every question with its answer and explanation, practise it in learning mode, or take it as a timed mock test.

More on the Computational Thinking (CT) End Term 30 Apr 2023 Set QPF1-S2 paper

The IIT Madras BS Computational Thinking (Computational Thinking (CT)) End Term paper sat on 30 Apr 2023, in the January 2023 term, set QPF1-S2: 25 questions for 100 marks in 180 minutes. The first 3 questions are below. Sign in with Google — it is free — to see the whole paper with its answers and explanations, in learning mode or as a timed mock test.

FeatureComputational Thinking (CT) End Term 30 Apr 2023 Set QPF1-S2 at a glance
TermJanuary 2023 term
SubjectComputational Thinking
Course codeBSCS1001
Questions25
Marks100
Duration180 min
MCQ15
Numerical6
MSQ4
Official paperIIT M FOUNDATION ET1 EXAM QPF1 S2 30 Apr 2023
Negative markingNo negative marking.
Updated

Other sets that day

Same End Term, other subjects

More Computational Thinking (CT)