After performing this set of operations, what does the final list contain?…

PYQ Hexaware Hiring Assessment 2024

After performing this set of operations, what does the final list contain?

InsertFront(10);

InsertFront(20);

InsertRear(30);

DeleteFront();

InsertRear(40);

InsertRear(10);

DeleteRear();

InsertRear(15);

display();

  1. A.

    10 30 10 15

  2. B.

    20 30 40 15

  3. C.

    20 30 40 10

  4. D.

    10 30 40 15

Attempted by 84 students.

Sign up free to check your answer

Sign up free

Explore the full course: Cdac C Cat Complete Preparation

Loading lesson…