Register Now

Login

Lost Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

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

What will be the output of the following Python expression?
0x35 | 0x75
a) 115
b) 116
c) 117
d) 118

Answer: c
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.

Join The Discussion