PYQPulse
HomeMocksPracticePYQsUpdatesDashboard
PYQPulse

Timing-accurate mock tests and PYQs for SSC, Banking and Railway exams — so the real paper feels like a revision.

Exams

  • SSC exams
  • Banking exams
  • Railway exams
  • All exams

Practice

  • Practice questions
  • Mock test series
  • Sectional tests
  • Year-wise PYQs
  • Performance analytics

Company

  • About us
  • Help Centre
  • Pricing
  • Sign in

Legal

  • Privacy Policy
  • Terms of Service

Contact

  • hello@testwala.co.in
  • Telegram
  • +91 62816 87760

Practice interface modeled on the official exam pattern — not the official examination. PYQPulse is not affiliated with the Staff Selection Commission, IBPS, SBI, RBI, NABARD, SEBI or Indian Railways.

© 2026 PYQPulse. All rights reserved.

Built for aspirants, by aspirants.

HomeMocksPracticeStats
  1. Home
  2. ›
  3. PYQs
  4. ›
  5. RRB Junior Engineer / DMS / CMA
  6. ›
  7. 2019
  8. ›
  9. Q3706

RRB Junior Engineer / DMS / CMA 2019 · Question 3706 of 3719

In C programming, which of the following loop use explicitly breaks out of the loop by executing the break; statement?

  1. Ado loop
  2. Bwhile loop
  3. Cfor loop
  4. DAll of the optionsCorrect

Answer: D. All of the options

Explanation

while Loops Both while loops and do-while loops are condition-controlled, meaning that they continue to loop until some condition is met. While loops check for the stopping condition first, and may not execute the body of the loop at all if the condition is initially false. Syntax: while( condition ) body; where the body can be either a single statement or a block of statements within { curly braces }. do-while Loops do-while loops are exactly like while loops, except that the test is performed at the end of the loop rather than the beginning. This guarantees that the loop will be performed at least once. Syntax: do { body; } while( condition ); In theory, the body can be either a single statement or a block of statements within { curly braces }, but in practice, the curly braces are almost always used with do- whiles. for Loops for-loops are counter-controlled, meaning that they are normally used whenever the number of iterations is known in advance. Syntax for (initializationStatement; testExpression; updateStatement) { body of loop; }

Source: RRB JE 2019 (CBT 2) (IT) Previous Year Paper (30 Aug 2019) — prepp.in solved-paper PDF (answer key with explanations) · reliable-secondary

← Q3705View full paper (3719 questions)Q3707 →

Practice the full RRB Junior Engineer / DMS / CMA 2019 paper

Timed test with all 3719 questions, just like the real exam.

Start test