InstructionsTotal Questions: 12Total Minutes: 12This ExamTray Free Online Exam/Quiz/Trivia tests your Java Programming Skills on Java Bitwise Operators and their priority & associativity. You will be tested on Bitwise AND, OR, NOT, XOR/Exclusive OR. This test displays answers after finishing the exam for review. You can easily clear Competitive Exams and Job Interview Questions. Go through Java Theory Notes on Bitwise Operators before attempting this test. All the Best Challenge SCORE0 / 12Take This Exam 1*2*3*4*5*6*7*8*9*10*11*12*Q Buttons 1) What is the output of the Java program? byte b = 0b0000101; System.out.print(b + ","); b &= 0b00001111; System.out.print(b); A) 5, 0 B) 5,5 C) 5,15 D) None 2) What is the output of the Java program? byte b = 0b00000101; System.out.print(b + ","); b |= 0b00001111; System.out.print(b); A) 5,0 B) 5,5 C) 5,15 D) Compiler error 3) What is the output of the Java Program? byte b = 0b00000101; System.out.print(b + ","); b ^= 0b00001111; System.out.print(b); A) 5,0 B) 5,5 C) 5,10 D) 5,15 4) What is the output of the Java program? byte b = 0b00000101; System.out.print(b + ","); b = (byte)~b; System.out.print(b); A) 5, 10 B) 5, -10 C) 5. -6 D) Compiler error 5) What is the output of the Java program with Left Shift Operator (<<)? byte b = 0b00000101; System.out.print(b + ","); b = (byte)(b << 1); System.out.print(b); A) 5,2 B) 5,5 C) 5,10 D) Compiler error 6) What is the output of Java program with Right Shift Operator (>>)? byte b = 0b00000101; System.out.print(b + ","); b = (byte)(b >> 1); System.out.print(b); A) 5,-6 B) 5,10 C) 5, 2 D) Compiler error 7) What is the output of the Java program with Right Shift (Without Fill Zeroes)? byte num = (byte)0b1111_1000; System.out.print(num + ","); num = (byte)(num >> 1); System.out.print(num); A) -8, -16 B) -4, -8 C) -8, -4 D) Compiler error Ad 8) What is the output of a Java Program with Shift Right Fill Zeroes (>>>) operator? byte num = (byte)0b1111_1000; System.out.print(num + ","); num = (byte)(num >>> 1); System.out.print(num); A) -8, 8 B) -8, 4 C) -8, -4 D) Compiler error 9) What is the output of Java Program with Shift Right Fill Zeroes operator? byte num = (byte)0b000_1000; System.out.print(num + ","); num = (byte)(num >>> 1); System.out.print(num); A) -8, 4 B) 8, 4 C) 8, -4 D) -8, -4 10) What is the output of the Java program? byte num = (byte)0b000_1000; if(num >> 1 > 6) { System.out.print(num); } else { System.out.println(num>>1); } A) 8 B) 6 C) 4 D) Compiler error 11) What is the output of the Java Program? byte num = (byte)0b000_1000; if(num >> 1 > 6 || true) { System.out.print(num); } else { System.out.println(num>>1); } A) 8 B) 6 C) 4 D) 2 12) What is the output of the Java program? byte num = (byte)0b000_1000; if(num >> 1 > 6 || true | 2>3) { System.out.print(num+1); } else { System.out.println(num>>2); } A) 8 B) 6 C) 9 D) Compiler error FINISH EXAM 1*2*3*4*5*6*7*8*9*10*11*12*PREVBitwise Operators in Java - 1 NEXTTernary Operator Online Test 1 Certification Group ID 3845