Explore topic-wise MCQs in Unix.

This section includes 17 Mcqs, each offering curated multiple-choice questions to sharpen your Unix knowledge and support exam preparation. Choose a topic below to get started.

1.

A file owner does not have a permission to edit the file but the group to which the file owner belong do have the permission to edit it. Can owner edit the file?

A. Yes
B. No
C. Cannot be defined
D. Error will be encountered
Answer» C. Cannot be defined
2.

If the file is write-protected and the directory has to write permission then we cannot delete the file.

A. True
B. False
Answer» C.
3.

The write permission for a directory determines that ____________

A. we can write to a directory file
B. we can read the directory file
C. we can execute the directory file
D. we can add or remove files to it
Answer» E.
4.

If a file is read protected, we can write to the file.

A. True
B. False
Answer» C.
5.

A file has permissions as rwx r– —. A user other than the owner cannot edit the file.

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

A file named abd.txt has the following set of permissions All the three operations i.e read, write and execute can be performed on the file by file owner, group owner and others.

A. True
B. FalseView Answer
Answer» B. FalseView Answer
7.

A_FILE_HAS_PERMISSIONS_AS_RWX_R‚ÄÖ√Ñ√∂‚ÀÖ√Ë‚ÀÖ¬®_‚ÄÖ√Ñ√∂‚ÀÖ√Ë‚ÀÖ√Ü._A_USER_OTHER_THAN_THE_OWNER_CANNOT_EDIT_THE_FILE.?$#

A. True
B. False
Answer» C.
8.

The write permission for a directory determines that ____________$

A. we can write to a directory file
B. we can read the directory file
C. we can execute the directory file
D. we can add or remove files to it
Answer» C. we can execute the directory file
9.

Which of the following is default permission set for directories?

A. rw-rw-rw-
B. rwxrwxrwx
C. r–r–r–
D. rw-rw-rwx
Answer» C. r‚Äö√Ñ√∂‚àö√ë‚àö¬®r‚Äö√Ñ√∂‚àö√ë‚àö¬®r‚Äö√Ñ√∂‚àö√ë‚àö¬®
10.

Which of the following is default permission set for ordinary files?

A. rw-rw-rw-
B. rwxrwxrwx
C. r–r–r–
D. rw-rw-rwx
Answer» C. r‚Äö√Ñ√∂‚àö√ë‚àö¬®r‚Äö√Ñ√∂‚àö√ë‚àö¬®r‚Äö√Ñ√∂‚àö√ë‚àö¬®
11.

What is execute permission?

A. permission to execute the file
B. permission to delete the file
C. permission to rename the file
D. permission to search or navigate through the directory
Answer» B. permission to delete the file
12.

What is group ownership?

A. group of users who can access the file
B. group of users who can create the file
C. group of users who can edit the file
D. group of users who can delete the file
Answer» B. group of users who can create the file
13.

When we create a file, we are the owner of a file.

A. True
B. False
Answer» B. False
14.

Which of the following symbol is used to indicate the absence of a permission of a file?

A. $
B. &
C. +
D. –
Answer» B. &
15.

Permissions of a file are represented by which of the following characters?

A. r,w,x
B. e,w,x
C. x,w,e
D. e,x,w
Answer» B. e,w,x
16.

How many types of permissions a file has in UNIX?

A. 1
B. 2
C. 3
D. 4
Answer» D. 4
17.

A file can be recognized as an ordinary file or directory by ____ symbol.

A. $
B. –
C. *
D. /
Answer» C. *