Exam 8: Queues
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
Both classes, LinkedStack and LinkedQueue, use a singly linked Node class to implement nodes.
(True/False)
4.7/5
(34)
What is the solution to achieving good performance for both the add and pop methods in the array implementation of a queue?
(Multiple Choice)
4.9/5
(44)
Which type of computer activity would likely be assigned to the priority queue?
(Multiple Choice)
4.8/5
(36)
Which of the following is NOT an important factor to consider by a manager of a supermarket trying to schedule checkout cashiers?
(Multiple Choice)
4.8/5
(32)
In the following code for the pop method for a linked queue implementation, what is the missing code?
Def pop(self):
OldItem = self.front.data
Self.front = self.front.next
If self.front is None:
Self.rear = None
< missing code >
Return oldItem
(Multiple Choice)
4.8/5
(38)
The most common type of CPU scheduling technique is called last in, first-out.
(True/False)
4.9/5
(35)
What is one reason that it is difficult to devise formulas to answer simple questions about a supermarket checkout system?
(Multiple Choice)
4.7/5
(45)
Showing 41 - 50 of 50
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)