DS-UNIT-2-Stack Queue

Quiz
•
Computers
•
University
•
Hard
Umesh Thoriya
Used 4+ times
FREE Resource
50 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 5 pts
In a stack, if a user tries to remove an element from an empty stack it is called _________
Underflow
Empty collection
Overflow
Garbage Collection
2.
MULTIPLE CHOICE QUESTION
1 min • 5 pts
Assume that the operators +, -, × are left associative and ^ is right associative. The order of precedence (from highest to lowest) is ^, x , +, -. The postfix expression corresponding to the infix expression a + b × c - d ^ e ^ f is
abc × + def ^ ^ -
abc × + de ^ f ^ -
ab + c × d - e ^ f ^
+ a × bc ^ ^ def
3.
MULTIPLE CHOICE QUESTION
1 min • 5 pts
The result evaluating the postfix expression 10 5 + 60 6 / * 8 - is
284
213
142
71
4.
MULTIPLE CHOICE QUESTION
1 min • 5 pts
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
1 min • 5 pts
A normal queue, if implemented using an array of size MAX_SIZE, gets full when?
Rear = MAX_SIZE - 1
Front = (rear + 1)mod MAX_SIZE
Front = rear + 1
Rear = front
6.
MULTIPLE CHOICE QUESTION
1 min • 5 pts
How many stacks are needed to implement a queue. Consider the situation where no other data structure like arrays, linked list is available to you.
1
2
3
4
7.
MULTIPLE CHOICE QUESTION
1 min • 5 pts
Which of the following is NOT a common operation in a queue data structure?
Enqueue
Dequeue
Peek
Shuffle
Create a free account and access millions of resources
Similar Resources on Wayground
46 questions
IL COMPUTER - 40+ DOMANDE - 1AH

Quiz
•
9th Grade - University
50 questions
Test 4

Quiz
•
University
50 questions
NPTEL-CLOUD COMPUTING-PRACTICE TEST-2

Quiz
•
University
49 questions
MCQs on UNIT II

Quiz
•
University
52 questions
Module 13

Quiz
•
University
45 questions
SAS/PAS Informatika IX

Quiz
•
9th Grade - University
54 questions
Unit 2 Final Quizz

Quiz
•
University
50 questions
AWS Cloud Practitioners Essentials

Quiz
•
University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

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

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Would you rather...

Quiz
•
KG - University
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

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

Interactive video
•
4th Grade - University
10 questions
The Constitution, the Articles, and Federalism Crash Course US History

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

Interactive video
•
4th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
16 questions
Water Modeling Activity

Lesson
•
11th Grade - University
10 questions
ACT English prep

Quiz
•
9th Grade - University