Page 128 - AP Computer Science A, 7th edition
P. 128

can lead to round-off error.
You should know the Integer constants Integer.MIN_VALUEand
Integer.MAX_VALUE. Be familiar with each of the following control structures: conditional statements, for loops, while loops, and for- each loops.
Be aware of the AP exam expectations concerning input and output.
MULTIPLE-CHOICEQUESTIONS ON INTRODUCTORY JAVA LANGUAGE CONCEPTS
1. Which of the following pairs of declarations will cause an error message?
I double x = 14.7; int y = x;
II double x = 14.7; int y = (int) x;
III int x = 14; double y = x;
(A) None
(B) Ionly
(C) IIonly
(D) IIIonly
(E) IandIIIonly
2. What output will be produced by
System.out.print("\\∗ This is not\n a comment ∗ \\");
  


















































































   126   127   128   129   130