
DS TRaining Day 2
Authored by Megala P
Computers
Professional Development
Used 4+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
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
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
10 questions
BASIC OF COMPUTER
Quiz
•
Professional Development
20 questions
machineLearning Test
Quiz
•
Professional Development
18 questions
Google Classroom
Quiz
•
Professional Development
10 questions
Soldix Day 2
Quiz
•
Professional Development
20 questions
SPARK FIDDLE
Quiz
•
Professional Development
10 questions
ER Model
Quiz
•
Professional Development
10 questions
Software Security
Quiz
•
University - Professi...
10 questions
C Programming
Quiz
•
Professional Development
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
Discover more resources for Computers
20 questions
Black History Month Trivia Game #1
Quiz
•
Professional Development
100 questions
Screening Test Customer Service
Quiz
•
Professional Development
20 questions
90s Cartoons
Quiz
•
Professional Development
10 questions
Reading a ruler in Inches
Quiz
•
4th Grade - Professio...
16 questions
Parallel, Perpendicular, and Intersecting Lines
Quiz
•
KG - Professional Dev...
12 questions
Valentines Day Trivia
Quiz
•
Professional Development