Q 1: Questionable. Cannot go into details without ruining the question for everyone.
Q 9: Comment at end of switch statement is not correct.
Q 11: There is a typo in one of the options.
Q 23: Reason given for correct answer is not accurate. Integer ranges from -2^31 to 2^31-1. Again, cannot go into details without ruining question for everyone.
Q9 is correct (unless you assume that the output is additional to the ones in the switch). But the explaination for [23] should be improved, that's true. The range -128 to 127 is cached by the jvm.
A new version of this scenario was uploaded on 2022-02-18 03:25:35 UTC
A new version of this scenario was uploaded on 2022-02-18 03:32:09 UTC
removed some blunders
A new version of this scenario was uploaded on 2022-02-18 03:44:41 UTC
A new version of this scenario was uploaded on 2022-02-18 03:48:41 UTC
A new version of this scenario was uploaded on 2022-02-18 03:52:45 UTC
A new version of this scenario was uploaded on 2022-02-18 03:58:08 UTC
@danpsot & @RcCookie,
I hope now it doesn't contain any mistake. I have updated it and now you both can play the quiz n number of time since you got some answers wrong due to my mistakes. Especially RcCoookie deserves more than 28, since he played it when you can't give answers to some questions even if you want to(it was just a mistake by my side)
10: Remove ln from println so that the output would really be in one line.
23: To make it more readably, you could write
Integer num1 = 100, num2 = 100, num3 = 500, num4 = 500;
A new version of this scenario was uploaded on 2022-02-18 16:02:37 UTC
2022/2/17
2022/2/17
2022/2/18
2022/2/18
2022/2/18
2022/2/18
2022/3/2
2022/3/3
2022/4/13
2022/4/14