Filters
Question type

Study Flashcards

What does the last item in a singly linked structure contain?


A) an empty link
B) a link to the first item
C) a link to the previous item
D) a method for appending an item

E) A) and D)
F) A) and C)

Correct Answer

verifed

verified

How does the class definition of a doubly linked structure differ from a singly linked structure?


A) by adding a previous pointer
B) by adding another head pointer
C) by adding an extra data field
D) by removing the tail pointer

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

Correct Answer

verifed

verified

Inserting data at the beginning of a linked structure uses constant time and memory.

A) True
B) False

Correct Answer

verifed

verified

In a doubly linked structure, the first and last item have an empty link.

A) True
B) False

Correct Answer

verifed

verified

A linked structure can have items that have a maximum of one link to another item.

A) True
B) False

Correct Answer

verifed

verified

When an array object is traversed in a for loop, the object's __iter__ method is called.

A) True
B) False

Correct Answer

verifed

verified

Time performance is improved if you double the size of the array when you need to increase its size.

A) True
B) False

Correct Answer

verifed

verified

If an array's logical size is greater than zero, the index of the last item in the array is the logical size plus 1.

A) True
B) False

Correct Answer

verifed

verified

When an array is instantiated, it is filled with zeros by default.

A) True
B) False

Correct Answer

verifed

verified

The insertion and removal of the first node of a singly linked structure require that the head pointer be reset.

A) True
B) False

Correct Answer

verifed

verified

Showing 41 - 50 of 50

Related Exams

Show Answer