Quiz Space

Computational Thinking End Term: 8 August 2021 (May 2021 term)

Question 1

+1.5 marksOne correct option

The following pseudocode is executed using the "Scores" dataset.

text
A = 0, B = 0
while (Table 1 has more rows) {
Read the top row X from Table 1
if (X.Gender == 'M') {
A = A + 1
}
else {
if (X.Gender == 'M' or X.CityTown == "Chennai") {
B = B + 1
}
}
Move X to Table 2
}

What will B represent at the end of execution of pseudocode?

  1. A

    Number of Chennai Students

  2. B

    Number of female students from Chennai

  3. C

    Number of male students + Number of students from Chennai

  4. D

    Number of male students + Number of female students from Chennai

  5. E

    Number of students from Chennai + Number of male students who are not from Chennai

Question 2

+1.5 marksOne correct option

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

text
A = False, B = False, count = 0
while (Table 1 has more rows) {
Read the first row X from Table 1
if (X.PartOfSpeech == "Pronoun") {
A = True
}
if (X.PartOfSpeech == "Noun") {
B = True
}
if (X.PartOfSpeech == "Adjective") {
if (A and B) {
count = count + 1
}
}
Move the row X to Table 2
}
  1. A

    Total number of adjectives

  2. B

    Number of adjectives before a noun and after a pronoun

  3. C

    Number of adjectives before a noun and a pronoun

  4. D

    Number of adjectives after both a noun and a pronoun have been seen

Question 3

+2 marksOne correct option

The following pseudocode is executed using the "Library" dataset. What does (count−A+B) represent at the end of execution?

text
A = 0, B = 0, count = 0
while (Table 1 has more rows) {
Read the first row X from Table 1
if (X.Genre == "Fiction") {
A = A + 1
if (X.language == "English") {
B = B + 1
}
}
count = count + 1
Move the row X to Table 2
}
  1. A

    Total number of books.

  2. B

    Number of non fiction books

  3. C

    Number of non fiction books written other than in English

  4. D

    Number of non fiction books + Number of fiction books in English.

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 8 Aug 2021 paper

The IIT Madras BS Computational Thinking (Computational Thinking (CT)) End Term paper sat on 8 Aug 2021, in the May 2021 term: 25 questions for 50 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 8 Aug 2021 at a glance
TermMay 2021 term
SubjectComputational Thinking
Course codeBSCS1001
Questions25
Marks50
Duration180 min
MCQ20
MSQ5
Official paperIIT M TERM FINAL EXAM POD21TEFNQP1 8 Aug 2021
Negative markingNo negative marking.
Updated

Same End Term, other subjects

More Computational Thinking (CT)