πŸ“Š Problem Solving and Python Programming
Q. What is the value of the following Python expression? bin(0x8)
  • (A) ‘0bx1000’
  • (B) 8
  • (C) 1000
  • (D) ‘0b1000’
πŸ’¬ Discuss
βœ… Correct Answer: (C) 1000

Explanation: the prefix 0x specifies that the value is hexadecimal in nature. when we convert this hexadecimal value to binary form, we get the result as: ‘0b1000’.


Explanation by: Mr. Dubey
the prefix 0x specifies that the value is hexadecimal in nature. when we convert this hexadecimal value to binary form, we get the result as: ‘0b1000’.

πŸ’¬ Discussion

πŸ“Š Question Analytics

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