Paper Tayyari

Lecture 19: File Handling (Continued)

MCQs, short and long questions from lecture 19.Lecture 19 ki MCQs, short aur long sawal.

2 MCQs · 2 MCQs from past papers2 MCQs · 2 MCQs past papers se

Start mock testMock test shuru karein
DoneHal kiye 0/2
– correctsahi
1.
★ Solved MCQs collection

These functions seekg() and seekp() require an argument of type ____________ to let them know how many bytes to move forward or backward.

  1. Aint
  2. Bshort
  3. Clong
  4. Ddouble

The offset argument of seekg()/seekp() is a long value (stream offset), as taught in the handouts.

2.
★ Solved MCQs collection

We have opened a file stream myfile for reading (getting), myfile.tellg() gives us the current get position of the file pointer. It returns a whole number of type___________

  1. Along
  2. Bint
  3. Cshort
  4. Ddouble

tellg() returns the position as a long (stream position) value per the handouts.