Q.

What will be the output of the following Python expression? 0x35 | 0x75

A. 115
B. 116
C. 117
D. 118
Answer» C. 117
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.
614
0
Do you find this helpful?
6

Discussion

No comments yet