Quiz Space

Computational Thinking Quiz 1: 29 October 2023 (September 2023 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 parameters 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 29 Oct 2023 paper

The IIT Madras BS Computational Thinking (Computational Thinking (CT)) Quiz 1 paper sat on 29 Oct 2023, in the September 2023 term: 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 29 Oct 2023 at a glance
TermSeptember 2023 term
SubjectComputational Thinking
Course codeBSCS1001
Questions14
Marks50
Duration120 min
MCQ10
MSQ4
Official paperIIT M FOUNDATION AN2 EXAM QPF2 29 Oct 2023
Negative markingNo negative marking.
Updated

Same Quiz 1, other subjects

More Computational Thinking (CT)