OS MCQs Chapter Wise

1. In what directory the $ cp file_01 . copies the file named file_01?
(A). parent
(B). current
(C). root
(D). user
(E). None of these
Multiple Choice Question Answer: b
2. The example of relative pathname is cd /bin/user/directory/abc.
(A). True
(B). False
(C). Patially True
Multiple Choice Question Answer: b
3. Pathname is the sequence of symbols and directories that indicate the location of the file.
(A). False
(B). True
(C). Patially True
Multiple Choice Question Answer: b
4. The absolute pathname is pathname relative to______
(A). The parent directory
(B). The parent and current directory
(C). The root (/)
(D). The current directory
(E). None of these
Multiple Choice Question Answer: c
5. What is the output of the given bellow command?
$ cp abd/ .user_06
(A). undefined behaviour
(B). It copies the .user_06 file into the parent directory of directory named abd
(C). It copies the .user_06 file into the current directory
(D). erroneous output
(E). None of these
Multiple Choice Question Answer: c
6. what is the symbol which is used to separate ( . . )to move two level up in the file hierarchy system using the cd command once?
(A). ?
b ) /
(C). *
(D). $
(E). None of these
Multiple Choice Question Answer: b
7. The relative pathname is a pathname relative to________
(A). The parent directory
(B). The root (/)
(C). The current directory
(D). The parent and current directory
(E). None of these
Multiple Choice Question Answer: d
8. The example of absolute pathname is output of $HOME.
(A). True
(B). False
(C). Patially True
Multiple Choice Question Answer: a
9. Which cryptic symbols are used in the relative pathname?
(A). ( . ) and ( . . )
(B). ( . . )
(C). $
(D). ( . )
(E). None of these
Multiple Choice Question Answer: a
10. In the file hierarchy, $ cd . . is used to move what to level up?
(A). two
(B). zero
(C). three
(D). one
(E). None of these
Multiple Choice Question Answer: d

Add a Comment