Operating System & Unix

MCQs based on fundamentals of Operating System & Unix

25 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

The only state transition initiated by the user process itself is

  1. wakeup
  2. block
  3. dispatch
  4. sleep
Question 2 Multiple Choice (Single Answer)

Page fault occurs when

  1. the page is not in main memory
  2. the page is in main memory
  3. the page is corrupted by application software
  4. we try to divide a number by zero
Question 3 Multiple Choice (Single Answer)

From which state will a process waiting for some I/O service in BLOCKED state start?

  1. Running state
  2. Ready state
  3. Terminated state
  4. Suspended state
Question 4 Multiple Choice (Single Answer)

Mutual exclusion problem occurs between

  1. two disjoint processes
  2. processes that share resources
  3. processes that don't use the same resources
  4. two processes in critical region
Question 5 Multiple Choice (Single Answer)

Which of the following is a real-time system?

  1. Payroll processing
  2. Aircraft control
  3. Library
  4. Automobile system
Question 6 Multiple Choice (Single Answer)

Overlay is

  1. a part of an operating system
  2. a single contiguous memory used for running long program by swapping
  3. overloading the system with many user files
  4. a single memory location
Question 7 Multiple Choice (Single Answer)

Which of the following is a single user OS?

  1. MS DOS
  2. UNIX
  3. OS/2
  4. LISP
Question 8 Multiple Choice (Single Answer)

The main function of shared memory is

  1. to use primary memory efficiently
  2. to do inter-process communication
  3. to do intra-process communication
  4. to control disk scheduling
Question 9 Multiple Choice (Single Answer)

The size of virtual memory depends on

  1. size of address bus
  2. size of main memory
  3. size of data bus
  4. none of the above
Question 10 Multiple Choice (Single Answer)

Necessary conditions for deadlock are

  1. non-preemption and circular wait
  2. mutual exclusion and partial allocation
  3. both 1 and 2
  4. none of above
Question 11 Multiple Choice (Single Answer)

Which of the following page replacement algorithms suffer(s) from Belady's Anomaly?

  1. LRU
  2. FIFO
  3. Optimal replacement
  4. Both 1 and 3
Question 12 Multiple Choice (Single Answer)

An attempt of reading a locked file is

  1. a deadlock
  2. premature termination
  3. system standby
  4. none of the above
Question 13 Multiple Choice (Single Answer)

Aging is

  1. increasing the priority of jobs to ensure termination in finite time
  2. keeping track of cache contents
  3. keeping track of page references
  4. keeping track of pages in main memory at a time
Question 14 Multiple Choice (Single Answer)

Shell command

  1. can be used to jump from infinite looping
  2. can be used to indicate comment
  3. provides a communication channel
  4. manages set of primitive functions
Question 15 Multiple Choice (Single Answer)

When a system makes system call, its mode changes from

  1. user to kernel
  2. kernel to user
  3. scheduled to unrestricted
  4. none of the above
Question 16 Multiple Choice (Single Answer)

The smallest addressable portion of a disk is called

  1. sector
  2. track
  3. record
  4. bit
Question 17 Multiple Choice (Single Answer)

Unix shell is

  1. a GUI interface
  2. a set of commands
  3. a command line interpreter
  4. a web browser
Question 18 Multiple Choice (Single Answer)

DMA stands for

  1. Direct Memory Access
  2. Direct Memory Accelerator
  3. Directional Memory Access
  4. Deemed Memory Accelerator
Question 19 Multiple Choice (Single Answer)

Semaphores are used to solve

  1. process synchronization
  2. race condition
  3. parallel execution
  4. none of the above
Question 20 Multiple Choice (Single Answer)

Dirty bit is used to show

  1. page with corrupted data
  2. wrong page in memory
  3. page modified after being loaded in cache memory
  4. page that is less frequently accessed
Question 21 Multiple Choice (Single Answer)

File pointer is

  1. a long integer
  2. a pointer data type
  3. a pointer to BOF
  4. a pointer to EOF
Question 22 Multiple Choice (Single Answer)

Which of the following calls never returns an error?

  1. Fork
  2. Getpid
  3. Open
  4. Ready
Question 23 Multiple Choice (Single Answer)

Concurrent processes are

  1. processes that don't overlap in time
  2. processes that overlap in time
  3. processes that are executed by CPU at the same time
  4. none of above
Question 24 Multiple Choice (Single Answer)

Disk scheduling decides

  1. which disk should be accessed next
  2. the order in which disk access requests must be served
  3. physical location of files on disk
  4. none of the above
Question 25 Multiple Choice (Single Answer)

Which scheduling algorithm gives minimum average waiting time?

  1. FCFS
  2. SJF
  3. Round Robin
  4. Priority