Tuesday, September 7, 2010

Objective Type Question Answers of Operating System

1. Which of the command is used to remove files ?
a. erase
b. rm
c. delete
d. dm

Ans: b

2. Which of the following command is used to count just the number of lines contained in a file ?
a. wc-1
b. wc-w
c.wc-c
d. wc-r

Ans: a

3. Which command is used to copy a file wb with the same name from the programs directory to the misc. directory ?
a. copy programs/wb misc/wb
b. cp programs/wb misc
c. copy a:programs/wb b:misc/wb
d. tar programs/wb misc/wb

Ans: b

4. The commonly used UNIX commands like date, Is, cat, etc. are stored in
a. /dev directory
b. /bin and /usr/bin directories
c. /unix directory
d. /tmp directory

Ans: b

5. Which of the following directories contain all the files created by a user, including his login directory ?
a. /tmp
b. /usr
c. /etc
d. /dev

Ans: b

6. Which command is used to copy the three files wb, colllect and mon into the misc directory, under the same, when you were currently in the programs directory ?
a. copy wb collect mon/misc
b. cp wb collect mon ../misc
c. copy wb ../misc collect ../misc mon ../misc
d. tar wb collect mon/misc

Ans: b

7. Which of the following command is used to display the directory attributes rather than its contents ?
a. 1s-1-d
b. Is-x
c. Is-1
d. is-F

Ans: a

8. Which command is used to remove a directory
a. rd
b. dldir
c. rmdir
d. rdir

Ans: c

9. Which command is used to list out all the hidden files along with the other files ?
a. Is-1
b. Is-F
c. Is-x
d Is-a

Ans: d

10. The file that contains a set of instructions which are performed when a user logs in, is
a) .exrc
b) .profile
c) autoexec.bat
d) .autoexec

Ans: b

No comments: