Which of the following is listed in the chapter as a basic operation performed on a queue?
A. push
B. pop
C. isEmptyQueue
D. top
Answer: C
You might also like to view...
If class X is a particular kind of class Y, then Y can be defined as a subclass of X.
Answer the following statement true (T) or false (F)
Which of the following is not true about the iterator?
a. the current position is stored in it b. the current list (in some form) is stored in it c. it is a friend of the list class d. the list class is a friend of it e. all of the above are true
You should fill in the blank in the following code with ______________.
``` public class Test { public static void main(String[] args) { System.out.print("The grade is " + getGrade(78.5)); System.out.print("\nThe grade is " + getGrade(59.5)); } public static _________ getGrade(double score) { if (score >= 90.0) return 'A'; else if (score >= 80.0) return 'B'; else if (score >= 70.0) return 'C'; else if (score >= 60.0) return 'D'; else return 'F'; } } ``` a. int b. double c. boolean d. char e. void
Where should your forearms be positioned when you are using the keyboard?
A) Parallel to the ground B) Slanting downward C) Slanting upward D) With your elbows away from your sides