Quiz Space

Computational Thinking · End Term · 24 Dec 2023 · September 2023 term · Set 5

Question 21: What will the values of a and b be at the end of executi…

Question 21

+5 marksOne correct option

Based on the above data, answer the given subquestions.

Based on the above data, answer the given subquestions.

What will the values of a and b be at the end of execution of the pseudocode given below?

What will the values of a and b be at the end of execution of the pseudocode given below?

What will the values of a and b be at the end of execution of the pseudocode given below?
  1. A

    a = 1, b = 1

  2. B

    a = 0, b = 1

  3. C

    a = 1, b = 0

  4. D

    a = 0, b = 0

Show answer

Correct answer

  • B

    a = 0, b = 1

Question 21 of 26 in the IIT Madras BS Computational Thinking (Computational Thinking (CT)) End Term paper sat on 24 Dec 2023, in the September 2023 term (IIT M FOUNDATION AN EXAM ADF3 24 Dec 2023). It carries 5 marks.

More questions from this paper

  1. Q1THIS IS QUESTION PAPER FOR THE SUBJECT "FOUNDATION LEVEL : COMPUTATIONAL THINKING (COMPUTER BASED EXAM)" ARE YOU SURE Y…
  2. Q2Figure question
  3. Q3Figure question
  4. Q4Figure question
  5. Q5Which of the following pseudocodes when executed using the “Words” dataset, the count will give a number of verbs which…
  6. Q6The following pseudocode is executed using the “Shopping Bills” dataset. The variable count gives the number of bills w…
  7. Q7Figure question
  8. Q8Figure question
  9. Q9Figure question
  10. Q10Figure question
  11. Q11Figure question
  12. Q12The following pseudocode is executed using the "Library" dataset. At the end of the execution, A stores a dictionary wi…
  13. Q13Figure question
  14. Q14The given pseudocode is executed using the “Words” dataset. At the end of execution A captures the frequency count of t…
  15. Q15What will A represent at the end of the execution?
  16. Q16Which of the below numbers that B represent at the end of the execution?
  17. Q17The following pseudocode is executed using the “Shopping Bills” dataset. Assume each customer has a distinct name. The …
  18. Q18The following pseudocode is executed using the “Shopping Bills” dataset. Assume each customer has a distinct name. The …
  19. Q19The following pseudocode constructs a matrix M from the “Shopping Bills” dataset. Two bills are said to be similar if t…
  20. Q20The following pseudocode constructs a matrix M from the “Shopping Bills” dataset. Two bills are said to be similar if t…
  21. Q22What will the values of a and b be at the end of execution of the pseudocode given below? What will the values of a and…
  22. Q23Based on the above data, answer the given subquestions.
  23. Q24The following pseudocode is executed using the “Shopping Bills” dataset. Assume each customer has a distinct name. The …
  24. Q25The following pseudocode constructs a matrix M from the “Shopping Bills” dataset. Two bills are said to be similar if t…
  25. Q26Based on the above data, answer the given subquestions.