wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Data Structures: Linked Lists and Hashtables

Total questions: 14

Worksheet time: 9mins

Name
Class
Date
1.

What advantage does a linked list have over an array?

a)

Size of the list doesn't need to be specified at the beginning of the program

b)

You can add or remove elements from the middle of the list.

c)

The linked list doesn't have a size limit

d)

All of these are true.

2.

Nodes in a linked list contain two things

a)

Direction and a pointer

b)

Data and a pointer

c)

Pointer and a link

d)

A pointer and a node

3.

Hashing gives each item

a)

A sequential address

b)

A logarithmic address

c)

No address

d)

A unique address

4.

address = key MOD(numberOfSlots)


If key = 5432 and numberOfSlots = 1000

address = ?

a)

5

b)

432

c)

543

d)

5432

5.

when a hashing algorithm generates the same address for different keys it is known as

a)

Knock

b)

Bang

c)

Collision

d)

DoubleHash

6.

What is the status after adding 10

a)
b)
c)
d)
7.

What is the status after adding 7

a)
b)
c)
d)
8.

What does the term immutable mean?

a)

unable to be changed

b)

unable to speak

c)

can be modified

d)

can be increased in size

9.

Which data structure cannot have elements of different data types?

a)

Array

b)

Tuple

c)

Record

d)

Stack

e)

Queue

10.

In terms of data structures, what does mutable mean?

a)

A mutable structure is one which can only have data added to it

b)

A mutable structure is one which is fixed in size

c)

A mutable structure is one which allows data to be added, edited, deleted or moved

11.

What type of data structure is an array?

a)

Static and mutable

b)

Dynamic and immutable

c)

Static and immutable

12.

Which word means storing data in sequence in memory, next to each other?

a)

contiguous

b)

contrary

c)

quantitative

d)

immutable

13.

A hashing algorithm divides the item into equal parts, and then adds the parts to give the hash value. E.g. 0203456789 would become 02+03+45+67+89= 206.


This method is know as what?

a)

Rehashing method

b)

Folding method

c)

Clustering method

d)

Enqueue method

14.

Rehashing is..

a)

using ASCII codes to generate the hash value

b)

creating a new hash table

c)

the process of finding an empty slot when a collision has occurred

d)

shuffling the items in a hash table