wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

ETEC Exam Review - Operating Systems

Total questions: 84

Worksheet time: 42mins

Name
Class
Date
1.

When CPU is executing the system call, the system is in _______ kernel mode user mode both kernel and user mode neither kernel nor user mode

a)

kernel mode

b)

user mode

c)

both kernel and user mode

d)

neither kernel nor user mode

2.

What is a characteristic of a privileged state in an operating system? Limited access to system resources Full access to system resources Restricted execution of privileged instructions Equal access as non-privileged states

a)

Limited access to system resources

b)

Full access to system resources

c)

Restricted execution of privileged instructions

d)

Equal access as non-privileged states

3.

Which of the following statements is TRUE about non-privileged states? Non-privileged states have unrestricted access to system resources. Non-privileged states can execute privileged instructions. Non-privileged states operate with limited access to certain resources. Non-privileged states have higher security privileges.

a)

Non-privileged states have unrestricted access to system resources.

b)

Non-privileged states can execute privileged instructions.

c)

Non-privileged states operate with limited access to certain resources.

d)

Non-privileged states have higher security privileges.

4.

What is the purpose of having privileged and non-privileged states in an operating system? To simplify user interactions To improve system performance To enhance security and control access to critical resources To ensure backward compatibility

a)

To simplify user interactions

b)

To improve system performance

c)

To enhance security and control access to critical resources

d)

To ensure backward compatibility

5.

Which term is commonly used to describe a switch from non-privileged to privileged mode in a processor? Context switch Priority inversion System call Interrupt

a)

Context switch

b)

Priority inversion

c)

System call

d)

Interrupt

6.

In a multi-user operating system, why is it important to have privileged and non-privileged states? To increase system complexity To allow users full control over the system To prevent users from interfering with each other and the system To provide additional features to non-privileged users

a)

To increase system complexity

b)

To allow users full control over the system

c)

To prevent users from interfering with each other and the system

d)

To provide additional features to non-privileged users

7.

Which mode does the CPU operate in when executing user applications? Non-privileged mode Kernel mode Supervisor mode Protected mode

a)

Non-privileged mode

b)

Kernel mode

c)

Supervisor mode

d)

Protected mode

8.

What is a common method for a user-level program to request services from the operating system in a non-privileged state? System call Interrupt Exception I/O operation

a)

System call

b)

Interrupt

c)

Exception

d)

I/O operation

9.

Which of the following is an advantage of having privileged states in an operating system? Increased user flexibility Simplified hardware design Enhanced system security Improved graphical user interface

a)

Increased user flexibility

b)

Simplified hardware design

c)

Enhanced system security

d)

Improved graphical user interface

10.

Which component of the operating system is responsible for handling privileged instructions? Scheduler Kernel Device driver File system

a)

Scheduler

b)

Kernel

c)

Device driver

d)

File system

11.

A context switch occurs _____ when the CPU switches from one process to another when the process terminates what the PCB is created when process is in ready queue

a)

when the CPU switches from one process to another

b)

when the process terminates

c)

what the PCB is created

d)

when process is in ready queue

12.

Which of the following is TRUE on process creation? Parent and children share all resources Children share subset of parent's resources Parent and child share no resources All of the above

a)

Parent and children share all resources

b)

Children share subset of parent's resources

c)

Parent and child share no resources

d)

All of the above

13.

Which of the following will be terminated first by Android? Visible process Empty process Foreground process Background process

a)

Visible process

b)

Empty process

c)

Foreground process

d)

Background process

14.

To ensure that a process can access only those addresses in its address space, we can use_____. Cache Backing Store Fragmentation Base and Limit registers

a)

Cache

b)

Backing Store

c)

Fragmentation

d)

Base and Limit registers

15.

System call is _____ An Application Programming Interface (API) A user interface A process to boot the system A programming interface to the services provided by the OS

a)

An Application Programming Interface (API)

b)

A user interface

c)

A process to boot the system

d)

A programming interface to the services provided by the OS

16.

What is a process in the context of operating systems? A program in execution A folder containing system files A collection of device drivers A hardware component

a)

A program in execution

b)

