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 );


d. fileObject.seekg( 8, ios::end );

Computer Science & Information Technology

You might also like to view...

Which of the following using statements is equivalent to the preceding code segment

``` { var exampleObject = new ExampleClass(); try { exampleObject.SomeMethod(); } finally { if (exampleObject != null) { exampleObject.Dispose(); } } } ``` try using (var exampleObject = new ExampleClass()) { exampleObject.SomeMethod(); // do something with exampleObject exampleObject.Dispose(); }

Computer Science & Information Technology

What are the two ways to construct a block?

What will be an ideal response?

Computer Science & Information Technology

Once the changes are recorded, you can review the shared file and decide to ________

A) accept or reject the changes B) delete the file C) refresh the changes D) discard the file

Computer Science & Information Technology

To understand how hardware works, you must understand the ________ of how drives store 0s and 1s

Fill in the blank(s) with correct word

Computer Science & Information Technology