Explore topic-wise MCQs in Unix.

This section includes 12 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 contains 1026 bytes. How many bytes of disk space will it consume if size of a disk block is 1024 bytes?

A. 1026
B. 1024
C. 2048
D. 4096
Answer» D. 4096
2.

File attributes are of major concern as compared to directory attributes while performing operations on file system.

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

FILE_ATTRIBUTES_ARE_OF_MAJOR_CONCERN_AS_COMPARED_TO_DIRECTORY_ATTRIBUTES_WHILE_PERFORMING_OPERATIONS_ON_FILE_SYSTEM.?$

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

A_file_contains_1026_bytes._How_many_bytes_of_disk_space_will_it_consume_if_size_of_a_disk_block_is_1024_bytes?$

A. 1026
B. 1024
C. 2048
D. 4096
Answer» D. 4096
5.

Which option is used with ls command to list the directory attributes rather than its contents?

A. -b
B. -a
C. -l
D. -d
Answer» E.
6.

Soft linked files are provided with different inode number as the original one.

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

Hard linked files are provided with the same inode number as the original one.

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

In how many categories are links divided?

A. 1
B. 2
C. 4
D. 0
Answer» C. 4
9.

What are links referred to as in file attributes?

A. number of filenames of a single file that are maintained by the system
B. number of duplicates of a single file
C. number of copies of a single file
D. number of files present in a directory
Answer» B. number of duplicates of a single file
10.

Which one of the following is not an attribute displayed by ls command?

A. file permissions
B. file ownership
C. links
D. word count of file
Answer» E.
11.

Which command is used to list the attributes of a file?

A. cp
B. list
C. ls
D. attr
Answer» D. attr
12.

An attribute is a specification of an object that defines its property.

A. True
B. False
Answer» B. False