Quiz Space

Computational Thinking · End Term · 3 Sept 2023 · May 2023 term · Set 4

Question 28: Consider the following graph with five nodes. A is the 6…

Question 28

+3 marksOne correct option

Consider the following graph with five nodes. A is the 6 × 6 adjacency matrix corresponding to this graph.

Consider the following graph with five nodes. A is the 6 × 6 adjacency matrix corresponding to this graph. Based on the above data, answer the given subquestions.

Consider the following graph with five nodes. A is the 6 × 6 adjacency matrix corresponding to this graph.

What will be the value of L after executing the given pseudocode?

  1. A

    L = [4, 2, 1, 0, 5, 3]

  2. B

    L = [4, 2, 0, 1, 3, 5]

  3. C

    L = [4, 2, 0, 1, 5, 3]

  4. D

    L = [4, 2, 1, 0, 3, 5]

Show answer

Correct answer

  • B

    L = [4, 2, 0, 1, 3, 5]

Question 28 of 39 in the IIT Madras BS Computational Thinking (Computational Thinking (CT)) End Term paper sat on 3 Sept 2023, in the May 2023 term (IIT M FOUNDATION ET1 EXAM QPF2 S2 03 Sep). It carries 3 marks.

More questions from this paper

  1. Q1THIS IS QUESTION PAPER FOR THE SUBJECT "FOUNDATION LEVEL : SEMESTER 1: COMPUTATIONAL THINKING (COMPUTER BASED EXAM)" AR…
  2. Q2Figure question
  3. Q3Figure question
  4. Q4The following pseudocode is executed using the “Scores” dataset. Two students form a study pair if the difference of th…
  5. Q5The following pseudocode is executed using the “Scores” dataset. Two students form a study pair if the difference of th…
  6. Q6Figure question
  7. Q7The following pseudocode is executed using the “Words” dataset. Study the given pseudocode and answer the subquestions.…
  8. Q8The following pseudocode is executed using the “Words” dataset. Study the given pseudocode and answer the subquestions.…
  9. Q9The given pseudocode is executed using the “Words” dataset. C stores the number of nouns which have at least one verb a…
  10. Q10Figure question
  11. Q11The following pseudocode is executed using the “Scores” dataset. What will the value of L represent at the end of the e…
  12. Q12The given pseudocode is executed using the “Words” dataset. What will A represent at the end of execution? The given ps…
  13. Q13Consider a graph generated from n rows of “Scores” table that is represented by a matrix M. Each node in the graph corr…
  14. Q14Consider a graph generated from n rows of “Scores” table that is represented by a matrix M. Each node in the graph corr…
  15. Q15Consider a graph generated from the “Scores” table that is represented by a matrix M. Each node in the graph correspond…
  16. Q16Consider a graph generated from the “Scores” table that is represented by a matrix M. Each node in the graph correspond…
  17. Q17Consider a graph generated from the “Words” table that is represented by a matrix M. Each node in the graph corresponds…
  18. Q18Consider a graph generated from the “Words” table that is represented by a matrix M. Each node in the graph corresponds…
  19. Q19Consider a graph generated from the “Scores” table that is represented by a matrix M. Each node in the graph correspond…
  20. Q20Consider a graph generated from the “Scores” table that is represented by a matrix M. Each node in the graph correspond…
  21. Q21What will be the values of A and B at the end of execution of pseudocode given below? What will be the values of A and …
  22. Q22What will be the values of A and B at the end of execution of pseudocode given below? What will be the values of A and …
  23. Q23Figure question
  24. Q24The procedure calculate takes two positive integers as arguments and returns an integer. Study the given pseudocode and…
  25. Q25The procedure calculate takes two positive integers as arguments and returns an integer. Study the given pseudocode and…
  26. Q26Consider the given pseudocode, two positive integers, a and b are the input parameters of procedure mystery, where a ≥ …
  27. Q27Consider the given pseudocode, two positive integers, a and b are the input parameters of procedure mystery, where a ≥ …
  28. Q29Consider the following graph with five nodes. A is the 6 × 6 adjacency matrix corresponding to this graph. Consider the…
  29. Q30The following pseudocode is executed using the “Scores” dataset. Two students form a study pair if the difference of th…
  30. Q31The following pseudocode is executed using the “Words” dataset. Study the given pseudocode and answer the subquestions.…
  31. Q32Consider a graph generated from n rows of “Scores” table that is represented by a matrix M. Each node in the graph corr…
  32. Q33Consider a graph generated from the “Scores” table that is represented by a matrix M. Each node in the graph correspond…
  33. Q34Consider a graph generated from the “Words” table that is represented by a matrix M. Each node in the graph corresponds…
  34. Q35Consider a graph generated from the “Scores” table that is represented by a matrix M. Each node in the graph correspond…
  35. Q36Based on the above data, answer the given subquestions.
  36. Q37The procedure calculate takes two positive integers as arguments and returns an integer. Study the given pseudocode and…
  37. Q38Consider the given pseudocode, two positive integers, a and b are the input parameters of procedure mystery, where a ≥ …
  38. Q39Consider the following graph with five nodes. A is the 6 × 6 adjacency matrix corresponding to this graph. Consider the…