Exam 5: Linked Lists
Exam 1: Review of Java Fundamentals60 Questions
Exam 2: Principles of Programming and Software Engineering60 Questions
Exam 3: Recursion: the Mirrors60 Questions
Exam 4: Data Abstraction: The Walls60 Questions
Exam 5: Linked Lists60 Questions
Exam 6: Problem Solving With Abstract Data Types60 Questions
Exam 7: Stacks60 Questions
Exam 8: Queues60 Questions
Exam 9: Advanced Java Topics60 Questions
Exam 10: Algorithm Efficiency and Sorting60 Questions
Exam 11: Trees60 Questions
Exam 12: Tables and Priority Queues60 Questions
Exam 13: Advanced Implementations of Tables60 Questions
Exam 14: Graphs60 Questions
Exam 15: External Methods30 Questions
Select questions type
A linked list contains components,called ______,which are linked to one another.
Free
(Multiple Choice)
4.7/5
(39)
Correct Answer:
A
What does a traversal operation do?
Free
(Essay)
5.0/5
(36)
Correct Answer:
A traversal operation sequentially visits each node in a list until it reaches the end of the list.
Which of the following statements is used to insert a new node,referenced by newNode,at the end of a linear linked list?
Free
(Multiple Choice)
4.8/5
(41)
Correct Answer:
A
When a linked list is empty,the value of the head reference is null.
(True/False)
4.9/5
(45)
Which of the following is NOT true about all circular linked lists?
(Multiple Choice)
4.9/5
(42)
A reference variable declared as a data field within a class has the default value ______.
(Multiple Choice)
4.8/5
(37)
Write the code segment which is used to insert a new node,referenced by the reference variable newNode,between the nodes referenced by the reference variables prev and curr in a linear linked list.
(Short Answer)
4.9/5
(26)
Which of the following is true about a circular doubly linked list?
(Multiple Choice)
4.8/5
(26)
What is the difference between a linked list and an array in terms of their capacity to store data?
(Essay)
4.9/5
(29)
Suppose we want to write a loop that traverses a doubly-linked circular linked list.Assume that each node has a prev and a next reference,and the list itself maintains a reference to a head node.What is wrong with this loop header?
for (Node curr = head;curr != head.prev;curr = curr.next)
(Short Answer)
4.9/5
(29)
If you attempt to use a reference variable before it is instantiated,a(n)______ will be thrown.
(Multiple Choice)
4.9/5
(38)
Write the code segment that is used to insert a new node,referenced by the reference variable newNode,at the beginning of a linear linked list.
(Short Answer)
4.8/5
(39)
Name two advantages of implementing the ADT list as a linked list (reference based)instead of an array.
(Essay)
4.9/5
(44)
In Java,every class is ultimately derived from the class _____ through inheritance.
(Multiple Choice)
4.9/5
(33)
Showing 1 - 20 of 60
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)