wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Quiz-AIML

Total questions: 10

Worksheet time: 10mins

Name
Class
Date
1.

A stack is represented by the vector S,TOP. It denotes

a)

Middle of the stack

b)

End of stack

c)

Top of the stack

d)

None of the above

2.

Which one of the following is a true condition for any recursive procedure?

a)

Decision criteria must be nearer in some sense to a solution

b)

Each time decision criteria for stopping the process calls itself

c)

Each time the procedure calls itself it must be nearer in some sense to a solution

d)

Each time a procedure calls recursive defined function for stopping the process

3.

What are the main applications of tree data structures?
i. Manipulate hierarchical data

ii. Make information easy to search

iii. Manipulate sorted lists of data

iv. Router algorithms

v. Form of a multi-stage decision-making, like Chess Game.

vi. As a workflow for compositing digital images for visual effects

a)

i, ii, iii, iv and vi

b)

i, ii, iii, iv and v

c)

i, ii, iii, iv, v and vi

d)

i, iii, iv, v and vi

4.

Which of the following pairs of traversals is not sufficient to build a binary tree from the

given traversals?

a)

Preorder and Inorder

b)

Preorder and Postorder

c)

Inorder and Postorder

d)

All of the above

5.

How many different trees are there with four nodes: a, b, c, d?

a)

30

b)

120

c)

60

d)

90

6.

Which type of traversal of a binary search tree outputs the value in sorted order?

a)

Pre-order

b)

In-order

c)

Post-order

d)

None

7.

A stack is represented by the vector S,TOP. It denotes

a)

Middle of the stack

b)

Top of the stack

c)

End of stack

d)

None of the above

8.

Which of the following is a prefix expression?

a)

ab+c+

b)

ab*c*

c)

a+b+c

d)

+a*bc

9.

The pointer at the top in a stack keeps track of __________ element

a)

First

b)

Last

c)

Top

d)

Nth

10.

What among the following is referred to as a LIFO (Last in First Out) list?

a)

Stack

b)

Queue

c)

Linked list

d)

Array