A folder containing system files

c)

A collection of device drivers

d)

A hardware component

17.

What is the primary purpose of process management in an operating system? To organize system files To allocate system resources To optimize disk access To enhance network security

a)

To organize system files

b)

To allocate system resources

c)

To optimize disk access

d)

To enhance network security

18.

In a multiprogramming environment, what is the term for the act of switching between different processes to ensure continuous execution? Process termination Context switching Memory allocation File synchronization

a)

Process termination

b)

Context switching

c)

Memory allocation

d)

File synchronization

19.

What is a critical section in the context of process synchronization? A part of the program that requires exclusive access to shared resources A section of memory reserved for the operating system A step in the boot process of the operating system A part of the processor dedicated to system tasks

a)

A part of the program that requires exclusive access to shared resources

b)

A section of memory reserved for the operating system

c)

A step in the boot process of the operating system

d)

A part of the processor dedicated to system tasks

20.

What is the purpose of a process control block (PCB) in process management? To store the program code To manage disk space To track the state of a process To allocate main memory

a)

To store the program code

b)

To manage disk space

c)

To track the state of a process

d)

To allocate main memory

21.

Which of the following is FALSE about one-to-one multithreading model? More concurrency than many-to-one Each user-level thread maps to kernel thread Creating a user-level thread creates a kernel thread Each kernel thread generates a system call

a)

More concurrency than many-to-one

b)

Each user-level thread maps to kernel thread

c)

Creating a user-level thread creates a kernel thread

d)

Each kernel thread generates a system call

22.

Which of the following is TRUE about Thread pools? A method for the programmer to create threads explicitly A number of threads in a pool where they await for work #pragma omp parallel directive should be used A system call to create threads

a)

A method for the programmer to create threads explicitly

b)

A number of threads in a pool where they await for work

c)

#pragma omp parallel directive should be used

d)

A system call to create threads

23.

What is a thread in the context of operating systems? A folder containing system files A lightweight process A device driver A hardware component

a)

A folder containing system files

b)

A lightweight process

c)

A device driver

d)

A hardware component

24.

What is the primary advantage of using threads in a multithreading environment? Increased security Improved disk access Enhanced concurrency Simplified programming

a)

Increased security

b)

Improved disk access

c)

Enhanced concurrency

d)

Simplified programming

25.

What is a race condition in the context of multithreading? A situation where two threads collaborate successfully A condition for starting a new thread A situation where multiple threads access shared data concurrently, leading to unexpected results A condition for terminating a thread

a)

A situation where two threads collaborate successfully

b)

A condition for starting a new thread

c)

A situation where multiple threads access shared data concurrently, leading to unexpected results

d)

A condition for terminating a thread

26.

What is the difference between a process and a thread? A process is a lightweight version of a thread A thread is a lightweight version of a process Processes and threads are synonymous Threads are used only in single-threaded applications

a)

A process is a lightweight version of a thread

b)

A thread is a lightweight version of a process

c)

Processes and threads are synonymous

d)

Threads are used only in single-threaded applications

27.

In the context of multithreading, what is thread synchronization used for? To terminate threads To schedule threads To avoid race conditions and ensure data consistency To increase thread priority

a)

To terminate threads

b)

To schedule threads

c)

To avoid race conditions and ensure data consistency

d)

To increase thread priority

28.

What is the purpose of a mutex in multithreading? To terminate threads To synchronize thread execution To allocate memory for threads To manage thread priorities

a)

To terminate threads

b)

To synchronize thread execution

c)

To allocate memory for threads

d)

To manage thread priorities

29.

What is a deadlock in the context of multithreading? A situation where two threads collaborate successfully A condition for starting a new thread A situation where two or more threads are unable to proceed because each is waiting for the other to release a resource A condition for terminating a thread

a)

A situation where two threads collaborate successfully

b)

A condition for starting a new thread

c)

A situation where two or more threads are unable to proceed because each is waiting for the other to release a resource

d)

A condition for terminating a thread

30.

What is the advantage of parallelism in multithreading? Improved security Increased efficiency and faster execution Simplified programming Reduced memory usage

a)

