PYQPulse
HomeMocksPracticePYQsDashboard
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. Q3602

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

In C Programming, which of the following scanf() statements is correct to read - double x; float y;

  1. Ascanf("%f%f",x,y);
  2. Bscanf("%lf%lf",x,y);
  3. Cscanf("%f%lf",x,y);
  4. Dscanf("%lf%f",x,y);Correct

Answer: D. scanf("%lf%f",x,y);

Explanation

The correct option is (4) Explanation: To scan a double value, %If is used as the format specifier. To scan a float value, %f is used as a format specifier. Therefore, the scanf() statement is correct to read is, scanf("%lf%f",x,y); Key Points In C programming, scanf() is one of the commonly used functions to take input from the user. The scanf() function reads formatted input from the standard input such as keyboards. The simplest application of scanf looks like this: scanf ("%d", &b); Double has 2x more precision than float. Float is a 32 bit IEEE 754 single- precision floating-point number. The term floating point is derived from the fact that there is no fixed number of digits before and after the decimal point; that is, the decimal point can float. Scanf() function is used to read character, string, numeric data from the keyboard.

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

← Q3601View full paper (3719 questions)Q3603 →

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

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

Start test