1. What will be the output of the following Python code snippet?
not(10<20) and not(10>30)

Answer. False

2. Which of the following Boolean expressions is not logically equivalent to the other three?
• not(-6<0 or-6>10)
• -6>=0 and -6<=10
• not(-6<10 or-6==10)
• not(-6>10 or-6==10)

3. What will be the output of the following Python expression?
~100?

Answer. -101

4. What is the value of the following expression?
8/4/2, 8/(4/2)

Answer. (1.0, 4.0)

5. What is the value of the following expression?
float(22//3+3/3)

Answer. 8.0

6. What will be the value of the following Python expression?
4+2**5//10

Answer. 7

7. The expression 2**2**3 is evaluates as: (2**2)**3.

Answer. False<<2

8. What is the value of the following Python expression?
bin(0x8)

Answer. '0b1000'

9. What will be the output of the following Python expression?
0x35 | 0x75

Answer. 117

10. What is the two's complement of -44?

Answer. 11010100