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’.
Q. What is the value of the following Python expression? bin(0x8)
β
Correct Answer: (C)
1000
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