0

Operating System & Unix

Description: MCQs based on fundamentals of Operating System & Unix
Number of Questions: 25
Created by:
Tags: UNIX OS Basic Fundamentals Hardware and Software Computer Basics Odd One Out Classification
Attempted 0/25 Correct 0 Score 0

The only state transition initiated by the user process itself is

  1. wakeup

  2. block

  3. dispatch

  4. sleep


Correct Option: B

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


Correct Option: A

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


Correct Option: B

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


Correct Option: B

Which of the following is a real-time system?

  1. Payroll processing

  2. Aircraft control

  3. Library

  4. Automobile system


Correct Option: B

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


Correct Option: B

Which of the following is a single user OS?

  1. MS DOS

  2. UNIX

  3. OS/2

  4. LISP


Correct Option: A

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


Correct Option: B

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


Correct Option: A

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


Correct Option: C

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


Correct Option: B

An attempt of reading a locked file is

  1. a deadlock

  2. premature termination

  3. system standby

  4. none of the above


Correct Option: D

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


Correct Option: A

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


Correct Option: B

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


Correct Option: A

The smallest addressable portion of a disk is called

  1. sector

  2. track

  3. record

  4. bit


Correct Option: A

Unix shell is

  1. a GUI interface

  2. a set of commands

  3. a command line interpreter

  4. a web browser


Correct Option: C

DMA stands for

  1. Direct Memory Access

  2. Direct Memory Accelerator

  3. Directional Memory Access

  4. Deemed Memory Accelerator


Correct Option: A

Semaphores are used to solve

  1. process synchronization

  2. race condition

  3. parallel execution

  4. none of the above


Correct Option: A

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


Correct Option: C

File pointer is

  1. a long integer

  2. a pointer data type

  3. a pointer to BOF

  4. a pointer to EOF


Correct Option: A

Which of the following calls never returns an error?

  1. Fork

  2. Getpid

  3. Open

  4. Ready


Correct Option: B

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


Correct Option: B

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


Correct Option: B

Which scheduling algorithm gives minimum average waiting time?

  1. FCFS

  2. SJF

  3. Round Robin

  4. Priority


Correct Option: B
- Hide questions