Improved security

b)

Increased efficiency and faster execution

c)

Simplified programming

d)

Reduced memory usage

31.

In process scheduling, the aim is to ___ increase the response time maintain the response time decrease the response time It has nothing to do with response time

a)

increase the response time

b)

maintain the response time

c)

decrease the response time

d)

It has nothing to do with response time

32.

Scheduling algorithms can be evaluated according to the following criteria _____ CPU utilization Throughput Turnaround time All of the above

a)

CPU utilization

b)

Throughput

c)

Turnaround time

d)

All of the above

33.

What is process scheduling in the context of operating systems? Allocating system resources to processes Determining the order in which processes will execute Managing disk space for processes Controlling access to shared data

a)

Allocating system resources to processes

b)

Determining the order in which processes will execute

c)

Managing disk space for processes

d)

Controlling access to shared data

34.

What is meant by preemptive scheduling in operating systems? Processes voluntarily yield the CPU Processes cannot be interrupted once they start executing The operating system can forcibly interrupt a currently running process Processes share the CPU without interruption

a)

Processes voluntarily yield the CPU

b)

Processes cannot be interrupted once they start executing

c)

The operating system can forcibly interrupt a currently running process

d)

Processes share the CPU without interruption

35.

What is the time quantum in the Round Robin (RR) scheduling algorithm? The total time taken by a process to complete The time a process is allowed to run before being preempted The time a process is waiting in the ready queue The time a process spends in the blocked state

a)

The total time taken by a process to complete

b)

The time a process is allowed to run before being preempted

c)

The time a process is waiting in the ready queue

d)

The time a process spends in the blocked state

36.

Which among the following scheduling algorithms is most likely to produce the minimum average waiting time and turnaround time? First-Come-First-Serve (FCFS) Least Recently Used (LRU) Priority Scheduling Shortest Remaining Time First (SRTF)

a)

First-Come-First-Serve (FCFS)

b)

Least Recently Used (LRU)

c)

Priority Scheduling

d)

Shortest Remaining Time First (SRTF)

37.

What is the primary disadvantage of the Priority Scheduling algorithm? High turnaround time for short processes Starvation of low-priority processes Poor CPU utilization Complexity in implementation

a)

High turnaround time for short processes

b)

Starvation of low-priority processes

c)

Poor CPU utilization

d)

Complexity in implementation

38.

What is the primary goal of scheduling algorithms in operating systems? Maximizing CPU utilization Minimizing process waiting time Balancing system resources Enhancing I/O operations

a)

Maximizing CPU utilization

b)

Minimizing process waiting time

c)

Balancing system resources

d)

Enhancing I/O operations

39.

How does the First-Come-First-Serve (FCFS) scheduling algorithm prioritize processes? Based on process priority levels Based on the shortest burst time Based on arrival order Based on process execution time

a)

Based on process priority levels

b)

Based on the shortest burst time

c)

Based on arrival order

d)

Based on process execution time

40.

What is the purpose of the Aging mechanism in scheduling algorithms? To increase the priority of older processes To prevent priority inversion To decrease the waiting time of short processes To improve CPU efficiency

a)

To increase the priority of older processes

b)

To prevent priority inversion

c)

To decrease the waiting time of short processes

d)

To improve CPU efficiency

41.

The mapping from virtual to physical addresses is done by a hardware device called ____ Central processing unit Nonvolatile memory Device controller Memory management unit

a)

Central processing unit

b)

Nonvolatile memory

c)

Device controller

d)

Memory management unit

42.

Which is TRUE about virtual memory? The whole program needs to be in memory for execution More I/O needed to swap process Program is constrained by limits of physical memory Logical address space can be larger than physical address space

a)

The whole program needs to be in memory for execution

b)

More I/O needed to swap process

c)

Program is constrained by limits of physical memory

d)

Logical address space can be larger than physical address space

43.

Which of the following is TRUE about Device Controller?

a)

Connection between two devices

b)

Connection for slow devices

c)

Contains processor, microcode, private memory, bus controller, etc

d)

I/O Instruction

44.

Which of the following is FALSE about I/O Interrupts?

