CUET-UG SERIES
Computer-science

Introduction To Stack Lifo Operations

6 previous year questions.

Volume: 6 Ques
Yield: Medium

High-Yield Trend

6
2023

Chapter Questions
6 MCQs

01
PYQ 2023
medium
computer-science ID: cuet-ug-
You try to pop an element from a stack which is empty. This can result into a special kind of condition, which is known as ________.
1
Overflow
2
Underflow
3
Full flow
4
Full stack
02
PYQ 2023
medium
computer-science ID: cuet-ug-
Which out of the following can be picked as the application of stack ?
1
CPU allocation
2
Breadth first Traversal
3
Print command from multiple files from the same computer
4
Reversing of a string
03
PYQ 2023
medium
computer-science ID: cuet-ug-
if len(Stack) =0 : print("error") The above statement is handling the situation called :
1
Underflow error
2
Overflow error
3
Empty stack
4
Stack length zero
04
PYQ 2023
medium
computer-science ID: cuet-ug-
identify the stack in given example :
1
Standing in a line to deposit electricity bill
2
Jobs in a processor are lined up for access
3
Arrangement of plates in a food counter in Buffet
4
Waiting for the turn in a singing talent show
05
PYQ 2023
medium
computer-science ID: cuet-ug-
Which one of the fallowing statement is wrong for Queue and stack data structures ?
1
Queue is an ordered linear data structure, following FIFO strategy
2
Insertion in a queue happens at the rear end, deletion happens at the front
3
Deque is a version of queue, which allows insertion and deletion at both ends
4
A deque supports only queue operations it does not support stack operations
06
PYQ 2023
medium
computer-science ID: cuet-ug-
There are five statements listed below. Each statement having some information related to data structure. Identify the correct statement(s).
(A) A stack is an example of a FIFO data structure
(B) The function top() removes the value from the top of a stack
(C) The term deque stands for double ended queue
(D) A queue is a data structure in which items can be added or removed from either end
(E) PEEK is an operation used to view elements at the front of the queue, without removing it from the queue
Choose the correct answer from the options given below:
1
(A), (C) and (E) only
2
(B), (C) and (D) only
3
(B) and (E) only
4
(C) and (E) only