Q.

What will be the output of the following
Python code?
print(0xA + 0xB + 0xC)

A. 0xa0xb0xc
B. error
C. 0x22
D. 33
Answer» D. 33
Explanation: 0xa and 0xb and 0xc are hexadecimal integer literals representing the decimal values 10, 11 and 12 respectively. there sum is 33.
2.6k
0
Do you find this helpful?
4

Discussion

No comments yet