a) True
b) False
2) The slowest in speed but the biggest size of storage devices is:
a) Registers
b) Cache
c) Tape
d) Hard disk
e) None of the above
f) CD-ROM
g) RAM
3) Which one of the following is a valid type of OS user interface, select one or more:
a) Command-Line (CLI)
b) Batch
c) Graphics User Interface (GUI)
d) None of the choices
4) Microsoft word is a system program
a) True
b) False
5) In implicit threading, the creation and management of threads are done by compilers and run-
time libraries rather than programmers
a) True
b) False
6) CPU Utilization means:
a) keep the cpu as busy as possible
b) Large number of processes waiting in the ready queue
c) None of the above
d) The CPU is allocated to the process with the highest priority
7) Using amdahl’s law, calculate the speedup gain of a system that has a 60 percent parallel
component when going from 1 core to four processing cores
a) 0
b) 2.5
c) 1
d) 1.428
e) 1.818
8) Which one of the following storage media has the least access time:
a) SSD
b) Cache
c) RAM
d) Register
e) Hard Disk
9) One of the following is not a user’s design goal of an operating system
a) Reliable
b) Easy to design
, c) Safe
d) Convenient to use
e) Easy to learn
f) Fast
10) The benefits of the Microkernel system structure are: choose all that apply
a) Easier to extend a microkernel
b) More reliable (less code is running in kernel mode)
c) More Secure
d) Easier to port the operating system to new architectures
11) An I/O-bound process: choose all that apply
a) Does less computations
b) None of the choices
c) Does many short CPU bursts
d) Spends more time doing I/O
12) To start a new process___ needs to be performed by a command interpreter or shell.
a) an exec system call
b) an exec system call followed by a fork system call
c) fork0
d) a fork system call followed by an exec system call
13) In DMA one interrupt is generated per byte, rather than one interrupt per block of bytes.
a) True
b) False
14) In emulation, the machine code is native to the hardware.
a) True
b) False
15) Accounting service of the operating system keeps track of how much money a user should pay
for the use of system resources.
a) True
b) false
16) Which one the following is responsible for CPU scheduling?
a) Kernel
b) Synchronous interrupt
c) I/O system
d) Asynchronous interrupt
17) One of the following is an advantage of multiprocessor architecture, select all correct answers
a) Increase security
b) Economy of scale
c) Increase reliability
d) None of the choices
e) Increase throughput
18) What does CLI stand for?
Command Line Interface
,19) Multiprocessor environment must provide _____ in hardware such that all CPUs have the most
recent value in their cache.
a) Buffering
b) Switching
c) Spooling
d) Cache coherency
20) Which one of the following storage media has the least access time:
a) SSD
b) RAM
c) Register
d) Cache
e) Hard disk
21) Security in operating system is: choose all that apply
a) None of the choices
b) Mechanism for controlling access of processes
c) Defense of the system against external threats
d) Defense of the system against internal threats
e) Safeguarding from overflow
22) A hybrid OS structure can have a kernel address space that is monolithic and modular for
dynamic loading of functionality
a) True
b) false
23) Infrastructure as a Service (IaaS)
a) One or more applications available via the internet (i.e., word processor)
b) None of the choices
c) All of the choices
d) Software stack ready for application use via the internet (i.e., a database server)
e) Servers or storage available over internet (i.e., storage available for backup use)
24) In asymmetric Multiprocessing, each processor performs a specific task.
a) True
b) False
25) One of the following is a system call parameter passing option:
a) Parameters stored in a block or table in memory
b) All of the choices
c) Parameters in registers
d) Parameters pushed onto the stack
26) Accounting service of the operating system keeps track of how much of each system resource
did a process use
a) True
b) False
27) Short-term scheduler (or CPU scheduler) – selects which process should be executed next from
one of the following queues:
a) Waiting queue
b) Ready queue
, c) Blocked queue
d) I/O queue
28) Thread-local storage (TLS) is the same as local variables in functions
a) True
b) False
29) Machine-language instructions that are atomic, can be interrupted
a) True
b) False
30) Consider the following set of processes, with length of CPU burst times given in milliseconds,
and processes arrival times
Gantt chart:
Which process is allocated the CPU between times 10-13?
a) None of the processes
b) P0
c) P1
d) P2
31) Given memory partitions of 10K,50K,20K,30K,and 60K (in order), if processes of 5K,35K,20K and
55K have arrived in order. The first-fit algorithms will place the process of 55K in:
a) The memory partition of 60K
b) There is no place to locate this process (the process must wait)
c) The memory partitions of 10K
d) The memory partition of 50K
32) Given memory partitions of 10K,50K,20K,30K,and 60K (in order), if processes of 5K,35K,20K and
55K have arrived in order. The Worst-fit algorithms will place the process of 55K in:
a) The memory partitions of 50K
b) There is no place to locate this process (the process must wait)
c) The memory partitions of 10K
d) The memory partitions of 30K
e) The memory partitions of 60K
, 33) Consider the following system snapshot at time to:
The need of process P2 at time T0 is:
a)
b)
c)
34) using Amdahl’s Law, calculate the speedup gain of a system that has an 80 percent parallel
component when going from single-core to 16-core processor.
4
35) which one of the following is an advantage of process cooperation/communication?
a) all of the other choices
b) convenience
c) information sharing
d) modularity
e) computation speed up
,36) If an I/O device’s storage buffer has a total size of 2Mbytes divided into blocks of data of 10 Kbytes
each and an interrupt to transfer a single byte from the device’s buffer to the main memory takes 1000
microseconds.
What is the total interrupt time needed to transfer 5 blocks of data using DMA?
a) 5 microseconds
b) 10240 microseconds
c) 5000 microseconds
d) 1000 microseconds
e) 1 microseconds
36) which one of the following is not a requirement of a Critical Selection Solution
a) progress
b) Mutual Exclusion
c) Bounded waiting
d) Security
37) the slowest in speed but the largest in size of storage devices is
a) none of the above
b) cache
c) Tape
d) Registers
e) CD-ROM
f) Hard Disk
g) RAM
42) Consider the following snapshot of a system:
, Answer the following questions using the banker’s algorithm:
a) No, only processes P0 and P2 will be able to get their max needs after that (unsafe state)
b) No, because process P1 needs more resources
c) No, only process P0 will be able yo get its max needs after that (unsafe state)
d) Yes, because the requested resources are available
e) Yes, there will still be a safe sequence after the request is granted
43) consider a logical address space of 28 bits with 4KB pages, mapped onto a physical memory of 16GB
RAM. How many bits are there in the physical address space?
Answer: 34
44) consider a logical address space of 28 bits with 4KB pages, mapped onto a physical memory of 16GB
RAM. How many bits are in the offset part (page size)
Answer:12
45) consider a logical address space of 28 bits with 4KB pages, mapped onto a physical memory of 16GB
RAM. How many bits in the logical address specify the page?
Answer:16
46) consider a logical address space of 28 bits with 4KB pages, mapped onto a physical memory of 16GB
RAM. How many bits are there in the physical address specify the frame
Answer: 22
47) what resources are used when a thread is created? How do they differ from those used when a
process id created?
Answer:
48) If an I/O device’s storage buffer has a total size of 2Mbytes divided into blocks of data of 10000
Bytes each and an interrupt to transfer a single byte from the device’s buffer to the main memory takes
2000 Microseconds.
What is the total interrupt time needed to transfer 4 blocks of data using DMA? In Microseconds
a) 8000 microseconds
b) 80 microseconds
c) 1000 microseconds
d) 2000 microseconds
e) 8 microseconds
49) One of the following is not a part of a process’s memory structure
a) stack
b) process ID
c) Text section