GATE DA Python Data Structures & Collections | Set 1

Questions 51-55 of 100

0% completed (0/100 answered)
Your score 0/100 0 answered
Correct 0 Incorrect 0 Unanswered 100 Accuracy 0%

Question 51

MCQ · Single Correct 1 mark

Which Python module/class provides an optimal double-ended queue implementation for implementing stacks and queues with O(1) time complexity pops/appends from both ends?

Answers for question 51

Question 52

NAT · Numerical Answer 1 mark

Consider evaluating the postfix expression: 6 3 2 + * 5 -. What is the final evaluated numerical result?

Answers for question 52

Question 53

MCQ · Single Correct 1 mark

What is the maximum number of elements in a stack when evaluating the infix expression (A + B) * (C - D / E) using Dijkstra's Shunting-Yard operator stack?

Answers for question 53

Question 54

NAT · Numerical Answer 1 mark

A stack of size 5 is initially empty. We perform 8 push and 3 pop operations in arbitrary order without overflow/underflow. How many elements remain on the stack?

Answers for question 54

Question 55

MCQ · Single Correct 1 mark

What data structure is inherently used by recursion and function call management in Python runtime execution?

Answers for question 55
Scroll to Top