A+ Sample Review
A+ Sample Review
com
www.apluscompsci.com
MULTIPLE CHOICE
1. Which of the following could fill <*1> without causing a compile error?
<*1> x = 89;
I. int
II. byte
III. short
IV. long
V. double
2. Which of the following could fill <*1> without causing a compile error?
<*1> x = 160;
I. int
II. byte
III. short
IV. long
V. double
3. Which of the following could fill <*1> without causing a compile error?
<*1> x = 32799;
I. int
II. byte
III. short
IV. long
V. double
4. Which of the following could fill <*1> without causing a compile error?
<*1> x = 327991L;
I. int
II. byte
III. short
IV. long
V. double
5. Which of the following could fill <*1> without causing a compile error?
<*1> x = 900.123f;
I. int
II. byte
III. float
IV. long
V. double
6. Which of the following could fill <*1> without causing a compile error?
<*1> x = 32799.876;
I. double
II. byte
III. float
IV. long
V. int
7. Which of the following could fill <*1> without causing a compile error?
<*1> x = ‘A’;
I. int
II. byte
III. short
IV. long
V. double
8. Which of the following could fill <*1> without causing a compile error?
<*1> x = 9 + 5;
I. int
II. byte
III. short
IV. long
V. double
9. Which of the following could fill <*1> without causing a compile error?
<*1> x = 9 / 2;
I. int
II. byte
III. short
IV. long
V. double
Review 2 - Recursion
MULTIPLE CHOICE
a. 221
b. 201
c. 3
d. 100
e. 101
a. 221
b. 201
c. 3
d. 100
e. 101
a. 221
b. 201
c. 3
d. 100
e. 101
a. 221
b. 201
c. 3
d. 100
e. 101
a. 221
b. 201
c. 3
d. 100
e. 101
a. 221
b. 201
c. 3
d. 100
e. 101
www.apluscompsci.com