UNIX Programming

Covers UNIX shells, processes, system calls, file system, commands, permissions, and regular expressions.

15 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

Which of the following is not a UNIX shell?

  1. csh
  2. bourne
  3. korn shell
  4. pdksh
  5. MAIL
Question 2 Multiple Choice (Single Answer)

Which of the following attributes in the process is the group ID of the user that owns the process?

  1. PPID
  2. EUID
  3. GID
  4. EGID
  5. UID
Question 3 Multiple Choice (Single Answer)

Which of the following is not a system call?

  1. Fork()
  2. msgrvc()
  3. msgget()
  4. msgsnd()
  5. All of the above
Question 4 Multiple Choice (Single Answer)

Which of the following fields of process refers to the total number of pages in the process?

  1. PID field
  2. SZ field
  3. TTY field
  4. P flag
  5. None of these
Question 5 Multiple Choice (Single Answer)

In Unix directory structure, the top - level directory is designated by

  1. root
  2. /lib
  3. /bin
  4. /etc
  5. /dev
Question 6 Multiple Choice (Single Answer)

Which of the following is a type of file in UNIX file system?

  1. Ordinary
  2. Directories
  3. Device
  4. Link
  5. All of the above
Question 7 Multiple Choice (Single Answer)

Which of the following operators shows that the preceding item will be matched one or more times?

  1. +
  2. *
  3. ?
  4. {N}
  5. {N,}
Question 8 Multiple Choice (Single Answer)

Which of the following UNIX commands can be used to find a file?

  1. grep
  2. find
  3. egrep
  4. cut
  5. sort
Question 9 Multiple Choice (Single Answer)

Which command is used to get information about all the processes?

  1. mv
  2. ls
  3. ps
  4. pwd
  5. find
Question 10 Multiple Choice (Single Answer)

Which special character is used to run a process in the background?

  1. &
  2. ?
  3. *
  4. |
  5. ->
Question 11 Multiple Choice (Single Answer)

Which of the following permissions in UNIX is used to modify the contents of a file?

  1. read
  2. write
  3. execute
  4. find
  5. ordinary
Question 12 Multiple Choice (Single Answer)

Which of the following printer control commands checks the status of the specified printer queue?

  1. Ipr
  2. Ipq
  3. Iprm
  4. Iynx
  5. pwd
Question 13 Multiple Choice (Single Answer)

______________ operator means that the preceding item is matched N or more number of times.

  1. {N}
  2. {N,}
  3. *
  4. ?
  5. None of these
Question 14 Multiple Choice (Single Answer)

___________ contains essential low - level system utilities.

  1. /lib
  2. root
  3. /bin
  4. /etc
  5. None of these
Question 15 Multiple Choice (Single Answer)

In which of the following permissions, a user can use the filename as a UNIX command?

  1. read
  2. msgget()
  3. msgsnd()
  4. execute
  5. write