Q. What is the output of this code?

Code:
x = 5
y = 2
print(x // y)
  • (A) 2.5
  • (B) 2
  • (C) 2.0
  • (D) 3
πŸ’¬ Discuss
βœ… Correct Answer: (B) 2
Explanation: `//` is floor division, which returns the largest integer less than or equal to the result.
Explanation by: Mr. Dubey
`//` is floor division, which returns the largest integer less than or equal to the result.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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