Quiz Space

Computational Thinking · End Term · 22 Dec 2024 · September 2024 term · Set 3

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

Question 10

+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 vowel 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. It is a Multiple Select Question (MSQ).

The given pseudocode is executed using the “Words” dataset. At the end of execution A captures the frequency count of the most frequent vowel 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. It is a Multiple Select Question (MSQ).

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: Conditional expression should not use "not" operator

  6. F

    Line 22: i updated at wrong place

Show answer

Correct answers

  • A

    Line 1: Incorrect initialization of D

  • D

    Line 13: Incorrect initialization of i

  • E

    Line 16: Conditional expression should not use "not" operator

Question 10 of 25 in the IIT Madras BS Computational Thinking (Computational Thinking (CT)) End Term paper sat on 22 Dec 2024, in the September 2024 term (IIT M FOUNDATION DIPLOMA FN EXAM). It carries 6 marks.

More questions from this paper

  1. Q1THIS IS QUESTION PAPER FOR THE SUBJECT "FOUNDATION LEVEL : SEMESTER I: COMPUTATIONAL THINKING (COMPUTER BASED EXAM)" AR…
  2. Q2Figure question
  3. Q3Figure question
  4. Q4Figure question
  5. Q5Figure question
  6. Q6Figure question
  7. Q7Figure question
  8. Q8Figure question
  9. Q9Figure question
  10. Q11Consider the graph given below. Consider the graph given below. Which of the following statements is/are true?
  11. Q12Which of the following statements is/are true?
  12. Q13Let D be a non-empty dictionary. Choose the correct option(s). It is a Multiple Select Question(MSQ).
  13. Q14Figure question
  14. Q15Figure question
  15. Q16The given pseudocode is executed using a dataset having the same fields as the “Words” dataset, and contains the follow…
  16. Q17There is an edge between students i and j, with i != j, if and only if:
  17. Q18Which of the following statements is/are true? It is a Multiple Select Question (MSQ).
  18. Q19Based on the above data, answer the given subquestions.
  19. Q20Based on the above data, answer the given subquestions.
  20. Q21Consider the below pseudocode Consider the below pseudocode
  21. Q22Based on the above data, answer the given subquestions.
  22. Q23Figure question
  23. Q24Based on the above data, answer the given subquestions.
  24. Q25Based on the above data, answer the given subquestions.