MCQ Single Best Answer Moderate

QWhich of the following languages does not support a do-while loop?

ID: #23087 While Loop in Programming Language 74 views
Question Info
#23087Q ID
ModerateDifficulty
While Loop in Programming LanguageTopic

Choose the Best Option

Click any option to instantly check if you're correct.

  • A C++
  • B Java
  • C Python
  • D C#
Correct Answer: Option C

Explanation

Python does not have a built-in do-while loop. Instead, it only supports the traditional while loop, which checks the condition before executing the loop body. In contrast, languages like C++, Java, and C# all support both while loops and do-while loops. In these languages, a do-while loop is structured to ensure that the loop body executes at least once, even if the condition is false from the beginning.

Share This Question

Challenge a friend or share with your study group.