MCQOPTIONS
Saved Bookmarks
This section includes 10 Mcqs, each offering curated multiple-choice questions to sharpen your Unix knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
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 | |
| 2. |
open_system_call_returns_the_file_descriptor_as____$ |
| A. | int |
| B. | float |
| C. | char |
| D. | double |
| Answer» D. double | |
| 3. |
There are ___ modes of opening a file? |
| A. | 4 |
| B. | 3 |
| C. | 2 |
| D. | 1 |
| Answer» C. 2 | |
| 4. |
Which of the following system call is used for opening or creating a file? |
| A. | read |
| B. | write |
| C. | open |
| D. | close |
| Answer» D. close | |
| 5. |
For reading input, which of the following system call is used? |
| A. | write |
| B. | rd |
| C. | read |
| D. | change |
| Answer» D. change | |
| 6. |
The chmod command invokes the ____ system call. |
| A. | chmod |
| B. | ch |
| C. | read |
| D. | change |
| Answer» B. ch | |
| 7. |
All UNIX and LINUX systems have one thing in common which is ____ |
| A. | set of system calls |
| B. | set of commands |
| C. | set of instructions |
| D. | set of text editors |
| Answer» B. set of commands | |
| 8. |
In ____ mode, the kernel runs on behalf of the user. |
| A. | user |
| B. | kernel |
| C. | real |
| D. | all |
| Answer» C. real | |
| 9. |
When we execute a C program, CPU runs in ____ mode. |
| A. | user |
| B. | kernel |
| C. | supervisory |
| D. | system |
| Answer» B. kernel | |
| 10. |
A system call is a routine built into the kernel and performs a basic function. |
| A. | True |
| B. | False |
| Answer» B. False | |