Quiz Space

Computational Thinking Quiz 1: 30 January 2022, Set QPB2 (January 2022 term)

Question 1

+2 marksOne correct option
  1. A
  2. B
  3. C
  4. D
  5. E

Question 2

+3 marksOne correct option

The given procedure is executed using the"Library" dataset (Table 1).

text
Procedure selected (auth, gen, num)
countT = 0, countG = 0
while (Table 1 has more rows) {
Read the first row X from Table 1
if (X.Author == auth) {
countT = countT + 1
if (X.Genre == gen) {
countG = countG + 1
}
}
Move X to Table 2
}
if (countG / countT ≤ num / 100) {
return(True)
}
return(False)
End selected

selected("Narayan", "Fiction", 10) will return True if

  1. A
  2. B
  3. C
  4. D

Question 3

+4 marksOne correct option

miniSum accepts three numbers as parameter and returns the sum of two least parameters. Choose the correct code fragment to complete the procedure.

text
Procedure miniSum(A, B, C)
Sum = 0
if (A > C and A > B) {
Sum = B + C
}
********************
* Fill the code *
********************
return (Sum)
End miniSum
  1. A
  2. B
  3. C
  4. D

11 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) Quiz 1 30 Jan 2022 Set QPB2 paper

The IIT Madras BS Computational Thinking (Computational Thinking (CT)) Quiz 1 paper sat on 30 Jan 2022, in the January 2022 term, set QPB2: 14 questions for 50 marks in 120 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) Quiz 1 30 Jan 2022 Set QPB2 at a glance
TermJanuary 2022 term
SubjectComputational Thinking
Course codeBSCS1001
Questions14
Marks50
Duration120 min
MCQ10
MSQ4
Official paperIIT M FOUNDATION QUIZ EXAM QPB2 30 Jan 2022
Negative markingNo negative marking.
Updated

Other sets that day

Same Quiz 1, other subjects

More Computational Thinking (CT)