wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

ADA

Total questions: 10

Worksheet time: 6mins

Name
Class
Date
1.

What is the worst case run-time complexity of binary search algorithm?

a)

Ο(n2)

b)

Ο(nlog n)

c)

Ο(n3)

d)

Ο(n)

2.

Q 2 - push() and pop() functions are found in

a)

queues

b)

ists

c)

stacks

d)

trees

3.

Which of the following is an example of dynamic programming approach?

a)

Fibonacci Series

b)

Tower of Hanoi

c)

Dijkstra Shortest Path

d)

All of the above

4.

Which of the following searching techniques do not require the data to be in sorted form

a)

Binary Search

b)

Interpolation Search

c)

Linear Search

d)

All of the above

5.

Which method can find if two vertices x & y have path between them?

a)

Depth First Search

b)

Breadth First Search

c)

Both A & B

d)

None A or B

6.

How many swaps are required to sort the given array using bubble sort - { 2, 5, 1, 3, 4}

a)

4

b)

5

c)

6

d)

7

7.

Linked list search complexity is

a)

Ο(1)

b)

Ο(n)

c)

Ο(log n)


d)

Ο(log log n)

8.

A balance factor in AVL tree is used to check

a)

what rotation to make.

b)

if all child nodes are at same level.

c)

when the last rotation occured.

d)

if the tree is unbalanced

9.

A queue follows __________

a)

FIFO (First In First Out) principle

b)

LIFO (Last In First Out) principle

c)

Ordered array

d)

Linear tree

10.

Circular Queue is also known as ________

a)

Ring Buffer

b)

Square Buffer

c)

Rectangle Buffer

d)

Curve Buffer