Font size
WorksheetsOperating Systems Quiz
Total questions: 72
Worksheet time: 39mins
An operating system is a program that operates between users and _____
Computer hardware
Computer software
The application programs
CPU
What is the register that contains the memory address of the next instruction to be fetched?
Stack pointer
Program counter
Program status word
None of the mentioned
To get the default run level, which function is read by init?
/etc/inittab
/etc/kernel
/etc/boot
/etc/init
The main function of the command interpreter is _____
To provide the interface between the API and application program
To get an execute the next user-specified command
To handle the files in operating system
None of the mentioned
What is not the major objective of operating systems?
To act as a File server to client machines requiring such service
To act as a resource manager for multiple tasks running on the CPU, the memory and disk resources
To provide a programming interface to the user
To act as an uniform abstract machine on top of a variety of different hardware platforms
What are basic memory address spaces?
Logical and virtual address space
Logical and physical address space
Virtual and physical address space
Virtual, logical and physical address space
What is the base register?
The base address of the instruction.
The smallest unit of RAM.
The smallest unit of ROM.
The base address of storage devices.
Most computers have two modes of operation, these are _____
User mode and CPU mode
Kernel mode and User mode
Kernel mode and CPU mode
MMU mode and CPU mode
A process is selected from the _____ queue by the _____ scheduler, to be executed.
ready, short term
blocked, short term
wait, long term
ready, long term
How many types of schedulers mainly used? Name?
2 types: Large - term scheduler, Small - term scheduler.
3 types: Long - term scheduler, Medium - term scheduler, Short -term scheduler.
2 types: Long - term scheduler, Short -term scheduler.
3 types: Large - term scheduler, Medium - term scheduler, Small - term scheduler.
An entry of the Process table is called _____
Process control block
Process check block
Process management block
All of the mentioned
Which of the following cannot be shared among different threads of a process?
File handles
Stack
Process code
Process data
A _____ is a portion of a process that can run independently
Thread
Program
Miniprocess
Subprocess
Which of the following process state transitions is correct, when the external event for which a process was waiting happens?
Running -> ready
Blocked (waiting) -> ready
Running -> Blocked (waiting)
Ready -> running
The new process consists of a copy of the _____ of the original process. This mechanism allows the parent process to communicate easily with its child process.
Address space
Process state
Process number
Process identifiers
Using Priority Scheduling algorithm, find the average waiting time for the following set of processes given with their priorities (0 is the highest priority) in the order: Process : Burst Time : Priority respectively. P1 : 10 : 3 P2 : 1 : 1 P3 : 2 : 4 P4 : 1 : 5 P5 : 5 : 2
8 milliseconds
7.75 milliseconds
3 milliseconds
8.2 milliseconds
An address space of 8 pages, each page is 1K in size and mapped into 32 page frames in memory. How many bits must be used to represent the logical address of this address space?
32 bit
8 bit
13 bit
24 bit
What is the best description of memory swapping?
A computer technology that enables an operating system to extent the storage space when needed.
A computer technology that enables an operating system to provide more memory to a running application or process than is available in physical RAM.
A computer technology that enables an operating system to provide more storage space while installing that operating system.
A computer technology that enables an operating system to provide more virtual RAM space while installing that operating system.
What are two ways to keep track of memory usages?
Bit Maps and Linked Lists.
Physical and Virtual Lists.
Virtual and Linked Lists.
Physical and Linked Lists.
What are Dynamic Storage-Allocation strategies?
First-fit; Next fit; Best-fit.
First-fit; Next fit; Best-fit; Worst-fit.
First-fit; Second-fit; Best-fit; Worst-fit.
First-fit; Second-fit; Third-fit; Last-fit.
What is the virtual memory?
A part of hard disk.
A part of RAM.
A part of USB device.
A part of ROM BIOS.
What methods can virtual memory be implemented via?
Paging and fragmentation.
Paging and segmentation.
Fragmentation and defragmentation.
Fragmentation and segmentation.
File type can be represented by _____
file extension
file name
file identifier
None of the mentioned
What is the mounting of file system?
crating of a filesystem
attaching portion of the file system into a directory structure
deleting a filesystem
removing the portion of the file system into a directory structure
Mapping of file is managed by _____
file metadata
page table
virtual memory
file system
Mapping of network file system protocol to local file system is done by _____
network file system
local file system
volume manager
remote mirror
_____ are special files with listings of filenames and their attributes.
Directories
Programs
Data files
Databases
Which part of a HDD disk is used to boot the computer?
_____ are special files with listings of filenames and their attributes.
Directories
Programs
Data files
Databases
Which part of a HDD disk is used to boot the computer?
Super block
MBR
Root block
Free block
Which class of I/O devices that HDD belong to?
Block devices
Character devices
Stream devices
None of the mentioned
Which class of I/O devices that keyboard belong to?
Block devices
Character devices
Stream devices
None of the mentioned
In the hierarchical structure for managing I/O, which layer is closest to the hardware?
Interrupt handlers
Device drivers
Device-independent OS software
None of the mentioned
Consider a disk queue with requests for I/O to blocks on cylinders: 98 183 37 122 14 124 65 67. Considering SSTF (shortest seek time first) scheduling, the total number of head movements is, if the disk head is initially at 53 is?
224
245
240
236
What is a trap/exception?
software generated interrupt caused by an error
hardware generated interrupt caused by an error
user generated interrupt caused by an error
None of the mentioned
Why is the Software interrupt required by the processor?
Return from subroutine.
Obtain system services, which need execution of privileged instruction.
Test the interrupt system of the processor.
Implement co-routines.
If all page frames are initially empty, and a process is allocated 3 page frames in real memory and references its pages in the order 1 2 3 2 4 5 2 3 2 4 1 and the page replacement is FIFO, the total number of page faults caused by the process will be _____
8
11
9
10
Deadlock prevention is a set of methods _____
to ensure that all of the necessary conditions do not hold
to ensure that at least one of the necessary conditions cannot hold
to decide if the requested resources for a process have to be given or not
to avoid deadlock
Which important things do the Inter-Process Communication (IPC) involve?
Race condition, Critical Region, and Mutual Exclusion
Race condition, Critical Region, and Dedicated device
Domain Problem, Race Condition, and Mutual Exclusion
Scheduling, Critical Region, and Dedicated device
Which strategy is used in the Banker's algorithm for dealing with deadlocks?
Deadlock ignorance
Deadlock avoidance
Deadlock detection
Deadlock prevention
An example of preemptable resources is _____
Memory
CD-ROM device
DVD device
None of the mentioned
The permanent blocking of a set of processes that compete for system resources is called _____
Starvation
Deadlock
Prioritization
None of the mentioned
What is the virtual memory?
A part of hard disk.
A part of RAM.
A part of USB device
A part of ROM BIOS.
What method can virtual memory be implemented via?
Paging and fragmentation.
Paging and segmentation.
Fragmentation and defragmentation.
Fragmentation and segmentation.
File type can be represented by _____
file extension
file name
file identifier
None of the mentioned
What is the mounting of file system?
crating of a filesystem
attaching portion of the file system into a directory structure
deleting a filesystem
removing the portion of the file system into a directory structure
Mapping of file is managed by _____
file metadata
page table
virtual memory
file system
Mapping of network file system protocol to local file system is done by _____
network file system
local file system
volume manager
remote mirror
Which important things do the Inter-Process Communication (IPC) involve?
Race condition, Critical Region, and Mutual Exclusion
Race condition, Critical Region, and Dedicated device
Domain Problem, Race Condition, and Mutual Exclusion
Scheduling, Critical Region, and Dedicated device
Which strategy is used in the Banker's algorithm for dealing with deadlocks?
Deadlock ignorance
Deadlock avoidance
Deadlock detection
Deadlock prevention
An example of preemptable resources is _____
Memory
CD-ROM device
DVD device
None of the mentioned
The permanent blocking of a set of processes that compete for system resources is called _____
Starvation
Deadlock
Prioritization
None of the mentioned
An operating system is a program that operates between users and _____
Computer hardware
Computer software
The application programs
CPU
What is the register that contains the memory address of the next instruction to be fetched?
Stack pointer
Program counter
Program status word
None of the mentioned
To get the default run level, which function is read by init?
/etc/inittab
/etc/kernel
/etc/boot
/etc/init
The main function of the command interpreter is _____
To provide the interface between the API and application program
To get an execute the next user-specified command
To handle the files in operating system
None of the mentioned
What is not the major objective of operating systems?
To act as a File server to client machines requiring such service
To act as a resource manager for multiple tasks running on the CPU, the memory and disk resources
To provide a programming interface to the user
To act as an uniform abstract machine on top of a variety of different hardware platforms
What are basic memory address spaces?
Logical and virtual address space
Logical and physical address space
Virtual and physical address space
Virtual, logical and physical address space.
What is the base register?
The base address of the instruction.
The smallest unit of RAM.
The smallest unit of ROM.
The base address of storage devices.
Most computers have two modes of operation, these are _____
User mode and CPU mode
Kernel mode and User mode.
Kernel mode and CPU mode
MMU mode and CPU mode
A process is selected from the _____ queue by the _____ scheduler, to be executed.
ready, short term
blocked, short term
wait, long term
ready, long term
How many types of schedulers mainly used? Name?
2 types: Large - term scheduler, Small - term scheduler.
3 types: Long - term scheduler, Medium - term scheduler, Short -term scheduler.
2 types: Long - term scheduler, Short -term scheduler.
3 types: Large - term scheduler, Medium - term scheduler, Small - term scheduler.
An entry of the Process table is called _____
Process control block
Process check block
Process management block
All of the mentioned
Which of the following cannot be shared among different threads of a process?
File handles
Stack
Process code
Process data
A _____ is a portion of a process that can run independently
Thread
Program
Miniprocess
Subprocess
Which of the following process state transitions is correct, when the external event for which a process was waiting happens?
Running -> ready
Blocked (waiting) -> ready
Running -> Blocked (waiting)
Ready -> running
The new process consists of a copy of the _____ of the original process. This mechanism allows the parent process to communicate easily with its child process.
Address space
Process state
Process number
Process identifiers
Using Priority Scheduling algorithm, find the average waiting time for the following set of processes given with their priorities (0 is the highest priority) in the order: Process : Burst Time : Priority respectively. P1 : 10 : 3 P2 : 1 : 1 P3 : 2 : 4 P4 : 1 : 5 P5 : 5 : 2
8 milliseconds
7.75 milliseconds
3 milliseconds
8.2 milliseconds
An address space of 8 pages, each page is 1K in size and mapped into 32 page frames in memory. How many bits must be used to represent the logical address of this address space?
32 bit
8 bit
13 bit
24 bit
What is the best description of memory swapping?
A computer technology that enables an operating system to extent the storage space when needed.
A computer technology that enables an operating system to provide more memory to a running application or process than is available in physical RAM.
A computer technology that enables an operating system to provide more storage space while installing that operating system.
A computer technology that enables an operating system to provide more virtual RAM space while installing that operating system.
What are two ways to keep track of memory usages?
Bit Maps and Linked Lists.
Physical and Virtual Lists.
Virtual and Linked Lists.
Physical and Linked Lists.
What are Dynamic Storage-Allocation strategy?
First-fit; Next fit; Best-fit.
First-fit; Next fit; Best-fit; Worst-fit.
First-fit; Second-fit; Best-fit; Worst-fit.
First-fit; Second-fit; Third-fit; Last-fit.
