
STACK

Quiz
•
Computers
•
12th Grade
•
Easy
Sujitha Prajith
Used 2+ times
FREE Resource
9 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which statement is correct with respect to stack?
It is a non-linear data structure
Stack is a LIFO data structure
All the above
None of the Above
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Choose correct output for the following sequence of operations
push(5)
push(8)
pop
push(2)
push(5)
pop
pop
pop
push(1)
pop
8 5 2 5 1
8 5 5 2 1
8 2 5 5 1
8 1 2 5 5
3.
FILL IN THE BLANK QUESTION
1 min • 1 pt
Stack can be implemented using _________ and ________ ?
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Only top element can be accessed in stack
TRUE
FALSE
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
LIFO stands for
List of Outputs
Last in First Out
First in Last Out
None of them
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Act of adding values into a stack is called
Popping
Polling
Pushing
None
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Consider the following operation performed on a stack of size 5.
Push(1);
Pop();
Push(2);
Push(3);
Pop();
Push(4);
Pop();
Pop();
Push(5);
After the completion of all operation, the no of element present on stack are
1
2
3
4
8.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
If the elements “A”, “B”, “C” and “D” are placed in a queue and are deleted one at a time, in what order will they be removed?
ABCD
DCBA
DCAB
ABDC
9.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
If you carry out a pop operation on this stack what will you be left with?
Similar Resources on Wayground
10 questions
DATA STRUCTURES

Quiz
•
12th Grade
10 questions
Exploring Data Structures and Analysis

Quiz
•
12th Grade
14 questions
TCP/IP & other protocols [A Level]

Quiz
•
12th Grade
10 questions
Bab 2 | Latihan Pengukuhan II

Quiz
•
12th Grade - University
10 questions
Algorithm

Quiz
•
10th - 12th Grade
10 questions
Antrean dan Tumpukan (BK) XA

Quiz
•
10th Grade - University
7 questions
[Python OOP] Inheritance, special function

Quiz
•
12th Grade
11 questions
Stacks And Queues

Quiz
•
12th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade