

MCQOPTIONS
Saved Bookmarks
This section includes 15 Mcqs, each offering curated multiple-choice questions to sharpen your Unix knowledge and support exam preparation. Choose a topic below to get started.
1. |
THE_VNODE_TABLE_IS_ALSO_CALLED______?$ |
A. | inode table |
B. | file table |
C. | vtable |
D. | vttable |
Answer» B. file table | |
2. |
Directories can also be opened, read and written in the same way as regular files.$ |
A. | True |
B. | False |
Answer» B. False | |
3. |
Which_of_the_following_system_calls_performs_the_action_of_cd_command?$ |
A. | chdir |
B. | fchdir |
C. | mkdir |
D. | chdir and fchdir |
Answer» E. | |
4. |
For removing a link, ____ is used. |
A. | link |
B. | symlink |
C. | unlink |
D. | delink |
Answer» D. delink | |
5. |
For creating a hard and symbolic link, which system calls are used? |
A. | link, unlink |
B. | link, symlink |
C. | unlink, ulink |
D. | hlink, slink |
Answer» C. unlink, ulink | |
6. |
A super user can use ___ call for creating a directory. |
A. | mknod |
B. | mkdr |
C. | rmdir |
D. | chdir |
Answer» B. mkdr | |
7. |
For_creating_and_removing_directories,_which_of_the_following_system_calls_are_used? |
A. | mkdir |
B. | rmdir |
C. | chdir |
D. | mkdir and rmdir |
Answer» E. | |
8. |
The file table contains ________? |
A. | mode of opening |
B. | status flags |
C. | offset pointer, reference count |
D. | mode of opening, status flags, offset printer and reference count |
Answer» E. | |
9. |
The file descriptor table contains all file descriptors for a process. |
A. | True |
B. | False |
Answer» B. False | |
10. |
How many data structures does the kernel maintain in memory that contain information about an open file? |
A. | 3 |
B. | 2 |
C. | 5 |
D. | 1 |
Answer» B. 2 | |
11. |
Which of the following is not a valid symbolic constant? |
A. | EPERM |
B. | ENDENT |
C. | EIOR |
D. | EEXIST |
Answer» D. EEXIST | |
12. |
What is the symbolic constant for errno 2? |
A. | EPERM |
B. | ENDENT |
C. | EIO |
D. | EEXIST |
Answer» C. EIO | |
13. |
What is the significance of errno 13? |
A. | not a super user |
B. | no such file and directory |
C. | permission denied |
D. | no space left on device |
Answer» C. permission denied | |
14. |
perror also uses error number to print the error messages. |
A. | True |
B. | False |
Answer» C. | |
15. |
Which library function is used for printing error messages? |
A. | strerror |
B. | stderror |
C. | strer |
D. | ptrerror |
Answer» B. stderror | |