Stack and Queue

Quiz
•
Computers
•
University
•
Hard
Jyoti Jadhav
Used 90+ times
FREE Resource
25 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 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
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Stack can be implemented using _________ and ________ ?
Array and Binary Tree
Linked List and Graph
Array and Linked List
Queue and Linked List
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
When the function calls another function then the details of the previous function are stored in Stack?
Yes
No
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Consider an empty stack of an integers. Let the numbers 4,5,6,7,8 to be pushed on to this stack only in the order they appeared from left to right. Let P indicates PUSH and Q indicates POP operation. What sequence of operations should be performed on stack in order to get the output as 548.
PPPXPPXX
PPXPPPXX
PPXXPPPX
PXXPPXPX
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the postfix expression for the corresponding infix expression?
a+b*c+(d*e)
abc*+de*+
abc+*de*+
a+bc*de+*
abc*+(de)*+
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the postfix expression for the infix expression?
a-b-c
abc--
ab – c –
– -abc
-ab-c
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following statement is incorrect with respect to infix to postfix conversion algorithm?
operand is always placed in the output
operator is placed in the stack when the stack operator has lower precedence
parenthesis are included in the output
higher and equal priority operators follow the same condition
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
Kuis Fundamental Flutter

Quiz
•
University
20 questions
Data Structure

Quiz
•
University
20 questions
New DSC Quiz

Quiz
•
University
25 questions
Kuis PD M11

Quiz
•
University
30 questions
Data Structures and Its Applications

Quiz
•
University
22 questions
Stack,Queue,CQ

Quiz
•
University
20 questions
OS Basics

Quiz
•
University
20 questions
Techies's Question Set for Club Day

Quiz
•
University
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
Discover more resources for Computers
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
36 questions
Unit 5 Key Terms

Quiz
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
15 questions
Properties of Equality

Quiz
•
8th Grade - University
38 questions
WH - Unit 3 Exam Review*

Quiz
•
10th Grade - University
21 questions
Advise vs. Advice

Quiz
•
6th Grade - University
12 questions
Reading a ruler!

Quiz
•
9th Grade - University