| 31. |
What does ~4 evaluate to?
|
||||||||
|
Answer:
Option (a) |
| 32. |
What does ~~~~~~5 evaluate to?
|
||||||||
|
Answer:
Option (a) |
| 33. |
What is the result of cmp(3, 1)?
|
||||||||
|
Answer:
Option (a) |
| 34. |
Which of the following is incorrect?
|
||||||||
|
Answer:
Option (d) |
| 35. |
What is the result of round(0.5) – round(-0.5)?
|
||||||||
|
Answer:
Option (d) |
| 36. |
What does 3 ^ 4 evaluate to?
|
||||||||
|
Answer:
Option (d) |
| 37. |
The value of the expressions 4/(3*(2-1)) and 4/3*(2-1) is the same.
|
||||
|
Answer:
Option (a) |
| 38. |
What will be the value of the following Python expression?
4 + 3 % 5
|
||||||||
|
Answer:
Option (b) |
| 39. |
Evaluate the expression given below if A = 16 and B = 15.
A % B // A
|
||||||||
|
Answer:
Option (b) |
| 40. |
Which of the following operators has its associativity from right to left?
|
||||||||
|
Answer:
Option (d) |