Unix MCQ Questions with Answers #6

1) If the user has read a news item he cannot read it again because of creation of the file

a. _news_time
b. news.time
c. .news.time
d. .news_time

2) To read the stale news the option available is

a. news –a
b. Delete the file /usr/news
c. Delete the file _news.time
d. Delete the file .news_time

3) The message of the day is stored in a file called

a. /etc/profile
b. /etc/motv
c. .profile
d. Autoexec.bat

4) The incoming mail of user with the login name aa12 is stored in the file

a. /usr/spool/mail/aa12
b. /usr/aa12/mbox
c. /spool/mail/aa12
d. /usr/aa12/.mbox

5) .mailrc is the file

a. Which stores the incoming mail
b. Which is used to type the mail to be sent
c. Which is invoked when the mail command is executed
d. Which permits you to customize the vi environment

6) The escape sequence \033[4m is used to

a. underlying characters
b. mark them as bold
c. display them in reverse video
d. none of the above

7) Which of the following assignments is illegal

a. a=’ls’
b. b=’ls –l’
c. c=’1972’
d. d=’who | grepaal’

8) Which of the following assignment is illegal

a. a=’cat file’
b. a=100 b=50
c. age=25
d. all the above

9) A null variable a can be created using

a. a=
b. a=’’
c. a=””
d. All the above

10) The shell metacharacter $# represents

a. Total number of arguments supplied to the shell script
b. Total number of files in the current directory
c. Total number of users who have logged in
d. Total number of processes running in the background

Correct Answers

 1. D

 2. A & D

 3. B

 4. A

 5. C

 6. B

 7. C

 8. C

 9. D

10. A

See Also

Have a Unix Problem
Do you have a UNIX Question?

Unix Books :-
UNIX Programming, Certification, System Administration, Performance Tuning Reference Books

Return to : - Unix System Administration Hints and Tips

(c) www.gotothings.com All material on this site is Copyright.
Every effort is made to ensure the content integrity.  Information used on this site is at your own risk.
All product names are trademarks of their respective companies.
The site www.gotothings.com is in no way affiliated with or endorsed by any company listed at this site.
Any unauthorised copying or mirroring is prohibited.