Explanation: the binary value of 0x35 is 110101 and that of 0x75 is 1110101. on or- ing these two values we get the output as: 1110101, which is equal to 117. hence the result of the above expression is 117.
Q. What will be the output of the following Python expression? 0x35 | 0x75
β
Correct Answer: (B)
116
Explanation by: Mr. Dubey
the binary value of 0x35 is 110101 and that of 0x75 is 1110101. on or- ing these two values we get the output as: 1110101, which is equal to 117. hence the result of the above expression is 117.
Discussion
Question Analytics
315
Total Visits
3 y ago
Published
Mr. Dubey
Publisher
97%
Success Rate