Question

The operating system records the information that tracks the end of the file when the program...

The operating system records the information that tracks the end of the file

when the program ends.

when a file is opened with ios::app.

when a file is closed.

when a file is opened with ios::eof.

None of the above

0 0
Add a comment Improve this question Transcribed image text
Answer #1

C)  when a file is closed.

operating system records the information that tracks the end of the file when files are closed.
Add a comment
Know the answer?
Add Answer to:
The operating system records the information that tracks the end of the file when the program...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • QUESTION 6 To determine whether a file was opened successfully, the program can use the fstream...

    QUESTION 6 To determine whether a file was opened successfully, the program can use the fstream function: Hint: google fail() open() close() eof() 10 points    QUESTION 7 Which of the following are correct ways to end a loop using a test for end-of-file? (Two correct answers) inStream.get(next); while(!inStream.eof( )) { cout << next; inStream.get(next); } while(inStream->next)   { cout << next; } inStream.get(next) while(!eof(inStream)) { cout << next; inStream.get(next); } while(inStream >> next)   cout << next; 10 points    QUESTION...

  • Operating systems in C 15.) Suppose a program has successfully opened a file object, fp, for...

    Operating systems in C 15.) Suppose a program has successfully opened a file object, fp, for reading a file from a disk drive and the program has created a buffer, my-but, of an appropriate size. Consider the following C function call. fread (my_buf, 1, BUFFERSIZE, fp); a) Explain why this function call may, or may not, cause a system call to the operating system. b) Suppose that the above function call causes a system call. Explain why the operating system...

  • One of the critical responsibilities of the operating system is to manage the file system. When...

    One of the critical responsibilities of the operating system is to manage the file system. When discussing the file system, the operating system has several tasks that it can perform. Listed below are 6 tasks that can be performed on files by the operating system. Describe in a sentence or two how the operating system handles each task. CREATE WRITE MOVE REPLACE CLOSE DELETE

  • Question 5. ArcGIS records projection and coordinate system information into a file with prj extension. Open...

    Question 5. ArcGIS records projection and coordinate system information into a file with prj extension. Open MD_cities_SPCS.prj in any text editor (e.g., WordPad, Notepad, etc.). Read the prj file, and explain the following information for the MD_cities_SPCS layer: projection, geodesy, GCS, geodetic datum and unit. Make sure you do not change the file (i.e., do not save the changes if you ever modify the content of this file. You may read ArcGIS Help to answer this question. (2 points) this...

  • C++ program Write a C++ program to manage a hospital system, the system mainly uses file...

    C++ program Write a C++ program to manage a hospital system, the system mainly uses file handling to perform basic operations like how to add, edit, search, and delete record. Write the following functions: 1. hospital_menu: This function will display the following menu and prompt the user to enter her/his option. The system will keep showing the menu repeatedly until the user selects option 'e' from the menu. Arkansas Children Hospital a. Add new patient record b. Search record c....

  • File structure is a structure, which is according to a required format that operating system can...

    File structure is a structure, which is according to a required format that operating system can understand. A file has a certain defined structure according to its type. A text file is a sequence of characters organized into lines. A source file is a sequence of procedures and functions. An object file is a sequence of bytes organized into blocks that are understandable by the machine. When operating system defines different file structures, it also contains the code to support...

  • (numbers 1-2) When two closed tubes (closed at one end) of different lengths each resonate at...

    (numbers 1-2) When two closed tubes (closed at one end) of different lengths each resonate at their 5th harmonic, a 5 Hz beat frequency is observed. 1. If one tube has length L, at which distance from the open end is a pressure node found? a) L/5 b) 2L/5 c) 3L/5 d) L e) none of the above answers are correct B is the correct answer 2. Both tubes are now opened at both ends. When each tube now resonates...

  • c++ program that prints joke and its punchline

    nothing happens when I replace the skeleton code. the program runs but it does not give me the desired results. All the question marks must be removed and filled in with the appropriate code.// Function prototypesvoid displayAllLines(ifstream &infile);void displayLastLine(ifstream &infile);int main(){// Arrays for file nameschar fileName1[SIZE];char fileName2[SIZE];// File stream objectsifstream jokeFile;ifstream punchlineFile;// Explain the program to the user.cout << "This program will print a joke "<< "and its punch line.\n\n";// Get the joke file name.cout << "Enter the name of...

  • Write a C++ program that uses a structure to store the following inventory information in a...

    Write a C++ program that uses a structure to store the following inventory information in a file: ⦁   Item description, Quantity on hand, Wholesale cost, Retail cost, and Date added to inventory. ⦁   Use a char array for item description and date. ⦁   The program should have a menu that allows the user to perform the following tasks: i.   Add a new record at the end of the file. ii.   Display any record in the file. iii.   Change any record...

  • What Master File Table holds? At least one entry for every file File Size Timestamps Permissions...

    What Master File Table holds? At least one entry for every file File Size Timestamps Permissions all of the above Each time that you run an application in your system, which contains information about the files loaded by the application is created by the Windows operating system. The information in the file is used for optimizing the loading time of the application the next time that you run it. which one would be correct .lnk file MFT Prefetch Windows Event...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT