Explore topic-wise MCQs in Unix.

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

1.

We should avoid filenames starting with a – (hyphen).

A. True
B. False
Answer» B. False
2.

UNIX imposes no rule for framing filename extensions.

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

The root directory is represented by ___

A. \
B. /
C. *
D. $
Answer» C. *
4.

UNIX treats everything as a file.

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

When we log in, the UNIX places us in a directory, called ______ directory

A. home
B. main
C. parent
D. current
Answer» B. main
6.

UNIX_TREATS_EVERYTHING_AS_A_FILE.?$

A. True
B. False
Answer» B. False
7.

UNIX imposes no rule for framing filename extensions.$

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

The_root_directory_is_represented_by____$

A. \
B. /
C. *
D. $
Answer» C. *
9.

We should avoid filenames starting with a – (hyphen).$

A. True
B. False
Answer» B. False
10.

Filenames in UNIX are not case-sensitive.

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

_____ and _____ cannot be used in a filename.

A. /, NULL
B. $,^
C. ., %
D. NULL, $
Answer» B. $,^
12.

When we log in, the UNIX places us in a directory, called ______ director?

A. home
B. main
C. parent
D. current
Answer» B. main
13.

Device files are used by the kernel for operating the device.

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

Each entry of directory file has component(s) namely _____

A. filename
B. inode number
C. filename and inode number
D. file size
Answer» D. file size
15.

What is a directory file?

A. a directory containing data
B. a directory containing details of the files and subdirectories it contains
C. a directory contains files
D. a directory containing data and files
Answer» C. a directory contains files
16.

The most common file type is ___

A. ordinary file
B. directory file
C. device file
D. ordinary file and directory file
Answer» B. directory file
17.

In UNIX, the file name and file size are stored in the file itself.

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

In how many broad categories, files are divided into UNIX?

A. 2
B. 4
C. 5
D. 3
Answer» E.
19.

A file is a container for storing information.

A. True
B. False
Answer» B. False