10 / 3 in Python 3.x?
5 * 6 + 3 in Python?
10 // 3 return in Python?
5 > 3?
10 != 10?
True or False return in Python?
False and True?
True in Python?
True and FalseFalse or Truenot Truenot Falsex = 5; x %= 2?
x by 1?
x++x += 1x = x + 1x = 5; x *= 2 result in?
^ operator do in Python?
5 << 1 in Python?
>> operator do in Python?
is operator do in Python?
x = [1, 2, 3]; y = x; x is y?
not in operator do in Python?
| Qno | Answer |
|---|---|
| 1 | b) 3.0 |
| 2 | b) % |
| 3 | a) 33 |
| 4 | b) ** |
| 5 | a) 3 |
| 6 | a) == |
| 7 | b) True |
| 8 | b) False |
| 9 | a) >= |
| 10 | c) != |
| 11 | c) and |
| 12 | b) True |
| 13 | a) not |
| 14 | b) False |
| 15 | b) False or True |
| 16 | b) += |
| 17 | a) 1 |
| 18 | b) := |
| 19 | b) x += 1 |
| 20 | a) 10 |
| 21 | a) & |
| 22 | c) Bitwise XOR |
| 23 | a) 10 |
| 24 | c) ~ |
| 25 | c) Right shift |
| 26 | d) both a and c |
| 27 | b) Checks if two objects are the same object in memory |
| 28 | b) True |
| 29 | a) Checks if a value is not in a sequence |
| 30 | a) is |