DS TRaining Day 2

DS TRaining Day 2

Professional Development

15 Qs

quiz-placeholder

Similar activities

Datastructures

Datastructures

Professional Development

15 Qs

DATA STRUCTURES

DATA STRUCTURES

Professional Development

15 Qs

APPLICATIONS OF STACK

APPLICATIONS OF STACK

Professional Development

10 Qs

Minecraft

Minecraft

KG - Professional Development

13 Qs

DATASTRUCTURE

DATASTRUCTURE

Professional Development

11 Qs

Datatsructures

Datatsructures

Professional Development

20 Qs

DS-Mid

DS-Mid

Professional Development

10 Qs

Introduction to Hyperconverged: HCI 101

Introduction to Hyperconverged: HCI 101

Professional Development

10 Qs

DS TRaining Day 2

DS TRaining Day 2

Assessment

Quiz

Computers

Professional Development

Medium

Created by

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

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?