πŸ“Š Python
Q. Study the following program:
Code:
x = 1
while True:
if x % 5 = = 0:
break
print(x)
x + = 1
What will be the output of this code?
  • (A) 2 1
  • (B) 0 3 1
  • (C) error
  • (D) None of these
πŸ’¬ Discuss
βœ… Correct Answer: (C) error

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
247
Total Visits
πŸ“½οΈ
3 y ago
Published
πŸŽ–οΈ
Ram Sharma
Publisher
πŸ“ˆ
85%
Success Rate