

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 system call uses file descriptor as an argument? |
A. | read |
B. | write |
C. | close |
D. | read, write, close |
Answer» E. | |
2. |
System calls and library functions are same. |
A. | True |
B. | False |
Answer» C. | |
3. |
For changing the time stamps, _____ system call is invoked. |
A. | atime |
B. | utime |
C. | mtime |
D. | ch |
Answer» C. mtime | |
4. |
Both the owner and group owner can be changed by ____ call. |
A. | chown |
B. | chgrp |
C. | chuser |
D. | ch |
Answer» B. chgrp | |
5. |
chmod and fchmod calls are used for changing file permissions. |
A. | True |
B. | False |
Answer» B. False | |
6. |
Which of the following is used with access call for checking the owner s permissions? |
A. | R_OK |
B. | W_OK |
C. | X_OK |
D. | R_OK, W_OK, X_OK |
Answer» E. | |
7. |
For checking a file access rights, ___ system call is used. |
A. | acc |
B. | access |
C. | axs |
D. | filert |
Answer» C. axs | |
8. |
Which of the following macro returns true if the file type is a directory? |
A. | S_ISREG |
B. | S_ISDIR |
C. | S_ISCHR |
D. | S_ISFIFO |
Answer» C. S_ISCHR | |
9. |
S_IFxxx macros are used for checking the file types. |
A. | True |
B. | False |
Answer» B. False | |
10. |
____ system call is used for renaming a file, directory or symbolic link. |
A. | renam |
B. | rename |
C. | ren |
D. | change |
Answer» C. ren | |