Which of the following will not change the file-position pointer to the same position as the others? Assume a 10-byte file size and a current position at byte # 1.
A) fileObject.seekg(2) ;
B) fileObject.seekg(1, ios::cur) ;
C) fileObject.seekg(2, ios::beg) ;
D) fileObject.seekg(8, ios::end) ;
Correct Answer:
Verified
Q1: To write fixed-length records, use file open
Q2: Which of the following is not true
Q3: Which of the following does not have
Q5: Random access files are more effective than
Q6: What is not true about this code
Q7: Which of the following functions would not
Q8: Which file open mode would be used
Q9: Select the false statement.
A) C++ imposes no
Q10: The new C++14 stream manipulator _ enables
Q11: Select the false statement. The write function:
A)
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents