Filters
Question type

Study Flashcards

The last node in a linked list points to


A) a null pointer
B) the previous node
C) the first node in the list
D) nothing; the last node does not contain a pointer
E) None of these

F) A) and E)
G) B) and C)

Correct Answer

verifed

verified

A

The Standard Template Library (STL) provides a linked list container.

A) True
B) False

Correct Answer

verifed

verified

Appending a node means adding it to the end of a list, and __________ a node means putting a new node in the list, but not necessarily at the end.


A) concatenating
B) popping
C) clamping
D) inserting
E) None of these

F) B) and C)
G) A) and D)

Correct Answer

verifed

verified

D

Nodes in a linked list are stored in contiguous memory.

A) True
B) False

Correct Answer

verifed

verified

When working with a linked list one of the basic operations you can perform is to destroy the list.

A) True
B) False

Correct Answer

verifed

verified

To append a node to a list means to


A) delete a node from the beginning of the list
B) delete a node from the end of the list
C) add a node to the beginning of the list
D) add a node to the end of the list
E) None of these

F) A) and B)
G) A) and C)

Correct Answer

verifed

verified

Deleting an entire list simply requires the use of the delete operator.

A) True
B) False

Correct Answer

verifed

verified

Which type of list does not contain a null pointer at the end of the list?


A) backwards linked
B) doubly linked
C) circular linked
D) null linked
E) None of these

F) B) and D)
G) None of the above

Correct Answer

verifed

verified

The list container provided by the Standard Template Library is a template version of a


A) singly linked list
B) doubly linked list
C) circular linked list
D) backward linked list
E) None of these

F) A) and E)
G) B) and E)

Correct Answer

verifed

verified

To insert a new node in ascending order into a list, the list must be


A) arranged in descending order
B) randomly ordered
C) empty
D) arranged in ascending order
E) None of these

F) B) and E)
G) B) and D)

Correct Answer

verifed

verified

D

A linked list class must take care of removing the dynamically allocated nodes and this is done by


A) the constructor function
B) the destructor function
C) overriding the removal function
D) overloading the memory persistence operator
E) None of these

F) B) and C)
G) D) and E)

Correct Answer

verifed

verified

The advantage a linked list has over a vector is that


A) a linked list can dynamically shrink or grow and a vector cannot
B) a linked list is smaller than a vector
C) a node can be inserted or removed faster from a linked list than from a vector
D) data removal and insertion are more accurate with a linked list than with a vector
E) None of these

F) A) and B)
G) None of the above

Correct Answer

verifed

verified

When you create a linked list you must know in advance how many nodes the list will contain.

A) True
B) False

Correct Answer

verifed

verified

Select all that apply. Variations of the linked list are


A) doubly linked list
B) circular linked list
C) frontward linked list
D) backward linked list

E) None of the above
F) C) and D)

Correct Answer

verifed

verified

Select all that apply. Which of the following is a basic list operation?


A) appending a node
B) traversing the list
C) inserting a node
D) deleting a node
E) None of these

F) D) and E)
G) A) and B)

Correct Answer

verifed

verified

If there are no nodes in a linked list, you cannot append a node to the list.

A) True
B) False

Correct Answer

verifed

verified

To create a linked list you must first create a(n)


A) header file
B) function template
C) exception
D) struct
E) None of these

F) C) and D)
G) All of the above

Correct Answer

verifed

verified

If new data needs to be added to a linked list, the program simply __________ and inserts it into the series.


A) allocates another node
B) removes a node
C) borrows a node from the compiler
D) Either B or C
E) None of these

F) A) and B)
G) None of the above

Correct Answer

verifed

verified

To delete an entire list, normally you must traverse the list, deleting each node, one by one.

A) True
B) False

Correct Answer

verifed

verified

A list that contains pointers to the previous node, the next node, and a node in the third dimension is known as a triple linked list.

A) True
B) False

Correct Answer

verifed

verified

Showing 1 - 20 of 41

Related Exams

Show Answer