Quiz Space

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

Question 14: The given pseudocode is executed using the “Words” datas…

Question 14

+6 marksOne or more correct options

The given pseudocode is executed using the “Words” dataset. At the end of execution A captures the frequency count of the most frequent letter in the dataset. But the pseudocode may have mistakes. Identify all such mistakes (if any). Assume that all statements not listed in the options below are free of errors.

The given pseudocode is executed using the “Words” dataset. At the end of execution A captures the frequency count of the most frequent letter in the dataset. But the pseudocode may have mistakes. Identify all such mistakes (if any). Assume that all statements not listed in the options below are free of errors.

The given pseudocode is executed using the “Words” dataset. At the end of execution A captures the frequency count of th

Select all that apply.

  1. A

    Line 1: Incorrect initialization of D

  2. B

    Line 8: Incorrect conditional expression

  3. C

    Line 9: A updated with wrong value

  4. D

    Line 13: Incorrect initialization of i

  5. E

    Line 16: Incorrect expression

  6. F

    Line 23: i updated at wrong place

Show answer

Correct answers

  • C

    Line 9: A updated with wrong value

  • F

    Line 23: i updated at wrong place

Question 14 of 23 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 6 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. Q15What will A represent at the end of the execution?
  15. Q16Which of the below numbers that B represent at the end of the execution?
  16. Q17The following pseudocode is executed using the “Shopping Bills” dataset. Assume each customer has a distinct name. The …
  17. Q18The following pseudocode is executed using the “Shopping Bills” dataset. Assume each customer has a distinct name. The …
  18. Q19The following pseudocode constructs a matrix M from the “Shopping Bills” dataset. Two bills are said to be similar if t…
  19. Q20The following pseudocode constructs a matrix M from the “Shopping Bills” dataset. Two bills are said to be similar if t…
  20. Q21Based on the above data, answer the given subquestions.
  21. Q22The following pseudocode is executed using the “Shopping Bills” dataset. Assume each customer has a distinct name. The …
  22. Q23The following pseudocode constructs a matrix M from the “Shopping Bills” dataset. Two bills are said to be similar if t…