Primitive Datatype November 27, 2020December 21, 2020wefru Java Primitive Datatype Quiz 0 Created on November 27, 2020 By wefru Primitive datatypes TEST YOUR SKILLS 1 / 10 Choose the Compound Assignment Arithmetic Operators in Java below. +=, -= *=, /+ %= All the above 2 / 10 What is the output of the below Java code snippet?int a = 2 - - 7;System.out.println(a); -5 10 9 Compile Error 3 / 10 What is the output of the Java code snippet?int a=5, b=10, c=15;a -= 3;b *= 2;c /= 5;System.out.println(a +" " + b + " " + c); 2 20 3 2 20 5 2 10 5 -2 20 3 4 / 10 Which is the arithmetic operator in Java that gives the Remainder of Division? % @ & / 5 / 10 Between Postfix and Prefix arithmetic operators in Java, which operators have more priority? Postfix operators have more priority than Prefix operators Prefix operators have more priority than Postfix operators Both Prefix and Postfix operators have equal priority None of the above 6 / 10 Among the operator groups (++, --) and (+, -, *, /, %) in Java, which group has higher priority? (++, --) group has higher priority than (+, -, *, /, %) group (++, --) group has lower priority than (+, -, *, /, %) group (++, --) group and (+, -, *, /, %) group have equal priority None of the above 7 / 10 Choose the correct statement about Java Prefix and Postfix operations. Prefix operation is carried out immediately and the variable value will be incremented or decremented accordingly Postfix operation is carried out on the next line or statement. So the variable value will not change. A and B None of the above 8 / 10 An IF statement in Java is also a ___ statement. Boolean Conditional iterative optional 9 / 10 Java style IF-ELSE statements are similar to ___. C style C++ style Both C and C++ None 10 / 10 Which of these selection statements test only for equality? if Switch if & switch None of the mentioned Your score isThe average score is 0% LinkedIn Facebook Twitter VKontakte 0% Restart quiz