Take as many assements as you can to improve your validate your skill rating
Total Questions: 20
1. Which command is used for removing an empty directory?
Correct Answer is : rmdir
2. Multiple directories can be removed using single rmdir command.
Correct Answer is : TRUE
3. For creating or removing directories, the user must be positioned above the directory or in the parent directory of the directory, on which the operation is to perform.
Correct Answer is : TRUE
4. If rmdir dir001 fails, what could be the reason(s)?
Correct Answer is : dir001 doesn’t exist, dir001 is not empty and permissions of dir001 doesn’t allow to remove it
5. pwd and echo $HOME will display the same output.
Correct Answer is : FALSE
6. Which library function is used for printing error messages?
Correct Answer is : strerror
7. perror also uses error number to print the error messages.
Correct Answer is : FALSE
8. What is the significance of errno 13?
Correct Answer is : no such file and directory
9. What is the symbolic constant for errno 2?
Correct Answer is : ENDENT
10. Which of the following is not a valid symbolic constant?
Correct Answer is : EIOR
11. How many data structures does the kernel maintain in memory that contain information about an open file?
Correct Answer is : 3
12. The file descriptor table contains all file descriptors for a process.
Correct Answer is : TRUE
13. The file table contains _________
Correct Answer is : mode of opening, status flags, offset printer and reference count
14. The vnode table is also called _____
Correct Answer is : inode table
15. Which of the following system calls performs the action of cd command?
Correct Answer is : chdir and fchdir
16. Directories can also be opened, read and written in the same way as regular files.
Correct Answer is : TRUE
17. For creating and removing directories, which of the following system calls are used?
Correct Answer is : mkdir and rmdir
18. A super user can use ___ call for creating a directory.
Correct Answer is : mknod
19. For creating a hard and symbolic link, which system calls are used?