b. all-type-import declaration.
c. multiple-import declaration.
d. type-import-on-demand declaration.
21.4.10 Q5: The import declaration import *; ________.
a. causes a compilation error.
b. imports all classes in the library.
c. imports the default classes in the library.
d. imports the classes in package java.lang.
21.4.10 Q6: The classpath consists of a list of directories or archive files, each separated by a ________ on
Windows or a ________ on UNIX/Linux/Max OS X.
a. colon (:), semicolon (;).
b. semicolon (;), colon (:).
c. comma (,), semicolon (;).
d. semicolon (;), comma (,).
21.4.10 Q7: By default, the classpath consists only of the ________. However, the classpath can be
modified by providing the ________ option to the javac compiler.
a. root directory of the package, -d.
b. current directory, -d.
c. root directory of the package, -classpath.
d. current directory, -classpath.
21.5 Q1: A stack is a __________ data structure.
a. FILO.
b. FOLI.
c. LOFI.
d. LIFO.
21.5 Q2: The technique of implementing each stack method as a call to a List method is called
__________.
a. delegation.
b. delimiting.
c. assigning.
d. shifting responsibility.
21.5 Q3: Which statement is false?
a. When a method call is made, the called method must know how to return to its caller, so the return
address is pushed onto the program execution stack.
b. Stacks support recursive method calls in the same manner as conventional, nonrecursive method
calls.
c. The program execution stack contains the space created for a method’s global variables on each
invocation of that method during a program’s execution.
d. When a method returns to its caller, the memory for that method’s local variables is popped off the
stack and those variables are no longer known to the program.