πŸ“Š Problem Solving and Python Programming
Q. What will be the output of the following Python expression? 0x35 | 0x75
  • (A) 115
  • (B) 116
  • (C) 117
  • (D) 118
πŸ’¬ Discuss
βœ… Correct Answer: (B) 116

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.


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