a)

Interrupt is the same as polling

b)

Interrupt-request line triggered by I/O device

c)

Interrupt-request line is checked by processor after each instruction

d)

Interrupt vector dispatches interrupt to correct handler

45.

What is the primary goal of I/O management in an operating system?

a)

Maximizing CPU utilization

b)

Minimizing process waiting time

c)

Efficiently managing input and output devices

d)

Balancing memory usage

46.

What is a buffer in the context of I/O management?

a)

A storage area for data temporarily held during I/O operations

b)

A device for reading data from secondary storage

c)

A register in the CPU

d)

A unit of data stored in cache memory

47.

What is the role of Direct Memory Access (DMA) in I/O management?

a)

Translating virtual addresses to physical addresses

b)

Managing communication between the CPU and I/O devices

c)

Allowing I/O devices to transfer data directly to or from memory without CPU intervention

d)

Controlling the flow of data within the CPU

48.

In I/O management, what is polling used for?

a)

To determine the order of process execution

b)

To manage I/O devices asynchronously

c)

To reduce process waiting time

d)

To continuously check the status of I/O devices

49.

What is the purpose of error handling in I/O management?

a)

To allocate memory for I/O operations

b)

To detect and recover from errors during I/O operations

c)

To determine the order of I/O device access

d)

To manage communication between the CPU and I/O devices

50.

What is the significance of the I/O controller in the context of I/O management?

a)

To manage the cache hierarchy

b)

To control the flow of data within the CPU

c)

To interface with I/O devices and initiate data transfers

d)

To allocate CPU time to I/O operations

51.

In this file access method, the information in the file is processed in order, one record after the other

a)

sequential access

b)

logical access

c)

relative access

d)

direct access

52.

What is mounting?

a)

Is a way to partition the device into one or more groups of blocks or pages

b)

Is a disk scheduling algorithm

c)

Is making the file system available for use by the system and its users

d)

Is the disk bandwidth

53.

The following is true on file.

a)

A physical storage unit

b)

A unit of data with a user-defined name and structure

c)

A collection of directories

d)

A buffer in secondary storage

54.

A file with extensions; .obj or .o is an example of file type ____

a)

object

b)

executable

c)

source code

d)

image

55.

The most common directory structure is:

a)

Tree-Structured Directory

b)

Two-Level Directory

c)

Single-Level Directory

d)

Circular Directory

56.

Which of the following is the highest layer of a layered file system?

a)

File organization module

b)

Logical file system

c)

I/O control

d)

Basic file system

57.

The disadvantage of link-based disk allocation method is __:

a)

It is effective for sequential-access files.

b)

It requires space for the pointers.

c)

It supports random-access file.

d)

it requires compaction.

58.

What is the primary purpose of a file system in an operating system?

a)

Efficiently managing input and output devices

b)

Balancing memory usage

c)

Organizing and providing access to files and directories

d)

Controlling the flow of data within the CPU

59.

What is the role of UNIX inode in a file system?

a)

Storing file names and their locations

b)

Managing communication between the CPU and I/O devices

c)

Storing metadata information about a file

d)

Allowing direct access to file data

60.

What is the purpose of a file allocation table (FAT) in a file system?

a)

To store metadata information about files

b)

To manage I/O operations asynchronously

c)

To allocate physical memory to files

d)

To keep track of the allocation status of disk blocks used by files

61.

What is virtualization in the context of operating systems?

a)

Creating virtual copies of physical devices

b)

Simulating user interfaces for applications

c)

Managing input and output devices

d)

Optimizing CPU utilization

62.

What is the role of a hypervisor in a virtualized environment?

a)

Allocating memory for virtual machines

b)

Managing communication between the CPU and I/O devices

c)

Creating and managing virtual machines on a physical host

d)

Controlling the flow of data within the CPU

63.

In hardware virtualization, what is the purpose of the Virtual Machine Monitor (VMM)?

a)

To manage cache hierarchy

b)

To translate virtual addresses to physical addresses

c)

To control access to files

d)

To provide an interface for managing virtual machines

64.

What is paravirtualization in virtualization technology?

a)

