When you are finished relax until the timer runs out.
or answer see the questions here.
What exactly would be the output of: System.out.print(answer); in each
of the following cases? (Write your answers on the answer sheet.)
double outcome;
int entryA = 98;
int entryB = 212;
outcome = entryA + entryB;The last line is an example of:
a. promotion
b. assignment conversion
c. concatenation
d. parameter passing
e. casting
f. a data type error
String outcome;
String entryA = "98";
String entryB = "212";
outcome = entryA + entryB;The last line is an example of:
a. promotion
b. assignment conversion
c. concatenation
d. parameter passing
e. casting
f. a data type error
a. An online environment for writing code
b. Documentation of the fields, methods and other information about a class
c. A chip on a computer’s motherboard
d. A type of error that is caught by an exception handler
a. Unambiguous
b. Executable
c. Terminating
d. All of the above
e. b and c only
Use the following code to answer question 11. Assume that x was declared as an integer.
if (x <= 25) {
System.out.print(“a”);
} else if ( x > 25) {
System.out.print(“b”);
}
if ( ! (x == 25)) {
System.out.print(“c”);
}