1. Every class is compiled into a separate bytecode file that has the same name as the classand ends with the .class extension.
True or False?
2. The variable x starts with the value 0.
The variable y starts with the value 5.
Add 1 to x.
Add 1 to y.
Add x and y, and store the result in y.
Display the value in y on the screen.
A. 8
B. 9
C. 7 - correct?
D. 6
3. The variable a starts with the value 10.
The variable b starts with the value 2.
The variable c starts with the value 4.
Store the value of a times b in a.
Store the value of b times c in c.
Add a and c, and store the result in b.
Display the value in b on the screen.
A. 30
B. 29
C.18
D. 28
Dear Student ,
As per the requirement submitted above , kindly find the below solution.
Question 1:
Answer :True
Explanation :Every class is compiled into a separate bytecode file that has the same name as the class and ends with the .class extension.
****************************
Question 2:
Answer :C. 7
Explanation :
****************************
Question 3:
Answer :D. 28
Explanation :
****************************
NOTE : PLEASE FEEL FREE TO PROVIDE FEEDBACK ABOUT THE SOLUTION.
Get Answers For Free
Most questions answered within 1 hours.