Nothing Special   »   [go: up one dir, main page]

OS Objective Multiple Choice

Download as pdf or txt
Download as pdf or txt
You are on page 1of 4

1. What is an operating system?

a) interface between the hardware and application programs


b) collection of programs that manages hardware resources
c) system service provider to the application programs
d) all of the mentioned

2. What is the main function of the command interpreter?


a) to provide the interface between the API and application program
b) to handle the files in the operating system
c) to get and execute the next user-specified command
d) none of the mentioned

3. In Operating Systems, which of the following is/are CPU scheduling algorithms?


a) Priority
b) Round Robin
c) Shortest Job First
d) All of the mentioned

4. To access the services of the operating system, the interface is provided by the ___________
a) Library
b) System calls
c) Assembly instructions
d) API

5. CPU scheduling is the basis of ___________


a) multiprogramming operating systems
b) larger memory sized systems
c) multiprocessor systems
d) none of the mentioned

6. Which one of the following is not true?


a) kernel remains in the memory during the entire computer session
b) kernel is made of various modules which can not be loaded in running operating system
c) kernel is the first part of the operating system to load into memory during booting
d) kernel is the program that constitutes the central core of the operating system

7. Which one of the following errors will be handle by the operating system?
a) lack of paper in printer
b) connection failure in the network
c) power failure
d) all of the mentioned

8. Where is the operating system placed in the memory?


a) either low or high memory (depending on the location of interrupt vector)
b) in the low memory
c) in the high memory
d) none of the mentioned

9. If a process fails, most operating system write the error information to a ______
a) new file
b) another running process
c) log file
d) none of the mentioned

10. Which one of the following is not a real time operating system?
a) RTLinux
b) Palm OS
c) QNX
d) VxWorks

11. What does OS X has?


a) monolithic kernel with modules
b) microkernel
c) monolithic kernel
d) hybrid kernel

12. In operating system, each process has its own __________


a) open files
b) pending alarms, signals, and signal handlers
c) address space and global variables
d) all of the mentioned

13. In a timeshare operating system, when the time slot assigned to a process is completed, the process
switches from the current state to?
a) Suspended state
b) Terminated state
c) Ready state
d) Blocked state

14. Cascading termination refers to the termination of all child processes if the parent process terminates
______
a) Normally or abnormally
b) Abnormally
c) Normally
d) None of the mentioned

15. When a process is in a “Blocked” state waiting for some I/O service. When the service is completed, it
goes to the __________
a) Terminated state
b) Suspended state
c) Running state
d) Ready state

16. Transient operating system code is a code that ____________


a) stays in the memory always
b) never enters the memory space
c) comes and goes as needed
d) is not easily accessible

17. The portion of the process scheduler in an operating system that dispatches processes is concerned
with ____________
a) assigning ready processes to waiting queue
b) assigning running processes to blocked queue
c) assigning ready processes to CPU
d) all of the mentioned

18. The FCFS algorithm is particularly troublesome for ____________


a) operating systems
b) multiprocessor systems
c) time sharing systems
d) multiprogramming systems

19. For an effective operating system, when to check for deadlock?


a) every time a resource request is made at fixed time intervals
b) at fixed time intervals
c) every time a resource request is made
d) none of the mentioned

20. A deadlock avoidance algorithm dynamically examines the __________ to ensure that a circular wait
condition can never exist.
a) operating system
b) resources
c) system storage state
d) resource allocation state

1 Which of the following is a preemptive scheduling algorithm?


a) First-Come, First-Served (FCFS) b) Shortest Job Next (SJN)
c) Round Robin (RR) d) Longest Job First (LJF)

2 Which of the following is the advantage of layered approach of Operating System?


a) Abstraction b) Debugging
c) Modularity d) All of these

3 What is the purpose of a scheduler in an operating system?


a) Allocate resources to processes
b) Manage memory

c) Handle input/output operations


d) Allot CPU time to processes

4 Which of the following is an example of a real-time operating system?


a) Windows b) Linux
c) macOS d) VxWorks

5 Which of the following scheduling algorithm do not suffer from starvation?


a) First Come First Serve (FCFS) b) Shortest Job First (SJF)
c) Shortest Remaining Time First (SRTF) d) Priority Scheduling

6 What is the time difference between the first response and arrival time called?
a) Burst Time (BT) b) Turn Around Time (TAT)
c) Response Time (RT) d) Waiting Time (WT)

7 What is the purpose of a context switch in an operating system?


a) To save and restore the execution context of a process b) To allocate memory to a process

c) To manage file I/O operations


d) To enforce security policies

8 Which of the following page replacement algorithms suffers from the Belady’s Anomaly?

a) First-In, First-Out (FIFO) b) Longest Remaining Time First (LRTF)


c) Round Robin Scheduling d) Highest Response Ratio Next (HRRN)

9 In the Banker’s algorithm for resource allocation, deadlock avoidance is achieved by:
a) Allocating resources based on the highest priority b) Using a global resource allocation strategy
c) Implementing the Wait-Die algorithm
d) Ensuring that the system is always in a safe state

10 In the context of CPU scheduling, what is the turnaround time of a process?

a) The time taken by a process to complete execution


b) The time taken by a process to enter the ready state
c) The time taken by a process to execute on the CPU d) The time taken by a process to leave the ready
state

You might also like