Java ProgrammingPrograming & IT Mcqs 100+ MCQ & Answer Java programming | page-09 |Computer Engineering MCQ And Answer January 27, 2025 DSN MARATHI 81. Which is fast among OR(|) and Short Circuit OR (||) operators in Java? A. OR Operator B. Short Circuit OR operator C. Both work at the same speed D. None of the above Answer Option : B 82. Why are Short Circuit AND (&&) and Short Circuit OR (||) operators are fast in Java? A. By skipping the second expression or operand if possible and save time. B. By using extra memory on the machine C. By using extra CPU processing power D. None of the above Answer Option : A 83. Choose the correct version of Logical Compound Assignment operators in Java below? A. &=, |=, ^= B. &&=, ||=, != C. A and B D. None of the above Answer Option : A 84. If an AND (&) operator is applied with two integers, what is this operator? A. Boolean operator B. Bitwise operator C. Logical operator D. Arithmetic operator Answer Option : B 85. Bitwise operators in Java work with? A. boolean data like true or false B. Real numbers like float or double C. Individual bits of integers like byte, short, int, long and char D. All the above Answer Option : C 86. Find operators that work as both Logical operators and Bitwise operators in Java? A. &, &= B. |, |= C. ^, ^= D. All the above Answer Option : D 87. If relational operators are present in an expression, what type of other operators may be used? A. Logical operators B. Bitwise operators C. A and B D. None of the above Answer Option : A 88. What is the name of << bitwise operator in Java? A. Right Shift Operator B. Left Shift Operator C. Left Shift Fill Zero operator D. Right Shift Fill Zero operator Answer Option : B 89. What is this >> bitwise operator in Java? A. Left shift operator B. Right shift operator C. Left Shift Fill Zero operator D. Right Shift Fill Zero operator Answer Option : D 90. Left Shift (<<) in Java is equivalent to? A. Subtracting the number by 2 B. Dividing the number by 2 C. Multiplying the number by 2 D. Adding the number by 2 Answer Option : C
81. Which is fast among OR(|) and Short Circuit OR (||) operators in Java? A. OR Operator B. Short Circuit OR operator C. Both work at the same speed D. None of the above Answer Option : B
82. Why are Short Circuit AND (&&) and Short Circuit OR (||) operators are fast in Java? A. By skipping the second expression or operand if possible and save time. B. By using extra memory on the machine C. By using extra CPU processing power D. None of the above Answer Option : A
83. Choose the correct version of Logical Compound Assignment operators in Java below? A. &=, |=, ^= B. &&=, ||=, != C. A and B D. None of the above Answer Option : A
84. If an AND (&) operator is applied with two integers, what is this operator? A. Boolean operator B. Bitwise operator C. Logical operator D. Arithmetic operator Answer Option : B
85. Bitwise operators in Java work with? A. boolean data like true or false B. Real numbers like float or double C. Individual bits of integers like byte, short, int, long and char D. All the above Answer Option : C
86. Find operators that work as both Logical operators and Bitwise operators in Java? A. &, &= B. |, |= C. ^, ^= D. All the above Answer Option : D
87. If relational operators are present in an expression, what type of other operators may be used? A. Logical operators B. Bitwise operators C. A and B D. None of the above Answer Option : A
88. What is the name of << bitwise operator in Java? A. Right Shift Operator B. Left Shift Operator C. Left Shift Fill Zero operator D. Right Shift Fill Zero operator Answer Option : B
89. What is this >> bitwise operator in Java? A. Left shift operator B. Right shift operator C. Left Shift Fill Zero operator D. Right Shift Fill Zero operator Answer Option : D
90. Left Shift (<<) in Java is equivalent to? A. Subtracting the number by 2 B. Dividing the number by 2 C. Multiplying the number by 2 D. Adding the number by 2 Answer Option : C