A technique to create fully isolated virtual machines

b)

A method where the guest operating system is modified to be aware of the virtualized environment

c)

A process of allocating memory to virtual machines

d)

A method of managing I/O devices in a virtualized environment

65.

What is a virtual machine snapshot in the context of virtualization?

a)

A physical copy of a virtual machine

b)

A point-in-time image of a virtual machine's state

c)

A software tool for creating virtual devices

d)

A module for managing I/O operations

66.

What is the primary advantage of using virtualization in data centers?

a)

Minimizing CPU utilization

b)

Reducing the need for storage

c)

Increasing the number of virtual machines per physical server

d)

Simplifying I/O operations

67.

What is live migration in virtualization technology?

a)

Moving a virtual machine from one physical host to another without downtime

b)

Translating virtual addresses to physical addresses

c)

Allocating CPU time to virtual machines

d)

Creating a new virtual machine instance

68.

What is Nested Virtualization in the context of hypervisors?

a)

Running multiple virtual machines on the same physical host

b)

Installing a hypervisor within a virtual machine

c)

Creating a virtual network for communication between virtual machines

d)

Allocating memory to virtual machines

69.

What is the purpose of the Integration Services (or Tools) in virtualization environments?

a)

To create virtual networks

b)

To enhance communication between the host and virtual machines

c)

To allocate CPU time to virtual machines

d)

To manage I/O operations

70.

_____ is a technology that allows us to abstract the hardware of a single computer into several different execution environments

a)

Virtualization

b)

Emulation

c)

Simulation

d)

Imitation

71.

What is the purpose of the principle of Least Privilege in security design for operating systems?

a)

Granting maximum privileges to all users

b)

Restricting users and processes to the minimum level of access necessary for their tasks

c)

Providing equal access to all system resources

d)

Allowing users to define their own access permissions

72.

What is the purpose of process isolation in security design?

a)

Allowing processes to share memory space

b)

Preventing unauthorized access to sensitive information

c)

Enabling processes to communicate seamlessly

d)

Allowing processes to execute with maximum privileges

73.

How does access control contribute to security in operating systems?

a)

By maximizing user privileges

b)

By allowing unrestricted access to system resources

c)

By regulating and restricting user access to files and services

d)

By granting all users equal access permissions

74.

What is the purpose of resource encapsulation in the context of security design?

a)

Allowing processes to share resources without restrictions

b)

Hiding the implementation details of system resources from users and processes

c)

Granting processes access to the entire system resource pool

d)

Providing equal access to all system resources

75.

What is an event in the context of operating systems?

a)

A process termination notification

b)

An interrupt generated by hardware or software

c)

A file creation request

d)

A user login event

76.

What is the purpose of an event handler in event management?

a)

To generate events

b)

To respond to and process events

c)

To schedule events

d)

To prioritize events

77.

Which of the following is not a type of event in an operating system?

a)

Interrupt

b)

System call

c)

Exception

d)

Semaphore

78.

What is a callback function in the context of event handling?

a)

A function that calls other functions

b)

A function registered to handle a specific event

c)

A function that handles system calls

d)

A function for memory allocation

79.

Which mechanism is used to prioritize events in event management?

a)

Event queue

b)

Event handler

c)

Semaphore

d)

Mutex

80.

What is the purpose of an event dispatcher in event management?

a)

To generate events

b)

To register events

c)

To dispatch events to their respective handlers

d)

To handle exceptions

81.

What is the primary purpose of an event in an operating system?

a)

To execute a process

b)

To trigger an interrupt

c)

To notify the system of an occurrence

d)

To allocate system resources

82.

Which component is responsible for managing the order in which events are processed in an event-driven system?

a)

Event handler

b)

Event queue

c)

Callback function

d)

Event dispatcher

83.

In the context of event management, what is an event handler?

a)

A device driver

b)

A program that generates events

c)

A function that responds to specific events

d)

An operating system service

84.

What is the purpose of an event-driven programming paradigm in operating systems?

a)

To reduce system boot time

b)

To simplify the user interface

c)

To enhance responsiveness and flexibility

d)

To improve file system performance