Quiz Space

Computational Thinking · End Term · 31 Aug 2025 · May 2025 term · Set 5

Question 25: Consider the implementation of the following procedure g…

Question 25

+1 markWritten answer

Consider the implementation of the following procedure getDictionary. Assume that the procedure absolute takes an integer as parameter and returns the absolute value. For example, absolute(-2) = 2 and absolute(3) = 3.

Consider the implementation of the following procedure getDictionary. Assume that the procedure absolute takes an integer as parameter and returns the absolute value. For example, absolute(-2) = 2 and absolute(3) = 3. Let D be the value returned by getDictionary([5, 10, 20, 30, 20, 10, 20, 5, 15]). Answer the given subquestions based on D.

Consider the implementation of the following procedure getDictionary.
Assume that the procedure absolute takes an intege
Show answer

A written answer, not marked automatically.

Question 25 of 25 in the IIT Madras BS Computational Thinking (Computational Thinking (CT)) End Term paper sat on 31 Aug 2025, in the May 2025 term (IIT M IMPROVEMENT AN EXAM QIB4 31 Aug). It carries 1 mark.

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. Q5Figure question
  6. Q6Figure question
  7. Q7Figure question
  8. Q8Figure question
  9. Q9Figure question
  10. Q10Figure question
  11. Q11Figure question
  12. Q12Figure question
  13. Q13Figure question
  14. Q14Figure question
  15. Q15Figure question
  16. Q16Figure question
  17. Q17Consider the following condensed version of the “Trains” dataset. There are a total of n stations, with stations being …
  18. Q18Consider the following condensed version of the “Trains” dataset. There are a total of n stations, with stations being …
  19. Q19Let M be an adjacency matrix of a graph G given below, where M[i][j] = 1 if there is an edge from i to j, otherwise 0. …
  20. Q20Let M be an adjacency matrix of a graph G given below, where M[i][j] = 1 if there is an edge from i to j, otherwise 0. …
  21. Q21Consider the implementation of the following procedure getDictionary. Assume that the procedure absolute takes an integ…
  22. Q22Consider the implementation of the following procedure getDictionary. Assume that the procedure absolute takes an integ…
  23. Q23Consider the following condensed version of the “Trains” dataset. There are a total of n stations, with stations being …
  24. Q24Let M be an adjacency matrix of a graph G given below, where M[i][j] = 1 if there is an edge from i to j, otherwise 0. …