wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Quiz despre Liste Înlănțuite

Total questions: 10

Worksheet time: 5mins

Name
Class
Date
1.

What is the structure of a node in a linked list?

a)

Number and pointer to the previous node

b)

Data and pointer to the next node

c)

Pointer to the previous node and pointer to the next node

d)

Number and pointer to the next node

2.

What is the main advantage of linked lists?

a)

Efficient memory

b)

Random access to elements

c)

Easy reverse traversal

d)

Need to know the size in advance

3.

How to add an element at the beginning of a linked list?

a)

Allocate memory for the new node, store data, change pointer to the previous node to head, change head to the previous node

b)

Allocate memory for the new node, store data, change pointer to the new node to head, change head to the newly created node

c)

Allocate memory for the new node, store data, change pointer to the next node to head, change head to the newly created node

d)

Allocate memory for the new node, store data, change pointer to the previous node to head, change head to the newly created node

4.

What is the main purpose of traversing a linked list?

a)

Displaying the content

b)

Deleting elements

c)

Adding elements

d)

Calculating the size of the list

5.

What does the 'next' pointer represent in a node of a linked list?

a)

Address of the previous node

b)

Value of the node's data

c)

Start indicator of the list

d)

Address of the next node

6.

What is the basic action to allocate memory and store data for a new node in a linked list?

a)

Adding elements to the end of the linked list

b)

Allocating memory and storing data for the new node

c)

Changing the next of the last node to the newly created node

d)

Traversing to the last node

7.

What is the necessary action to add a node at the end of a linked list?

a)

Adding elements at the end of a linked list

b)

Allocating memory and storing data for the new node

c)

Change the next of the last node to the newly created node

d)

Traverse to the last node

8.

What do you need to do to add a node in the middle of a linked list?

a)

Change the next of the last node to the newly created node

b)

Adding elements to the middle of the linked list

c)

Allocate memory and store data for the new node

d)

Traverse to the last node

9.

What is the basic action to delete elements from a linked list?

a)

Deleting elements from the linked list

b)

Change the next of the last node to the newly created node

c)

Memory allocation and data storage for the new node

d)

Traverse to the last node

10.

What does the action of traversing to the last node in a linked list represent?

a)

Change the next of the last node to the newly created node

b)

Allocate memory and store data for the new node

c)

Add elements to the end of the linked list

d)

Traverse to the last node