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. Q3689

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

Which of the following function sets the position to a desired point in the file?

  1. Afseek()Correct
  2. Bputw()
  3. Cgetw()
  4. Dftell()

Answer: A. fseek()

Explanation

fseek() This function is used for seeking the pointer position in the file at the specified byte. Syntax: fseek( file pointer, displacement, pointer position); file pointer points to the file, displacement is positive or negative. Displacement is the number of bytes which are skipped backward (if negative) or forward( if positive) from the current position. Position frow where offset is added example SEEK_SET from the beginning of the file Therefore fseek() function sets the position to a desired point in the file ftell() This function returns the value of the current pointer position in the file. The value is count from the beginning of the file. Syntax: ftell(fptr); // Where fptr is a file pointer. putw() putw function is used to write an integer into a file. Syntax: int putw(int number, FILE *fp); number is the integer value and fp is a file pointer getw() This function reads an integer value from a file pointed by fp. Syntax: int getw(FILE *fp);

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

← Q3688View full paper (3719 questions)Q3690 →

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

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

Start test