MCQ
Single Best Answer
Easy
QWhich of the following languages does NOT support the do-while loop?
ID: #23093
Do-While Loop in Programming Language
108 views
Question Info
#23093Q ID
EasyDifficulty
Do-While Loop in Programming LanguageTopic
Your Answer
Choose the Best Option
Click any option to instantly check if you're correct.
Correct Answer: Option C
Explanation
Python does not natively support the do-while loop construct. While C++, Java, and C# all include do-while loops as part of their syntax, Python relies solely on the while loop for its looping structures. In Python, you can simulate a do-while loop by using a while True loop with a break condition inside, but there is no formal syntax for it. This is because Python tends to favor simpler control structures, and the designers opted not to include a separate do-while loop.
Continue Practice
Share
Share This Question
Challenge a friend or share with your study group.
More from This Topic