Exam 4: Arrays and Linked Structures
Exam 1: Basic Python Programming51 Questions
Exam 2: An Overview of Collections50 Questions
Exam 3: Searching, Sorting, and Complexity Analysis50 Questions
Exam 4: Arrays and Linked Structures50 Questions
Exam 5: Interfaces, Implementations, and Polymorphism50 Questions
Exam 6: Inheritance and Abstract Classes50 Questions
Exam 7: Stacks50 Questions
Exam 8: Queues50 Questions
Exam 9: Lists50 Questions
Exam 10: Trees50 Questions
Exam 11: Sets and Dictionaries50 Questions
Exam 12: Graphs50 Questions
Select questions type
How does a programmer access the first item in a singly linked structure?
(Multiple Choice)
4.9/5
(42)
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)
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)
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
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)