UNIX MCQ SET 6


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

 

  1. _news_time
  2. news.time
  3. .news.time
  4. .news_time

 

2) To read the stale news the option available is

 

  1. news –a
  2. Delete the file /usr/news
  3. Delete the file _news.time
  4. Delete the file .news_time

 

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

 

  1. /etc/profile
  2. /etc/motv
  3. .profile
  4. Autoexec.bat

 

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

 

  1. /usr/spool/mail/aa12
  2. /usr/aa12/mbox
  3. /spool/mail/aa12
  4. /usr/aa12/.mbox

 

5) .mailrc is the file

 

  1. Which stores the incoming mail
  2. Which is used to type the mail to be sent
  3. Which is invoked when the mail command is executed
  4. Which permits you to customize the vi environment

 

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

 

  1. underlying characters
  2. mark them as bold
  3. display them in reverse video
  4. none of the above

 

7) Which of the following assignments is illegal

 

  1. a=’ls’
  2. b=’ls –l’
  3. c=’1972’
  4. d=’who | grepaal’

 

8) Which of the following assignment is illegal

 

  1. a=’cat file’
  2. a=100 b=50
  3. age=25
  4. all the above

 

9) A null variable a can be created using

 

  1. a=
  2. a=’’
  3. a=””
  4. All the above

 

10) The shell metacharacter $# represents

 

  1. Total number of arguments supplied to the shell script
  2. Total number of files in the current directory
  3. Total number of users who have logged in
  4. Total number of processes running in the background

 

Correct Answers

 

  1. D

 

  1. A & D

 

  1. B

 

  1. A

 

  1. C

 

  1. B

 

  1. C

 

  1. C

 

  1. D

 

  1. A

Leave a comment