πŸ“Š Problem Solving and Python Programming
Q. What will be the output of the following
Python code?
print(0xA + 0xB + 0xC)
  • (A) 0xa0xb0xc
  • (B) error
  • (C) 0x22
  • (D) 33
πŸ’¬ Discuss
βœ… Correct 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.


Explanation by: Mr. Dubey
0xa and 0xb and 0xc are hexadecimal integer literals representing the decimal values 10, 11 and 12 respectively. there sum is 33.

πŸ’¬ Discussion

πŸ“Š Question Analytics

πŸ‘οΈ
937
Total Visits
πŸ“½οΈ
2 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
96%
Success Rate