Exam 20: Data Structures
Exam 1: Introduction to Computers, the Internet and the World Wide Web27 Questions
Exam 2: Introduction to C Programming21 Questions
Exam 3: Control Statements, Part 127 Questions
Exam 4: Control Statements, Part 228 Questions
Exam 5: Functions and an Introduction to Recursion47 Questions
Exam 6: Arrays and Vectors19 Questions
Exam 7: Pointers and Pointer-Based Strings28 Questions
Exam 8: Sequential-Access Files12 Questions
Exam 9: Classes35 Questions
Exam 10: Classes: a Deeper Look, Part 215 Questions
Exam 11: Operator Overloading; String and Array Objects32 Questions
Exam 12: Object-Oriented Programming: Inheritance19 Questions
Exam 13: Object-Oriented Programming: Polymorphism23 Questions
Exam 14: Templates13 Questions
Exam 15: Stream Inputoutput33 Questions
Exam 16: Exception Handling24 Questions
Exam 17: File Processing11 Questions
Exam 18: Class String and String Stream Processing26 Questions
Exam 19: Searching and Sorting10 Questions
Exam 20: Data Structures19 Questions
Exam 21: Standard Template Library Stl56 Questions
Exam 22: Bits, Characters, C Strings and Structs26 Questions
Exam 23: Boost Libraries, Technical Report 1 and C0x21 Questions
Exam 24: Other Topics19 Questions
Exam 25: ATM Case Study, Part 1: Object-Oriented Design With the Uml15 Questions
Exam 26: ATM Case Study, Part 2: Implementing an Object-Oriented Design3 Questions
Exam 27: Game Programming With Ogre23 Questions
Select questions type
How many pointers are contained as data members in the nodes of a circular, doubly linked list of integers with five nodes?
Free
(Multiple Choice)
4.9/5
(30)
Correct Answer:
C
Which of the following is not a dynamic data structure?
Free
(Multiple Choice)
4.9/5
(35)
Correct Answer:
C
Which of the following statements about stacks is incorrect?
Free
(Multiple Choice)
4.7/5
(44)
Correct Answer:
B
If you add the following nodes to a binary search tree in the order they appear left-to-right):
6 34 17 19 16 10 23 3
What will be the output of a postorder traversal of the resulting tree?
(Multiple Choice)
4.9/5
(29)
The __________ operator takes as an argument the type of object being allocated and returns a __________.
(Multiple Choice)
4.9/5
(40)
A stack is initially empty, then the following commands are performed:
Push 5
Push 7
Pop
Push 10
Push 5
Pop
Which of the following is the correct stack after those commands assume the top of the stack is on the left)?
(Multiple Choice)
4.9/5
(37)
The pointer member in a self-referential class is referred to as a:
(Multiple Choice)
4.8/5
(49)
Given that the line
Delete newPtr;
Just executed, what can you conclude?
(Multiple Choice)
4.9/5
(45)
Which of the following tasks would a binary search tree not be well suited for?
(Multiple Choice)
5.0/5
(36)
What kind of linked list begins with a pointer to the first node, and each node contains a pointer to the next node, and the pointer in the last node points back to the first node?
(Multiple Choice)
4.9/5
(36)
For a non-empty linked list, select the code that should appear in a function that adds a node to the end of the list. newPtr is a pointer to the new node to be added and lastPtr is a pointer to the current last node. Each node contains a pointer nextPtr.
(Multiple Choice)
4.8/5
(36)
Select the incorrect statement. Binary search trees regardless of the order in which the values are inserted into the tree):
(Multiple Choice)
4.8/5
(42)
Which data structure represents a waiting line and limits insertions to be made at the back of the data structure and limits removals to be made from the front?
(Multiple Choice)
4.8/5
(33)
__________ is not an advantage of linked lists when compared to arrays.
(Multiple Choice)
4.8/5
(43)
If you have a 1000-element balanced binary search tree, what is the maximum number of comparisons that may be needed to find an element in the tree?
(Multiple Choice)
4.8/5
(32)
A queue performs the following commands in pseudo-code):
Enqueue 4, 6, 8, 3, 1
Dequeue three elements
Enqueue 3, 1, 5, 6
Dequeue two elements
What number is now at the front of the queue?
(Multiple Choice)
4.8/5
(42)
A linked list has the functions insertAtFront, removeFromFront, insertAtBack and removeFromBack, which perform operations on nodes exactly as their names describe. Which two functions would most naturally model the enqueue and dequeue operations, respectively, of a queue?
(Multiple Choice)
4.8/5
(42)
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)