wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

(OS) 1. Desktop Computers - Architecture & OS Review

Total questions: 30

Worksheet time: 17mins

Name
Class
Date
1.
The CPU fetches the next instruction from memory according to the value of the _______
a)
program counter
b)
status register
c)
instruction register
d)
program status word
2.
An operating system …
a)
acts as an intermediary between the users of a computer and the hardware
b)
acts as a control program for the various I/O devices and user programs
c)
acts as a resource allocator to arbitrate resource allocation to programs
d)
all of the mentioned
3.
User programs use _______ to access the functions of the operating system
a)
system calls
b)
hardware interrupts
c)
library functions
d)
assembly instructions
4.
What events can generate an access to the operating system?
a)
A hardware generated interrupt from an I/O device
b)
A software generated interrupt caused by an error
c)
A software generated interrupt caused by a request from a user program
d)
All of the mentioned
5.
The hardware allows _______ instructions to be executed only in kernel mode
a)
load/store
b)
privileged
c)
sensitive
d)
assembly
6.
What support does the hardware offer to access the operating system?
a)
It differentiates among various modes of operation
b)
It loads the code of the corresponding interrupt handler and executes it when interrupts happen
c)
It transitions automatically from user to kernel mode when interrupts and traps happen
d)
All of the mentioned
7.
Which operation is performed by an interrupt handler?
a)
Saving the current state of the system
b)
Loading the code of the interrupt service routine and executing it
c)
Once done handling, bringing back the system to the original state it was before the interrupt occurred
d)
All of the mentioned
8.
Cache memory speeds up memory access because …
a)
it exploits temporal locality
b)
it exploits spatial locality
c)
it exploits temporal and spatial locality
d)
it contains the same data stored in the main memory
9.

An address generated by a process during its execution is a _______

a)

physical address

b)

absolute address

c)

logical address

d)

none of the mentioned

10.
Run time mapping from logical to physical addresses is done by the _______
a)
memory management unit
b)
CPU
c)
memory DIMMs
d)
none of the mentioned
11.
The operating system maintains a page table for _______
a)
each process
b)
each thread
c)
each instruction
d)
each address
12.
The page table contains …
a)
the physical address in the physical memory of each logical address
b)
the frame in the physical memory of each page
c)
the page offset of each logical address
d)
none of the mentioned
13.
Every address generated by the CPU is divided into _______
a)
frame bit & page number
b)
page offset & frame bit
c)
page number & page offset
d)
frame offset & page offset
14.
A process stack does not contain _______
a)
function parameters
b)
local variables
c)
return addresses
d)
function results
15.
The generation of object files including machine code with relative offsets is called _______
a)
compilation
b)
linking
c)
loading
d)
none of the mentioned
16.
Each process has its own _______
a)
address space
b)
open files
c)
context
d)
all of the mentioned
17.
The processes that are residing in main memory and are ready and waiting to execute are kept on a list called _______
a)
wait queue
b)
ready queue
c)
execution queue
d)
process queue
18.
Which scheduling algorithm allocates the CPU first to the process that requests the CPU first?
a)
First-Come, First-Served scheduling
b)
Shortest Job First scheduling
c)
Priority scheduling
d)
None of the mentioned
19.
A time quantum is allocated to each process in _______
a)
Shortest Job First scheduling
b)
Round Robin scheduling
c)
Priority scheduling
d)
Multilevel Queue scheduling
20.
What is the main difference of secondary storage with respect to main memory?
a)
It has faster access time
b)
It has lower capacity
c)
It has higher cost per byte
d)
It provides nonvolatile storage
21.
Which of the following is not secondary storage?
a)
Magnetic disks
b)
Magnetic tapes
c)
RAM
d)
SSD disks
22.
The file is a logical storage unit that abstracts the physical properties of _______ and is mapped directly to their _______
a)
secondary storage drives / sectors
b)
secondary storage drives / blocks
c)
main memory / blocks
d)
none of the mentioned
23.
For user programs to access the files content, they need to …
a)
run a separate file management program
b)
use special hardware instructions (in/out)
c)
use open/read/write/close system calls
d)
none of the mentioned
24.
The operating system keeps a system-wide table containing information about all the open files called _______
a)
per-process file table
b)
open-file table
c)
inode table
d)
directory table
25.
A directory maps _______ into their file control blocks
a)
file names
b)
mount points
c)
file descriptors
d)
none of the mentioned
26.
Path names can be …
a)
absolute & relative
b)
local & global
c)
global & relative
d)
relative & local
27.
File Allocation Table (FAT) is a _______ scheme for disk blocks allocation
a)
contiguous
b)
linked
c)
indexed (with linked index blocks)
d)
indexed (with multilevel index blocks)
28.
In an indexed allocation scheme ...
a)
each file must occupy a set of contiguous blocks on the disk
b)
each file is a linked list of disk blocks
c)
all the pointers to scattered blocks are placed together in one location
d)
none of the mentioned
29.
If there are multiple operating systems, the decision to load a particular one is done by the _______
a)
boot loader
b)
superblock
c)
process control block
d)
file control block
30.
The VFS (virtual file system) provides uniform and transparent access to …
a)
local and remote files of a given file system type
b)
local files of a given file system type
c)
local files of different file system types
d)
local and remote files of different file system types