1. which of the following expressions evaluates multiplication first addition second and multiplication third A. 2*3+4*5
B. (2*3) + (4*5)
C. 2 * (3+4) * 5
D. 2 * (3+4*5)
2. After the following two statements, what is the value of j?
int i=10;
int j=10*i++;
A. 100
B. 101
C. 110
D. 111
3. Consider the following code.
int x=1;
int y=2;
System. out. println ("The sum of x and y is" + x+y+".");
What would be the result of the last statement?
A. It would display the text, "the sum of x and y is 3."
B. It would display the text, "the sum of x and y is 12."
C. It would display a very large number, something similar to 442152118.
D. The statement would cause a compilation error.
(Note: This is for Java programming)
+3
Answers (1)
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “1. which of the following expressions evaluates multiplication first addition second and multiplication third A. 2*3+4*5 B. (2*3) + (4*5) ...” in 📗 Computers & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Home » Computers & Technology » 1. which of the following expressions evaluates multiplication first addition second and multiplication third A. 2*3+4*5 B. (2*3) + (4*5) C. 2 * (3+4) * 5 D. 2 * (3+4*5) 2.