Home > Python > Quizzes > Problem Solving and Python Programming Practice Test: Bitwise Operator
Problem Solving and Python Programming Practice Test: Bitwise Operator
Fast practice, instant feedback. Timer auto-submits when time’s up.
Avg score: 13% Most missed: “What will be the output of the following Python expression?”
Problem Solving and Python Programming Practice Test: Bitwise Operator
Time left 00:00
8 Questions

1. Which of the following expressions results in an error?
2. Which of the following represents the bitwise XOR operator?
3. What will be the output of the following Python expression? int(1011)?
4. It is not possible for the two’s complement value to be equal to the original value in any case.
5. What is the value of the following Python expression? bin(0x8)
6. What will be the output of the following Python expression? 0x35 | 0x75
7. What will be the output of the following Python expression?
4^12
8. Bitwise _____________ gives 1 if either of the bits is 1 and 0 when both of the bits are 1.