CUET-UG SERIES
Computer-science

Stack

3 previous year questions.

Volume: 3 Ques
Yield: Medium

High-Yield Trend

3
2024

Chapter Questions
3 MCQs

01
PYQ 2024
medium
computer-science ID: cuet-ug-
What will be the sequence of elements removed from the stack after performing the following operations?
Operations:
PUSH(10)
PUSH(20)
POP()
POP()
PUSH(30)
PUSH(40)
POP()
POP()
Options:
(A) 10
(B) 20
(C) 30
(D) 40
Choose the correct sequence from the options given below:
1
(A), (B), (C), (D)
2
(A), (B), (D), (C)
3
(B), (A), (D), (C)
4
(B), (A), (C), (D)
02
PYQ 2024
medium
computer-science ID: cuet-ug-
Match List-I with List-II:
List-I (Term)List-II (Description)
(A) Prefix(I) In this, the element entered first will be removed last
(B) Postfix(II) In this, the element entered first will be removed first.
(C) Queue(III) In this, the operator is placed before the operands.
(D) Stack(IV) In this, the operator is placed after the operands.
1
(A) - (III), (B) - (IV), (C) - (II), (D) - (I)
2
(A) - (IV), (B) - (III), (C) - (II), (D) - (I)
3
(A) - (I), (B) - (II), (C) - (IV), (D) - (III)
4
(A) - (II), (B) - (I), (C) - (III), (D) - (IV)
03
PYQ 2024
medium
computer-science ID: cuet-ug-
Stack works on the principle of ________.
1
Mid Element First
2
First In First Out
3
Last In First Out
4
Last In Last Out