Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Data Structures & Algorithms

Total questions: 10

Worksheet time: 5mins

Name
Class
Date
1.

Which of the following data structures is a LIFO data structure?

a)

hash table

b)

queue

c)

stack

d)

tree

2.

Which of the the following properties would mean that a graph is not a tree?

a)

unweighted

b)

undirected

c)

cyclical

d)

acyclical

3.

Which of the following data structures is not dynamic?

a)

list

b)

stack

c)

tree

d)

circular queue

4.

Which of the sorting and searching algorithms is most time efficient?

a)

linear search

b)

binary search

c)

bubble sort

d)

merge sort

5.

Problems with a solution that cannot be solved in which time or less are considered intractable?

a)

exponential

b)

factorial

c)

linear

d)

polynomial

6.

Which of the following is not a type of graph traversal?

a)

breadth first search

b)

depth first search

c)

reverse in order search

d)

anti order search

7.

Which approach can be used to turn intractable problems into tractable ones?

a)

heuristic algorithms

b)

dijkstra's

c)

decomposition

d)

abstraction

8.

Which data structure has a O(1) for accessing any specific (given) element?

a)

priority queue

b)

hash table

c)

stack

d)

binary tree

9.

Which data type is immutable?

a)

integer

b)

real

c)

string

d)

boolean

10.

Which algorithm is not computable?

a)

travelling salesman

b)

A*

c)

Dijkstra

d)

Halting Problem