Exam 4: Arrays and Linked Structures

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

How does a programmer access the first item in a singly linked structure?

(Multiple Choice)
4.9/5
(42)

Which of the following best describes an array?

(Multiple Choice)
4.8/5
(35)

What type of linked structure operation is the following code performing? Z = 0 Probe = head While probe != None: Z = probe.data + z Probe = probe.next

(Multiple Choice)
4.8/5
(37)

Older programming languages implement arrays as static data structures which are inefficient. What do modern languages use to remedy the problems of static arrays?

(Multiple Choice)
4.8/5
(40)

Which of the following statements accesses the second column in the third row of a two-dimensional array?

(Multiple Choice)
4.8/5
(27)

The first item in a singly linked structure is accessed using a head link.

(True/False)
4.9/5
(34)

The following code searches a linked structure. What is the missing code? Probe = head While probe != None and targetItem != probe.data: < missing code > If probe != None: Print("Target item found!") Else: Print("Target item not found!")

(Multiple Choice)
4.9/5
(41)

It's easier to get to an item's predecessor in a singly linked structure than in a doubly linked structure.

(True/False)
4.9/5
(31)

The run-time complexities of the operations on a doubly linked structure are typically double compared to the corresponding operations on the singly linked structure.

(True/False)
4.9/5
(46)

When a list's append method results in memory wasted beyond a threshold, the size of the underlying array is decreased.

(True/False)
4.7/5
(37)

What are almost all operations on arrays based upon?

(Multiple Choice)
4.8/5
(37)

A traversal of a singly linked structure terminates when the temporary variable is equal to the head pointer.

(True/False)
4.8/5
(45)

Which of the following is true about Python's array module?

(Multiple Choice)
4.8/5
(48)

A circular linked structure contains a link from the last node back to the first node in the structure.

(True/False)
4.9/5
(29)

If the logical size of an array equals the physical size of the array, a new array must be created to add elements to the array.

(True/False)
4.9/5
(39)

What is the primary implementing structure of Python collections?

(Multiple Choice)
4.8/5
(27)

When an item is inserted into an array, the logical size of the array increases.

(True/False)
4.9/5
(36)

To access a two-dimensional array, you use two subscripts.

(True/False)
4.9/5
(34)

Why are the insertion and removal of the first node special cases of the insert and remove i th node on singly linked structures?

(Multiple Choice)
4.9/5
(42)

The operation of removing an item at the end of a linked structure is constant in time and memory.

(True/False)
4.8/5
(36)
Showing 21 - 40 of 50
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)