1. A) Indicate all of the situations that suggest FIFO behavior in a word proces
ID: 3726785 • Letter: 1
Question
1. A) Indicate all of the situations that suggest FIFO behavior in a word processor program. There may be more than one correct answer.
a. Issuing five File / Print commands in succession
b. Using Edit / Undo to remove the command done two steps ago
c. Using File / Open / Recent to reopen the most recent file saved
d. Repeatedly pressing the Bold button to turn boldfacing on and off
B) The ______________ collection in the Java Collections Framework stores objects that are processed in order of importance by some data member.
a. List
b. Queue
c. PriorityQueue
d. Stack
C) Fill in the code to create a reference named c of the generic Collection interface of type String and instantiate with a LinkedList object.
____________________________________________
D) Using the refence named c in Question #8, indicate all methods that may be called. There may be more than one correct answer. Note only the method name is listed in the choices.
a. c.substring
b. c.add
c. c.contains
d. c.trimToSize
e. c.removeFirst
Explanation / Answer
A)
a. Issuing five File / Print commands in succession
d. Repeatedly pressing the Bold button to turn boldfacing on and off
B)
c. PriorityQueue
C)
LinkedList<String> c = new LinkedList<String>();
D)
b) c.add
c) c.contains
d) c.removeFirst
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.