1- Which of the following expression results in a value 1? 25 % 5 15 % 4 2 % 1 37 % 6 2- What is the exact output of the following code? double average = 4.75; System.out.print(" average ");...


1- Which of the following expression results in a value 1?


25 % 5


15 % 4


2 % 1


37 % 6




2- What is the exact output of the following code?


double average = 4.75;
System.out.print(" average ");
System.out.print(average);




4.75 average




4.75 4.75




average 4.75




average average




3- If a program compiles fine, but it terminates abnormally at runtime, then the program suffers ____.


a syntax error


a runtime error


a logic error




 4- What is the value of


5 / 2




2




2.5




3




2.0



 5- To assign a value 100 to variable number, you write ____.




100 = number;




number = 100;




number == 100;




100 == number;



Jun 09, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here