C Programming Loop Constructs

In C programming, the loop that is executed at least once (even if the condition is false) is called ______ loop.

سی پروگرامنگ میں ، لوپ جو کم از کم ایک بار انجام دیا جاتا ہے (یہاں تک کہ اگر حالت غلط ہے) کو ______ لوپ کہا جاتا ہے۔
Answer: do-while
Explanation

In a do-while loop, the body executes first, and the condition is checked afterward, ensuring it runs at least once.

This differs from for and while loops, which check the condition before executing.

This question appeared in Past Papers (5 times)
ETEA 25 Years Past Papers Subject Wise (Solved) (2 times)
KPK Teacher Past Papers SST PST CT TT PET (2 times)
This question appeared in Subjects (1 times)

Install this app on your device for quick access right from your home screen.