1. What willbe the result of attempting to compile and run the
following program?
A. NULL
B. BLANK
C. STRING
D. This program will not compile.
E. This program will error at runtime.
74.
2. Given :
Whatwill the program print when compiled and run?
A. NULL
B. STRING
C. print nothing.
D. This program will not compile.
E. This program will error at runtime.
What will bethe result? (Choose al l that apply.)
A. Compiles error at S1.
B. Compiles error at S2.
C. Compiles error at S3.
D. Compiles error at S4.
E. Compiles error at S5.
F. It will run and print "200300" after removing all the errors.
80.
5. Which arelegal argument types for switch statement?
(Choose all that apply.)
A. byte
B. boolean
C. short
D. D. int
E. long
F. char
G. String
81.
6. What willbe the result to run the following program?
A. Cool
D. CoolColdWarm
B. Cold
C. CoolCold
E. ColdHotAndWarm
What is theresult?
A. 1000
B. 1010
C. 1011
D. 1100
E. 1101
當有多個 if 、 else 時 , 若沒有以大括號標出範圍 , 則會
以較內層的優先配對。例如 if()...if()...TIIP else, 則 else
會和第二個 if 配對。