Stack and Queue

Quiz
•
Computers, Other
•
Professional Development
•
Medium
Anshul Oza
Used 8+ times
FREE Resource
30 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
2 mins • 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
2.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Only top element can be accessed in stack
TRUE
FALSE
3.
MULTIPLE CHOICE QUESTION
2 mins • 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
4.
MULTIPLE CHOICE QUESTION
2 mins • 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
5.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
If the elements “A”, “B”, “D” and “C” are placed in a stack and are deleted one at a time, in what order will they be removed?
ABCD
ABDC
CDBA
DCAB
6.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
In linked list implementation of a queue, the important condition for a queue to be empty is?
FRONT is null
REAR is null
LINK is empty
None of the mentioned
7.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Create a free account and access millions of resources
Similar Resources on Wayground
29 questions
한국어 기말고사 시험

Quiz
•
Professional Development
30 questions
QUIZZ AIJ XII TKJ - BAB V - MANAJEMEN BANDWIDTH

Quiz
•
KG - Professional Dev...
26 questions
Set 2

Quiz
•
University - Professi...
25 questions
PTS Susulan

Quiz
•
Professional Development
35 questions
CSP End-o-year Review

Quiz
•
Professional Development
30 questions
Data Communication Networks Quiz

Quiz
•
Professional Development
35 questions
Heaps and Binary Search Trees Assessment

Quiz
•
Professional Development
26 questions
Docs Connect May

Quiz
•
Professional Development
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
11 questions
All about me

Quiz
•
Professional Development
10 questions
How to Email your Teacher

Quiz
•
Professional Development
15 questions
Fun Random Trivia

Quiz
•
Professional Development
22 questions
Anne Bradstreet 1612-1672

Quiz
•
Professional Development
18 questions
Spanish Speaking Countries and Capitals

Quiz
•
KG - Professional Dev...
14 questions
Fall Trivia

Quiz
•
11th Grade - Professi...
15 questions
Disney Characters Quiz

Quiz
•
Professional Development
15 questions
Quiz to Highlight Q types & other great features in Wayground

Quiz
•
Professional Development