MCQOPTIONS
Saved Bookmarks
This section includes 3 Mcqs, each offering curated multiple-choice questions to sharpen your Unix knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
open system call returns the file descriptor as ___ |
| A. | int |
| B. | float |
| C. | char |
| D. | double |
| Answer» D. double | |
| 2. |
Which of the following mode is used for opening a file in both reading and writing? |
| A. | O_RDONLY |
| B. | O_WRONLY |
| C. | O_RDWR |
| D. | O_WDR |
| Answer» D. O_WDR | |
| 3. |
There are ___ modes of opening a file. |
| A. | 4 |
| B. | 3 |
| C. | 2 |
| D. | 1 |
| Answer» C. 2 | |