In a stack, if a user tries to remove an element from an empty stack it is called _________
Stack

Quiz
•
Computers
•
University
•
Hard
Innovation ECE
Used 2+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Underflow
Empty collection
Overflow
Garbage Collection
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the value of the postfix expression 6 3 2 4 + – *?
1
40
74
-18
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Here is an infix expression: 4 + 3*(6*3-12). Suppose that we are using the usual stack algorithm to convert the expression from infix to postfix notation. The maximum number of symbols that will appear on the stack AT ONE TIME during the conversion of this expression?
1
2
3
4
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The following postfix expression with single digit operands is evaluated using a stack:
8 2 3 ^ / 2 3 + 5 1 -
Note that ^ is the exponentiation operator. The top two elements of the stack after the
first * is evaluated are:
3,2
1,5
6,1
5,7
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
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
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
To evaluate an expression without any embedded function calls :
As many stacks as the height of the expression tree are needed
One stack is enough
Two stacks are needed
A Turing machine is needed in the general case
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The result evaluating the postfix expression 10 5 + 60 6 / * 8 – is
284
213
142
71
Create a free account and access millions of resources
Similar Resources on Quizizz
20 questions
Exploring Stacks and Queues

Quiz
•
University
10 questions
untitled

Quiz
•
University
20 questions
DS-MCQ-UNIT-2

Quiz
•
University
20 questions
Data Structures

Quiz
•
University
15 questions
DS MODULE 3 LINKED LIST

Quiz
•
University
10 questions
data structures

Quiz
•
University
12 questions
Data Structures

Quiz
•
University
10 questions
Stack & Queue

Quiz
•
University
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade