Explore topic-wise MCQs in Unix.

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.

For removing a link, ____ is used.

A. link
B. symlink
C. unlink
D. delink
Answer» D. delink
2.

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
3.

A super user can use ___ call for creating a directory.

A. mknod
B. mkdr
C. rmdir
D. chdir
Answer» B. mkdr
4.

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.
5.

Directories can also be opened, read and written in the same way as regular files.

A. True
B. False
Answer» B. False
6.

Which of the following system calls performs the action of cd command?

A. chdir
B. fchdir
C. mkdir
D. chdir and fchdir
Answer» E.
7.

The vnode table is also called _____

A. inode table
B. file table
C. vtable
D. vttable
Answer» B. file table
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