
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
1. In a stack, if a user tries to remove an element from an empty stack it is called _________
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 Wayground
17 questions
Final practice test mod 7

Quiz
•
Professional Development
13 questions
DSA 2

Quiz
•
Professional Development
10 questions
Structure Data Review

Quiz
•
University - Professi...
10 questions
Database Objects

Quiz
•
Professional Development
20 questions
ROS Training: Module 5 (Localization and Navigation)

Quiz
•
Professional Development
10 questions
Advanced DevOps Quiz1

Quiz
•
Professional Development
10 questions
Day 2 C Programming quiz

Quiz
•
Professional Development
15 questions
Intro to Python I Quiz

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