The statements that transfer control to the beginning of the
2024
The statements that transfer control to the beginning of the loop is called____.
- A.
Break statements
- B.
Exit statements
- C.
goto statements
- D.
continue statements
Attempted by 636 students.
Show answer & explanation
Correct answer: D
In programming, loop control statements are used to alter the normal flow of a loop. The statement that transfers control to the beginning of the loop is the continue statement. When continue is executed, the current iteration is skipped, and the loop proceeds to the next iteration, effectively returning control to the loop's start. This is different from break, which exits the loop entirely, or goto, which allows arbitrary jumps. The continue statement is specifically designed to move to the next iteration without terminating the loop.
हिन्दी उत्तर: प्रोग्रामिंग में, लूप नियंत्रण कथनों का उपयोग लूप के सामान्य प्रवाह को बदलने के लिए किया जाता है। लूप के शुरुआत में नियंत्रण को स्थानांतरित करने वाला कथन जारी रखें (continue) कथन है। जब जारी रखें को निष्पादित किया जाता है, तो वर्तमान इटरेशन को छोड़ दिया जाता है और लूप अगली इटरेशन के लिए आगे बढ़ता है, जिससे नियंत्रण लूप की शुरुआत में वापस आ जाता है। यह ब्रेक से अलग है, जो लूप को पूरी तरह से बाहर निकालता है, या गोटो से अलग है, जो जेनरल जंप के लिए होता है। जारी रखें कथन विशेष रूप से लूप को समाप्त किए बिना अगली इटरेशन के लिए जाने के लिए डिज़ाइन किया गया है।