C++ File Handling Questions Answers

C++ File Handling Questions Answers includes important questions on File Handling in C++ Programming Language which are important for IBPS IT Officer Aptitude exam, Campus Placements and other technical interviews and exams.

11) Which among is used for positioning relative to the beginning of a strea

  • 1) ios::start
  • 2) ios::beg
  • 3) ios::begin
  • 4) ios::beginning
View Answer View Explanation
Ans.   B
Explanation :

12) Which is among following is used to Open a file for output and move the read/write control to the end of the fil

  • 1) ios::ate
  • 2) ios::at
  • 3) ios::ann
  • 4) ios::end
View Answer View Explanation
Ans.   A
Explanation :

13) Which is correct syntax for, position n bytes back from end of fileObjec

  • 1) fileObject.seekg(ios::end, n);
  • 2) fileObject.seekg(n, ios:end );
  • 3) fileObject.seekg(n, ios::end );
  • 4) fileObject.seekg(ios:end, n);
View Answer View Explanation
Ans.   C
Explanation :
<< Previous Page Next Page >>

Get Free Current Affairs and Govt Jobs Alerts in your mailbox

Current Affairs
Govt Jobs

Visit Our Blog