Answer:
The correct answer is option 4. all of the mentioned.
By using system calls, you can perform all of the mentioned operations:
1. Open the file: The `open()` system call is used to open a file, creating a file descriptor that allows subsequent operations on the file.
2. Read the file: The `read()` system call is used to read data from a file. It takes the file descriptor, buffer, and the number of bytes to read as parameters.
3. Write into the file: The `write()` system call is used to write data into a file. It takes the file descriptor, buffer containing the data to be written, and the number of bytes to write as parameters.
Therefore, all of the mentioned options can be accomplished using specific system calls.
The correct answer is option 4. all of the mentioned.
By using system calls, you can perform all of the mentioned operations:
1. Open the file: The `open()` system call is used to open a file, creating a file descriptor that allows subsequent operations on the file.
2. Read the file: The `read()` system call is used to read data from a file. It takes the file descriptor, buffer, and the number of bytes to read as parameters.
3. Write into the file: The `write()` system call is used to write data into a file. It takes the file descriptor, buffer containing the data to be written, and the number of bytes to write as parameters.
Therefore, all of the mentioned options can be accomplished using specific system calls.
You may be interested in:
Operating Systems Multiple Choice Questions And Answers (MCQs)