|
RHS |
Test 01
| Question 1. | |||
Look at the following two lines of code: Explain in few words why the second line is actually printing "434.99999999999994" and not "435" as expected. |
|||
Write your answer here:
|
|||
| Question 2. | |||
Which of the following 4 statements are correct Java syntax?
|
|||
Write your answer here:
|
|||
| Question 3. | |||
Which of the following possibilities declares an integer constant with the value 5 in a Java program?
|
|||
Write your answer here:
|
|||
| Question 4. | |||
Find the result of the following statements from a Java program:
|
|||
1. _________ 2. _________ 3. _________ 4. _________ 5. _________ 6. _________
|
|||
| Question 5. | |||
Assume that the following statements has been executed in a Java program: Write the results from the following statements from that program:
|
|||
Write your answer here:
|
|||