Question: Given the nested if-else structure below, answer questions 17 and 18 if (a >0) if (b 5) xx+4; else xx+3: else xx+2; 17) If x
Given the nested if-else structure below, answer questions 17 and 18 if (a >0) if (b 5) xx+4; else xx+3: else xx+2; 17) If x is currently 0, a 5 and b 5, what will x become after the above statement is executed? a) o b) 2 c) 3 d) 4 e) 5 18) If x is currently 0, a . 0 and b =-5, what will x become after the above statement is executed? a) 0 b) 2 c) 3 d) 4 e) 5 19) Consider the expression results 15 % 4; What value stored in result after this line is executed? a) o b) 1 c) 2 d) 3 e) 4 operator is used to instantiate an object. 20) The a) static b) new d) e) none of the above
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
