GATE CS 2021 Set 2 | Question 39

Algorithms › Algorithm Design Techniques · MCQ · 2 marks · Answer: D

  1. Question 39Algorithmsmcq2 marks
    In an examination, a student can choose the order in which two questions (QuesA and QuesB) must be attempted. - If the first question is answered wrong, the student gets zero marks. - If the first question is answered correctly and the second question is not answered correctly, the student gets the marks only for the first question. - If both the questions are answered correctly, the student gets the sum of the marks of the two questions. The following table shows the probability of correctly answering a question and the marks of the question respectively.
    question   probability of answering correctly   marks
    QuesA               0.8                          10
    QuesB               0.5                          20
    Assuming that the student always wants to maximize her expected marks, in which order should she attempt the questions and what is the expected marks for that order (assume that the questions are independent)?
    • A.
      First QuesA and then QuesB. Expected marks 14.
    • B.
      First QuesB and then QuesA. Expected marks 14.
    • C.
      First QuesB and then QuesA. Expected marks 22.
    • D.
      First QuesA and then QuesB. Expected marks 16.
      ✓

    Answer: D

    Solution

    Order A then B: . Order B then A: . The larger is 16, attempting QuesA first.

More GATE PYQ on Algorithm Design Techniques

All GATE CS Algorithms PYQ →

Attempt GATE CS 2021 Set 2 in real GATE exam mode

Full paper with a timer, the GATE interface and a topic-wise analysis — free.

Create free account →