CommerceBitwise And Boolean MCQs
Practice Bitwise And Boolean MCQs for competitive exams.
Bitwise And Boolean MCQs
Practice questions from this topic.
What is the two's complement of -44?
- A. 1011011
- B. 11010100
- C. 11101011
- D. 10110011
Correct Answer: B
What is the result of `5 & 9 | 1` ?
- A. 13
- B. 5
- C. 9
- D. 1
Correct Answer: A
What is the result of not (True or False) ?
- A. True
- B. False
- C. None
- D. Error
Correct Answer: B
What is the result of not (3 > 5) ?
- A. True
- B. False
- C. None
- D. Error
Correct Answer: A
What will be the output of the following Python code snippet? not(1030)
- A. True
- B. False
- C. Error
- D. No output
Correct Answer: B
The one's complement of 110010101 is:
- A. 001101010
- B. 110010101
- C. 001101011
- D. 110010100
Correct Answer: A
What is the result of True ^ False ?
- A. True
- B. False
- C. None
- D. Error
Correct Answer: A
Which of the following represents the bitwise XOR operator?
- A. &
- B. ^
- D. !
Correct Answer: B
What will be the value of x in the following Python expression, if the result of that expression is 2? x>>2
- A. 8
- B. 4
- C. 2
- D. 1
Correct Answer: A
What is the result of 7 << 2 ?
- A. 28
- B. 7
- C. 14
- D. 4
Correct Answer: A
What is the result of `(6 | 3) ^ 5` ?
- A. 0
- B. 1
- C. 4
- D. 7
Correct Answer: A
What is the result of 5 <> 1 ?
- A. 5
- B. 10
- C. 20
- D. 2
Correct Answer: B