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

DS TRaining Day 2

Quiz
•
Computers
•
Professional Development
•
Medium
Megala P
Used 4+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
a) Underflow
b) Empty collection
c) Overflow
d) Garbage Collection
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
1. What is the value of the postfix expression 6 3 2 4 + – *?
a) 1
b) 40
c) 74
d) -18
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
1. 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?
a) 1
b) 2
c) 3
d) 4
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
1. 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:
a) 3,2
b) 1,5
c) 6,1
d) 5,7
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
1. 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
a. abc × + def ^ ^ -
b. abc × + de ^ f ^ -
c. ab + c × d - e ^ f ^
d. + a × bc ^ ^ def
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
1. To evaluate an expression without any embedded function calls :
a) As many stacks as the height of the expression tree are needed
b) One stack is enough
c) Two stacks are needed
d) A Turing machine is needed in the general case
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
1. The result evaluating the postfix expression 10 5 + 60 6 / * 8 – is
a) 284
b) 213
c) 142
d) 71
Create a free account and access millions of resources
Similar Resources on Quizizz
20 questions
Data Structures

Quiz
•
University - Professi...
10 questions
Advance Stack

Quiz
•
Professional Development
12 questions
Javascript Avanzado ft-22b Grupo 5

Quiz
•
Professional Development
13 questions
Intro M3

Quiz
•
Professional Development
10 questions
Introduction to Hyperconverged: HCI 101

Quiz
•
Professional Development
10 questions
IT ENGLISH: Research Project Topics - Web Development Frameworks

Quiz
•
Professional Development
10 questions
MCA 2024

Quiz
•
Professional Development
17 questions
Stacks

Quiz
•
KG - Professional Dev...
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