UNIX Programming

Covers UNIX system calls, commands, file systems, process management, and memory management fundamentals.

25 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

Which of the following is a component that on one side manages and controls the hardware and on the other manages the applications?

  1. Operating system
  2. Process
  3. Kernel
  4. Bootstrapping
Question 2 Multiple Choice (Single Answer)

____________ command is used for creating a File system.

  1. ext2
  2. hsfs
  3. bfs
  4. mkfs
Question 3 Multiple Choice (Single Answer)

Which of the following determines the order in which file systems should be checked?

  1. dumpfreq
  2. passno
  3. mount-point
  4. none of these
Question 4 Multiple Choice (Single Answer)

Which of the following runs as process 0 on SVR5 system and can be used to set priority for real processes so that they can be given fast access to the kernel?

  1. sched
  2. swapper
  3. page daemon
  4. init
Question 5 Multiple Choice (Single Answer)

___________ command lists the value of the environment variable called VAR_NAME.

  1. env
  2. env $VAR_NAME
  3. setenv VAR_NAME new_value
  4. unsetenv VAR_NAME
Question 6 Multiple Choice (Single Answer)

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

  1. TTY field
  2. COMD field
  3. SZ field
  4. PRI field
Question 7 Multiple Choice (Single Answer)

Which of the following process attributes is an unique number that defines the process within the kernel?

  1. PID
  2. PPID
  3. EUID
  4. EGID
Question 8 Multiple Choice (Single Answer)

______________ attribute is an User ID number of the user that owns this process.

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

A shared memory segment can be allocated, using ____________ system call.

  1. msgrcv()
  2. semget()
  3. shmget()
  4. none of these
Question 10 Multiple Choice (Single Answer)

Which state of the process means the process is waiting to become available?

  1. S state
  2. X state
  3. R state
  4. None of these
Question 11 Multiple Choice (Single Answer)

Which of the following is the basic way to create a new process?

  1. fork() system call
  2. pipe() system call
  3. msgrcv() system call
  4. semget() system call
Question 12 Multiple Choice (Single Answer)

Which system call causes the current process to be split into two processes - a parent and a child?

  1. pipe() system call
  2. fork() system call
  3. msgget() system call
  4. msgrcv() system call
Question 13 Multiple Choice (Single Answer)

The _______ control character is used to signal the end of input.

  1. eof
  2. kill
  3. eraser
  4. none of these
Question 14 Multiple Choice (Single Answer)

Which of the following UNIX commands is a powerful tool that gives complete online access to the UNIX manual?

  1. Man
  2. Exit
  3. Cat
  4. None of these
Question 15 Multiple Choice (Single Answer)

Which of the following control characters allows you to back up over typing mistakes?

  1. Eraser
  2. Kill
  3. Eof
  4. Stop and start
Question 16 Multiple Choice (Single Answer)

___________ command takes any character from standard input, and then echoes them to standard output.

  1. Exit
  2. Cat
  3. Man
  4. None of these
Question 17 Multiple Choice (Single Answer)

Which of the following UNIX file system types contains text, data or program information?

  1. Ordinary files
  2. Directories
  3. Devices
  4. Link
Question 18 Multiple Choice (Single Answer)

_________ are containers or folders that hold files and other directories.

  1. Link
  2. Directories
  3. Ordinary files
  4. None of these
Question 19 Multiple Choice (Single Answer)

Which of the following directories can be referred to by the . (full stop) character and refers to actual location in the file store hierarchy?

  1. Home directory
  2. Parent directory
  3. Current directory
  4. None of these
Question 20 Multiple Choice (Single Answer)

____________link to a file is indistinguishable from the file itself.

  1. Hard
  2. Soft
  3. Directory
  4. None of these
Question 21 Multiple Choice (Single Answer)

UNIX provides each user his own directory known as _____________. Within this, the users can store their own files and create directories.

  1. current directory
  2. home directory
  3. parent directory
  4. none of these
Question 22 Multiple Choice (Single Answer)

Which device transfers data on a byte-by-byte basis?

  1. Block-oriented
  2. Character-oriented
  3. Soft link
  4. None of these
Question 23 Multiple Choice (Single Answer)

______________ is the process of starting up a computer from a halted or powered-down condition.

  1. Hardware management
  2. Process management
  3. Bootstrapping
  4. None of the above
Question 24 Multiple Choice (Single Answer)

In UNIX system, which of the following contains the barebones UNIX-the root directory and all the tools and utilities that are just adequate to keep the system booted in single-user mode?

  1. Root file system
  2. Swap file system
  3. Bootstrapping
  4. None of the above
Question 25 Multiple Choice (Single Answer)

The ___________ daemon runs as process 0 on BSD systems. It manages the physical memory by moving the process from physical memory to swap space when more physical memory is needed.

  1. bfs
  2. init
  3. swapper
  4. none of the above