Quiz Space

Computational Thinking End Term: 22 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 == 'F' 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 female students

  2. B

    Number of female students + Number of students from Chennai

  3. C

    Number of female students + Number of male students from Chennai

  4. D

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

  5. E

    None of these

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 = True, B = False, count = 0
while (Table 1 has more rows) {
Read the first row X from Table 1
if (X.PartOfSpeech == "Pronoun") {
A = False
}
if (X.ParsOfSpeech == "Noun") {
B = True
}
if (X.PartOfSpeech == "Adjective") {
if (not (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 a pronoun

  3. C

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

  4. D

    Number of adjectives before a noun and after a pronoun

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 == "English") {
A = A + 1
if (X.language == "Fiction") {
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 other than in English language

  4. D

    Number of books other than in English language + 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 22 Aug 2021 paper

The IIT Madras BS Computational Thinking (Computational Thinking (CT)) End Term paper sat on 22 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 22 Aug 2021 at a glance
TermMay 2021 term
SubjectComputational Thinking
Course codeBSCS1001
Questions25
Marks50
Duration180 min
MCQ20
MSQ5
Official paperIITM TERM FINAL EXAM POD21TEFNQPA 22 Aug 2021
Negative markingNo negative marking.
Updated

Same End Term, other subjects

More Computational Thinking (CT)