Q. What is the output of this code?

Code:
print(5 % 2)
  • (A) 2
  • (B) 1
  • (C) 0
  • (D) Error
πŸ’¬ Discuss
βœ… Correct Answer: (B) 1
Explanation: `%` is the modulo operator. 5 % 2 equals 1.
Explanation by: Mr. Dubey
`%` is the modulo operator. 5 % 2 equals 1.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
64
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
93%
Success Rate