Unix OS - 1

Test your knowledge of Unix operating system fundamentals including file systems, process management, commands, system calls, and administration tasks.

25 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

UNIX was developed by

  1. Bell Labs
  2. Berkley Software Group
  3. California University
  4. American Defence Academy
Question 2 Multiple Choice (Single Answer)

Which of the following features of UNIX may be used for inter process communication?

  1. Signals
  2. Pipes
  3. Semaphore
  4. Message queues
Question 3 Multiple Choice (Single Answer)

The default permission bits of a file, when it is created for the first time, is controlled by

  1. chmod value
  2. fmask value
  3. umask value
  4. none of the above
Question 4 Multiple Choice (Single Answer)

The file that stores an integer as a sequence of characters is a

  1. text file
  2. data file
  3. binary file
  4. core
Question 5 Multiple Choice (Single Answer)

In which of the following directories init resides?

  1. root
  2. bin
  3. etc
  4. usr
Question 6 Multiple Choice (Single Answer)

The PID of kernel process is

  1. undefined
  2. 0
  3. 1
  4. 3
Question 7 Multiple Choice (Single Answer)

The first thing that is searched when a command references a file is its

  1. I - node
  2. Inode number
  3. Permission string
  4. None of the above
Question 8 Multiple Choice (Single Answer)

Which of the following calls never returns an error?

  1. getpid
  2. fork
  3. ioctl
  4. open
Question 9 Multiple Choice (Single Answer)

The technique that allows only one user to work with a file at a particular time is called

  1. semaphore
  2. critical region
  3. locking
  4. dedicated mode
Question 10 Multiple Choice (Single Answer)

Which of the following is used to write disk block images from memory to disk?

  1. clri
  2. sync
  3. mkfs
  4. stty
Question 11 Multiple Choice (Single Answer)

Which of the following processes has the PID 1?

  1. Kernel
  2. UNIX
  3. Init
  4. Shell
Question 12 Multiple Choice (Single Answer)

Unix was first installed in

  1. IBM - 360
  2. PDP/11
  3. PDP/7
  4. CRAY
Question 13 Multiple Choice (Single Answer)

A command which transcribes standard input to the standard output & also makes a copy of the same in file, is

  1. tee
  2. tr
  3. sort
  4. grep
Question 14 Multiple Choice (Single Answer)

Which of the following system calls transforms an executable binary file into a process?

  1. fork
  2. exec
  3. ioctl
  4. longjmp
Question 15 Multiple Choice (Single Answer)

The command that can be used to restrict incoming message to a user is

  1. mesg
  2. grep
  3. halt
  4. sleep
Question 16 Multiple Choice (Single Answer)

Which of the following system calls does not return control to the calling point on termination?

  1. fork
  2. exec
  3. ioctl
  4. longjmp
Question 17 Multiple Choice (Single Answer)

PID is used by the system to identify

  1. a process
  2. the file name
  3. the i-node
  4. all of the above
Question 18 Multiple Choice (Single Answer)

Which of the following commands is used for an automatic reminder service?

  1. write
  2. mesg
  3. calendar
  4. mail
Question 19 Multiple Choice (Single Answer)

In Bourne Shell, which file sets the UNIX environment for the user when he logs into his Home directory?

  1. exrc
  2. profile
  3. lastlogin
  4. mbox
Question 20 Multiple Choice (Single Answer)

The UNIX file system stores a data in physical blocks of

  1. 1024 bytes
  2. 2048 bytes
  3. 512 bytes
  4. 256 bytes
Question 21 Multiple Choice (Single Answer)

Which of the following commands is used to update 'access & modification times' of a file?

  1. grep
  2. wc
  3. touch
  4. cat
Question 22 Multiple Choice (Single Answer)

Which command is used to link files?

  1. lk
  2. ln
  3. cp
  4. tar
Question 23 Multiple Choice (Single Answer)

The seventh field of /etc/password is

  1. password
  2. login
  3. shell
  4. home
Question 24 Multiple Choice (Single Answer)

Which of the following is not a filter?

  1. cat
  2. grep
  3. wc
  4. sort
Question 25 Multiple Choice (Single Answer)

Which of the following files contains information related to password aging?

  1. shadow
  2. password
  3. profile
  4. all the the above