Quiz Space

PDSA Quiz 2: 24 March 2024 (January 2024 term)

Question 1

+2 marksOne correct option

In the context of the Floyd-Warshall algorithm, what does it mean if the distance matrix has a negative value in its diagonal?

  1. A

    The graph has a negative-weight cycle.

  2. B

    The graph has negative-weight on edge but no negative-weight cycle.

  3. C

    The graph is acyclic.

  4. D

    The graph has a disconnected component.

Question 2

+3 marksOne correct option
  1. A

    P, Q, R, U, T, S

  2. B

    P, Q, R, S, T, U

  3. C

    P, Q, R, S, U, T

  4. D

    P, Q, R, U, S, T

Question 3

+3 marksOne correct option

You have a max-heap with the following set of elements:
{10, 5, 15, 3, 8, 12}
Which of the following elements is guaranteed to be a child of the element 15?

  1. A

    10

  2. B

    5

  3. C

    12

  4. D

    8

13 more questions in this paper

Sign in with Google — it is free — to see every question with its answer and explanation, practise it in learning mode, or take it as a timed mock test.

More on the PDSA Quiz 2 24 Mar 2024 paper

The IIT Madras BS Programming, Data Structures and Algorithms using Python (PDSA) Quiz 2 paper sat on 24 Mar 2024, in the January 2024 term: 16 questions for 50 marks in 120 minutes. The first 3 questions are below. Sign in with Google — it is free — to see the whole paper with its answers and explanations, in learning mode or as a timed mock test.

FeaturePDSA Quiz 2 24 Mar 2024 at a glance
TermJanuary 2024 term
SubjectProgramming, Data Structures and Algorithms using Python
Course codeBSCS2002
Questions16
Marks50
Duration120 min
MCQ8
MSQ4
Numerical4
Official paperIIT M DIPLOMA AN EXAM QDD2 24 Mar 2024
Negative markingNo negative marking.
Updated

Same Quiz 2, other subjects

More PDSA