Osg 202
Osg 202
incorrect? *
____ is the partitioning of a single server, each of which can support a different
operating *
Multiprocessing
Multithreading
Shared processing
Virtualization
Consider a computer system that has cache memory, main memory (RAM) and
disk, and OS uses virtual memory. It takes 1 nsec to access a word from the cache,
10 nsec to access a word from RAM, and 10 msec to access a word from the disk.
If the cache hit rate is 95% and main memory hit rate is 99%, what is average time
to access a word? *
a. 1.445 nsec
b. 5,001.445 nsec
c. 5,000.495 nsec
d. 5,000.95 nsec
B
As one proceeds down the memory hierarchy (from inboard memory to offline
storage), which of the following conditions is correct? *
Decreasing capacity
Consider a computer system that has cache memory, main memory (RAM) and
disk, and OS uses virtual memory. It takes 2 nsec to access a byte from the cache,
20 nsec to access a byte from RAM, and 10 msec to access a block of 1000 bytes
from the disk. If a book has 1000 pages, each with 50 lines of 80 characters each,
How long it will take to electronically scan the text for the case of the master copy
being in each of the level as one proceeds down the memory hierarchy (from
inboard memory to offline storage)? *
1 msec, 10 msec, 5 sec
1 msec, 10 msec, 10 sec
2 msec, 20 msec, 10 sec
4 msec, 40 msec, 20 sec
D
D. Many layers
Which of special register in the CPU points to the top of the current stack in the
memory? *
PC
PSW
IR
SP
A CPU may have multiple execution units, so that can carry out multiple
instructions in the same time is called: *
0/1
None of the other choices
Multicore
Pipeline
Superscalar
Consider a computer system that has cache memory, main memory (RAM) and
disk, and OS uses virtual memory. It takes 2 nsec to access a word from the cache,
20 nsec to access a word from RAM, and 10 msec to access a word from the disk.
If the cache hit rate is 95% and main memory hit rate is 99%, what is average time
to access a word? *
5,000.99 nsec
5,002.89 nsec
2.89 nsec
5,001.9 nsec
B
Information that must be saved prior to the processor transferring control to the
interrupt handler routine includes: *
0/1
PSW
PSW and PC
Personal computers
Network servers
Workstations
MP3 player
Busy waiting
Interrupt
List of memory location, that contains the executable program, the program's data,
and its stack is called: *
0/1
set of resources
address memory
address space
D
Which is not an example of a resource that is commonly space-multiplexed? *
0/1
Video RAM
Main memory
CPU
Hard drive
1/1
1/1
1/1
CPU
Graphics accelerator
Main memory
Network interface
1/1
In user space
Which of the main bus in the IBM PC computer that can run at 66 MHz and
transfer 8 bytes at a time? *
1/1
1/1
Unprogrammable
Volatile
The major operating system services provide mechanisms for secure and efficient
are: *
1/1
File manipulation
As one proceeds down the memory hierarchy (from inboard memory to offline
storage), which of the following conditions is correct? *
1/1
Increasing capacity
1/1
Exokernels need only keep track of which virtual machine assigned which resource
D
The language of the CPU is known as its *
1/1
Instruction set
Register set
Which of special register contains the condition code bits, the CPU priority, the
mode bit and other control bits)? *
1/1
1/1
Type 2 Hypervisor
Type 1 Hypervisor
1/1
Easier to extend
1/1
1/1
Is volatile
To contain BIOS
What part of the boot process determines whether the peripheral devices are
working properly? *
1/1
ROM
POST
CMOS
BIOS
1/1
As one proceeds down the memory hierarchy (from inboard memory to offline
storage), which of the following conditions is correct? *
1/1
Decreasing capacity
1/1
As one proceeds down the memory hierarchy (from inboard memory to offline
storage), the following conditions apply: *
1/1
Increasing capacity
1/1
Kernel mode
User mode
Management mode
A special register that contains the address of the next instruction to be fetched is
called: *
0/1
1/1
MS-DOS
Mac OS
UNIX
Windows XP
A CPU may have two or more complete processors, so that can carry out multiple
threads in the same time is called: *
1/1
Pipeline
Multicore
Superscalar
1/1
0/1
1/1
0/1
All of the other choices
Monolithic Systems
MS - DOS
1/1
1/1
A page that does not exist in the main memory is accessed by the virtual storage
management.
B
An operating system *
1/1
Deals with complex hardware resources and provides the user a virtual/extended
machine that is much easier to deal with than the physical machine
A CPU may have separate fech, decode and execute units, so that can carry out
three steps of the three instructions in the same time is called: *
1/1
Pipeline
Superscalar
Multicore
1/1
1/1
Consider a computer system that has cache memory, main memory (RAM) and
disk, and OS uses virtual memory. It takes 2 nsec to access a word from the cache,
10 nsec to access a word from RAM, and 10 msec to access a word from the disk.
If the cache hit rate is 95% and main memory hit rate is 99%, what is average time
to access a word? *
1/1
5,000.495 nsec
5,001.9 nsec
2.395 nsec
5,002.395 nsec
D
Which of the following conditions that causes the processes to be terminated, when
the processes executes a system call tell the OS to fininsh some other process? *
0/1
Which of the following conditions that causes the processes to be terminated, when
the processes have a program bug? *
0/1
Operating system abstraction supports the ability to have ______ operation even
when there is only one CPU available *
1/1
multiple
pseudoparallelism
1/1
How many percent of the CPU time is wasted, when a computer system has
enough room to hold two program and these programs are idle waiting for I/O half
the time? *
1/1
75%
50%
25%
____ is the act of allowing only one process to have access to a dedicated resource
*
1/1
Mutual exclusion
Circular wait
No preemption
Resource holdin
0/1
Both user-level threads and kernel-level threads can write into each other's memory
space
Both user-level threads and kernel-level threads use OS services via system calls
1/1
Stack
Process code
File handles
Process data
A
1/1
thread
program
miniprocess
subprocess
Five batch jobs A through E, arrive at a computer center at almost the same time.
They have estimated running times of 8, 6, 2, 10, and 4 minutes. . Determine the
average waiting time for FCFS scheduling. Ignore process switching overhead . *
0/1
18 minutes
18.8 minutes
17 minutes
12,8 minutes
1/1
Process creation
Process termination time
Process execution
Which of the events that causes the processes to be created, when the operation
system creates a new process and runs the next job from the input queue? *
0/1
System initialization
How many percent of the CPU time is wasted, when a computer system has
enough room to hold two program and these programs are idle waiting for I/O 10%
of the time? *
1/1
99%
1%
90%
B
What happens when a thread calls Down (S) when it wants to enter its critical
section, where S is a binary semaphore set to 1? *
1/1
1/1
TSL
Semaphore
Shared memory
1/1
In Unix, a process and all its children and further descendants together form a
process group
A process creates child process. The child process can itself creates more
processes, forming a process hierarchy
1/1
No process running outside its critical region may block another process
Five batch jobs A through E, arrive at a computer center at almost the same time.
They have estimated running times of 8, 6, 2, 10, and 4 minutes. Their (externally
determined) priorities are 3, 5, 2, 1, and 4, respectively, with 5 being the highest
priority. Determine the average waiting time for Priority scheduling. Ignore
process switching overhead. *
0/1
16,8 minutes
12,8 minutes
54 minutes
10,8 minutes
D
hich statement about disadvantage of Disabling interrupts, (the hardware solution
to the critical region problem) is correct? *
1/1
How many percent is CPU utilization, when a computer system has enough room
to hold two program and these programs are idle waiting for I/O 10% of the time?
*
1/1
1%
99%
90%
0/1
Avoid deadlock
Which of the following operating system has the concept of a process hierarchy? *
0/1
Win32
CP/M
MS-DOS
Unix
1/1
terminate; ExitProcess
exit; ExitProcess
ExitProcess; exit
ExitProcess; terminate
Which of the following process state transitions is correct, when the scheduler
picks a process from the ready queue to run? *
1/1
Running -> ready
1/1
Overlapping processes
Interleaving processes
Disabling interrupts
1/1
To exhibit cooperation
D
Which of the following process state transitions is illegal? *
1/1
Which of the following conditions that causes the processes to be terminated, when
a processes have done their work? *
1/1
1/1
User-level threads are more efficient than kernel threads, in the sense that they do
not need kernel calls to switch among threads
If one user-level thread makes a blocking system call, the system will block the
entire process (which contains that user-level thread)
1/1
What is Software proposal in the solution of Mutual exclusion with Busy waiting *
1/1
Peterson's Solution
Lock Variables
Strict Alternation
1/1
Process control block
1/1
No process running outside its critical region may block another process
1/1
Sequential process
B
When selecting the proper time quantum it should be long enough to allow ____
percent of the CPU cycles to run to completion *
1/1
40
100
80
20
Five batch jobs A through E, arrive at a computer center at almost the same time.
They have estimated running times of 8, 6, 2, 10, and 4 minutes. Determine the
average waiting time for SJF (Shortest job first) scheduling. Ignore process
switching overhead. *
0/1
18.8 minutes
6 minutes
8 minutes
14 minutes
C
Five batch jobs A through E, arrive at a computer center at almost the same time.
They have estimated running times of 8, 6, 2, 10, and 4 minutes. . Determine the
average turnaround time for FCFS scheduling. Ignore process switching overhead.
*
1/1
20 minutes
18 minutes
17 minutes
18.8 minutes
How many percent is CPU utilization, when a computer system has enough room
to hold two program and these programs are idle waiting for I/O half the time? *
1/1
75%
50%
25%
A computer has 2GB RAM of which the operating system occupies 1GB.The
processes are all 450 MB and have the same characteristics. How many percent of
the CPU time is wasted, when these programs are idle waiting for I/O 20% of the
time? *
0/1
90%
4%
96%
What is not a field in the process table that relates memory management? *
0/1
Which is the correct description of transitions between process states below? (see
picture) *
1/1
Captionless Image
1: Process blocks for input; 2: Input becomes available; 3: Scheduler picks another
process; 4: Scheduler picks this process
1: Process blocks for input; 2: Scheduler picks this process; 3: Scheduler picks
another process; 4: Input becomes available
1: Process blocks for input; 2: Input becomes available; 3: Scheduler picks this
process; 4: Scheduler picks another process
1: Process blocks for input; 2: Scheduler picks another process; 3: Scheduler picks
this process; 4: Input becomes available
A computer has 2GB RAM of which the operating system occupies 1GB.The
processes are all 450 MB and have the same characteristics. How many percent is
CPU utilization when these programs are idle waiting for I/O 20% of the time? *
1/1
90%
96%
4%
Which of the events that causes the processes to be created, when a running
process creates one or more new process to help it to do its job? *
1/1
System initialization
A
The following requirement must be met by any facility or capability that is to
provide support for mutual exclusion: *
1/1
1/1
Is good for multiprocessor architecture and if one thread is blocked does not cause
the other thread to be blocked
If one thread is blocked does not cause the other thread to be blocked
Which of the events that causes the processes to be created, when an operation
system is booted? *
1/1
System initialization
Execution of a process creation system call
User request to create a new process
Initiation of a batch job
A
Which of the following process state transitions is correct, when the operating
system discovers that process can not continue right now because of is not enough
resource? *
1/1
Running -> ready
Blocked (waiting) -> ready
Ready -> running
Running -> Blocked (waiting)
D
Which of the following conditions must be held to provide good solution for
mutual exclusion? *
1/1
No process running outside its critical region may block another process
No process must wait forever to enter its critical region
No two processes simultaneously in critical region
All of the other choices
No assumptions made about speeds or numbers of CPUs
D
In terms of disk storage efficiency, the method of "Backing up pages dynamically"
in comparison with the method of "Paging to a static swap area" is *
0/1
Nearly equal
Better
Equal
Worse
B
When there is an excessive amount of page swapping between main memory and
secondary storage, the operation becomes inefficient, which is called ____. *
1/1
excessive demand paging
over swapping
hot swapping
thrashing
D
Suppose a virtual address space of 2^24 words and the page size is 2^12 words. If
the virtual address is 123456 in Hexadecimal, what would be the page number in
Hexadecimal? *
1/1
12345
1234
123456
123
D
A system with 32 bit virtual address. If the page size is 4 KB and each table entry
occupies 4 bytes, what is the size of the page table? *
1/1
4 MB
8 MB
2 MB
1 MB
A
Which of these statements about the Inverted Page Table are true? *
1/1
An entry contains the pair (process, offset) mapped into the corresponding page
frame
An entry contains the pair (segment, virtual page) mapped into the corresponding
page frame
An entry contains the pair (process, virtual page) mapped into the corresponding
page frame
An entry contains the pair (segment, offset) mapped into the corresponding page
frame
C
Sequential process
What is not a field in the process table that relates process management? *
1/1
CPU time used
PC, PSW, SP
User ID, Group ID
Process ID
C
Which of the following process state transitions is correct, when the external event
for which a process was waiting happens? *
1/1
Ready -> running
Running -> Blocked (waiting)
Blocked (waiting) -> ready
Running -> ready
C
Which is the maximum partition size, if the FAT type is FAT-32 and the block size
is 4 KB? *
1/1
256 MB
1 TB
512 MB
128 MB
B
Where should be put the page replacement algorithm In Mach model of Page fault
handling with an external pager? *
0/1
In the page fault handler that is part of the kernel
In the external pager running in user space
All of the other choices
In the low-level MMU handler
B
Consider a computer system that has cache memory, main memory (RAM) and
disk, and OS uses virtual memory. It takes 1 nsec to access a byte from the cache,
10 nsec to access a byte from RAM, and 5 msec to access a block of 1000 bytes
from the disk. If a book has 1000 pages, each with 25 lines of 80 characters each,
How long it will take to electronically scan the text for the case of the master copy
being in each of the level as one proceeds down the memory hierarchy (from
inboard memory to offline storage)? *
1/1
4 msec, 40 msec, 20 sec
1 msec, 10 msec, 5 sec
2 msec, 20 msec, 10 sec
1 msec, 10 msec, 10 sec
C
Which of the following operating system has the concept of a process hierarchy? *
0/1
Win32
CP/M
Unix
MS-DOS
C
As one proceeds down the memory hierarchy (from inboard memory to offline
storage), which of the following conditions is correct? *
1/1
Decreasing access time
Increasing capacity
Increasing cost per bit
None of the other choices
B
Assume that the Page Table below is in effect: Page Number: 0 1 2 3; Page Frame
Number: 8 10 5 11. The number of lines per page is 400. The actual memory
location for line 1634 is ____. *
1/1
None of the other choices
1634
3
4434
A
How many percent of the CPU time is wasted, when a computer system has
enough room to hold two program and these programs are idle waiting for I/O half
the time? *
1/1
25%
75%
None of the other choices
50%
A
An arrival message causes the system to create a new thread to handle this
message. This new thread is call______ *
1/1
Activator
Upcall
Pop-up
Distributed
C
A computer has four page frames. The time of loading, time of last access, and the
R and M bits for each page are as shown below (the times are in clock ticks).
Which page will NRU replace?
1/1
Captionless Image
0
1
2
3
A
A computer with a 32-bit address uses a two-level page table. Virtual addresses are
split into a 9-bit top-level page table field, an 11-bit second-level page table field,
and an offset. How many pages are there in the address space? *
1/1
2^23 pages
2^20 pages
2^22 pages
2^21 pages
B
Which is not true about "Backing up pages dynamically"? *
1/1
Requires a disk map in memory
Pages do not have fixed swap area on the disk
When a page is swapped out, an empty disk page is chosen on the fly and disk map
is updated accordingly
Needs less main memory than the method "Paging to a static swap area"
D
As one proceeds down the memory hierarchy (from inboard memory to offline
storage), which of the following conditions is correct? *
1/1
None of the other choices
Decreasing cost per bit
Decreasing access time
Decreasing capacity
B
Assume jobs A-D arrive in quick succession in the READY queue. Using round
robin scheduling (quantum=4), the turnaround time for job B is ____. Arrival time:
0 1 2 3; Job: A B C D; CPU cycle: 8 4 9 5 *
1/1
24
20
22
7
D
Five batch jobs A through E, arrive at a computer center at almost the same time.
They have estimated running times of 8, 6, 2, 10, and 4 minutes. Their (externally
determined) priorities are 3, 5, 2, 1, and 4, respectively, with 5 being the highest
priority. Determine the average waiting time for Priority scheduling. Ignore
process switching overhead. *
1/1
12,8 minutes
10,8 minutes
54 minutes
16,8 minutes
B
If there are 128 pages and the page size is 32 K words, what is the length of logical
address? *
1/1
24 bits
26 bits
30 bits
22 bits
D
Which of the following information bits in the entry of page table is used to
indicate locked page? *
1/1
Modified bit
Caching disabled
Present/absent bit
Referenced bit
B
In some thread systems, a thread want be blocked until an other thread has exited.
It can establish this goal by calling______ *
1/1
thread_yield
thread_wait
thread_create
thread_exit
B
Consider a computer system that has cache memory, main memory (RAM) and
disk, and OS uses virtual memory. It takes 1 nsec to access a byte from the cache,
10 nsec to access a byte from RAM, and 5 msec to access a block of 1000 bytes
from the disk. If a book has 1000 pages, each with 50 lines of 80 characters each,
How long it will take to electronically scan the text for the case of the master copy
being in each of the level as one proceeds down the memory hierarchy (from
inboard memory to offline storage)? *
1/1
4 msec, 40 msec, 20 sec
1 msec, 10 msec, 10 sec
2 msec, 20 msec, 10 sec
1 msec, 10 msec, 5 sec
A
When a virtual memory system manages memory in fixed length units, which of
the following terms correctly represents its unit? *
1/1
Segment
Block
Frame
Page
D
At which level in Protection Rings on the Pentium the System calls reside *
1/1
0
2
1
3
C
The Mach model of Page fault handling with an external pager includes *
1/1
All of the other choices
An external pager running in user space
A low-level MMU handler
A page fault handler that is part of the kernel
A
Which of the following information bits in the entry of page table is used to
indicate that page is changed since it was loaded in memory? *
1/1
Modified bit
Status bit
Present/absent bit
Referenced bit
A
If there are 256 pages and the page size is 4K words, what is the length of logical
address? *
1/1
20 bits
14 bits
17 bits
15 bits
A
____ is a specialized WRITE command for existing data files that allows for
adding records to end of the file. *
1/1
UPDATE
REWRITE
APPEND
MODIFY
c
Which solution is used to solve the "missing block" problem in file system
consistency? *
1/1
The file system checker adds the missing blocks to the free list
The file system checker rebuilds the free list
The file system checker allocate the free block, then copy the duplicate block in
used to there
None of the other choices
a
Which of the following is not a well-known technique for organizing the physical
storage blocks for a file? *
1/1
Contiguous block allocation
Linked list block allocation
Sparse block allocation
Indexed block allocation
c
____ allocation allows files to use any storage space available on the disk. *
1/1
Noncontiguous storage
Add-on storage
Contiguous storage
Fragmented storage
a
____ is a specialized WRITE command for existing data files that allows for
appending records or for rewriting selected records in their original place in the
file. *
1/1
REWRITE
UPDATE
APPEND
MODIFY
d
How many is maximum number of partition that most disk can be divided up into?
*
1/1
4
3
5
2
a
The disk block in a partition that includes a magic number, the number of blocks in
the file system and other key administrative information is called: *
1/1
Superblock
MBR
Free block
Boot block
a
Which of the following is true about the block size in disk space management *
1/1
the larger the block size is the worse the disk space utilization is
the larger the block size is the lower the data rate is
the larger the block size is lesser the disk space is
None of the other choices
a
Which of a system callI is to allow the file to appear in more than one directory? *
1/1
OPEN
CREATE
LINK
SEEK
c
____ are special files with listings of filenames and their attributes. *
1/1
Databases
Programs
Data files
Directories
d
Which of a system callI is to allow the system free up internal table space? *
1/1
OPEN
DELETE
SEEK
CLOSE
d
Which method is used to implement files to keep each file as a linked list of disk
blocks? *
1/1
File Allocation Table
Linked List Allocation
i-node
Contiguous Allocation
b
Which of the following is not correct about hard links and symbolic links? *
1/1
Hard links can point to files on other machines
Hard links do not require extra disk space
Symbolic links need space to store the name and the file pointed to
Symbolic links can point to files in the network
a
How large is the block size, if the maximum partition size is 8 MB and the FAT
type is FAT-12? *
0/1
1 KB
8 KB
2 KB
4 KB
c
Which of a system callI is to allow the system fetch the attributes and list of disk
addresses into main memory for rapid access on later call? *
1/1
RENAME
CLOSE
OPEN
SEEK
c
The File Manager writes the volume name and other descriptive information on an
easy-to-access place on each unit: ____ of the magnetic disk *
1/1
the innermost part
the outermost part
stored at the beginning of the volume
immediately following the master file directory
b
Which of the following information contain in the entry of the partition tables ? *
1/1
Starting and ending address of each partition
None of the other choices
Marking a partittion as active
Starting and ending address of each partition and Marking a partittion as active
d
Disk can be divided up into one or more partitions the first block of every partition
is called: *
1/1
MBR
Free block
Super block
Boot block
d
Which of the following is specified to indicate the directory where the file is
located? *
1/1
Sub-directory
Extension
Path name
Root directory
c
The Linking technique that allows the file to appear in more than one directory are:
*
1/1
Hard link
Symbolic link
Hard link and Symbolic link
Soft link
c
Which of a system callI is to allow the system announce that the file is coming and
set some of the attributes? *
1/1
RENAME
CREATE
CLOSE
OPEN
b
Which is the maximum partition size, if the FAT type is FAT-32 and the block size
is 4 KB? *
0/1
1 TB
1 GB
16GB
16 TB
A
Which of a system callI is to allow the system to specify from where to take the
data in file? *
1/1
OPEN
CREATE
SEEK
LINK
c
Which is the maximum partition size, if FAT type is FAT-12 and the block size is 2
KB? *
1/1
8 MB
128 MB
256 MB
512 MB
a
Which of the following is true about the data rate for disk management? *
1/1
the larger the block size is lesser the disk space is
the larger the block size is the lower the data rate is
None of the other choices
the larger the block size is the faster the data rate is
d
Which ways are used to keep track of free block in disk space management? *
1/1
A bitmap method
A linked list method and bitmap method
None of the other choices
A linked list method
b
A table in main memory storing linked list allocation of disk blocks is called: *
1/1
Linked list table
File list table
Disk allocation table
File allocation table
d
Many computer users and some operating systems call subdirectories ____. *
1/1
Folders
Volumes
Files
Databases
a
The File Manager writes the volume name and other descriptive information on an
easy-to-access place on each unit: ____ of the CD or DVD *
1/1
stored at the beginning of the volume
the innermost part
the outermost part
immediately following the master file directory
b
When an external device becomes ready to be serviced by the processor, the device
sends this signal to the processor. This signal is called: *
1/1
Handler signal
Halt signal
None of the other choices
Interrupt signal
d
The user program starts system call to transfer and automatically suspended until
the data are available in the buffer
None of the other choices
The user process makes system call and goes to sleep until other process it wakes
up
a
Imagine that a certain printer can print 400 characters per second and that the time
to write a character to the printer's output register is so short it can be ignored. If to
run this printer using interrupt-driven I/O and each character printed requires an
interrupt that takes 50 µsec all-in to service. How many percent of the CPU does
the interrupt overhead cost? *
1/1
98% of the CPU
4% of the CPU
2% of the CPU
96% of the CPU
c
Which of the following statements about the task of device controller of I/O
devices is correct ? *
1/1
Make available to main memory
All of the other choices
Perform error correction as necessary
Convert serial bit stream to block of bytes
b
The term _____ characterizes a system configuration that includes an I/O module
that is a separate processor with a specialized instruction set. *
1/1
Programmed I/O
None of the other choices
DMA
I/O device
c
Imagine that a certain printer can print 400 characters per second and that the time
to write a character to the printer's output register is so short it can be ignored. If to
run this printer using interrupt-driven I/O and each character printed requires an
interrupt that takes 50 µsec all-in to service. How many percent of the CPU is
available to do other work? *
1/1
98% of the CPU
96% of the CPU
2% of the CPU
4% of the CPU
a
In separating I/O and memory space system, the set of I/O ports form the "I/O port
space". This mechanism allows: *
1/1
Both progams in user space and kernel can access to I/O devices
None of the other choices
Only programs in kernel can access to I/O devices
Programs in user space can easily access to I/O devices
c
Which approach is used in order to CPU communicate with the control registers of
the I/O device? *
1/1
Memory-mapped I/O
Separating I/O and memory space
All of the other choices
Hybrid: separating I/O and memory space and memory-mapped I/O
c
Which of the following statements is not correct about the device controller of I/O
devices? *
1/1
Is electronic component of device
Is software component of device
Can handle two, four, or even eight identical devices
Is also called adapter
b
Imagine that a certain modem can read 7,000 characters per second and that the
time to read a character to the modem register is so short it can be ignored. If to
run this modem using interrupt-driven I/O and each character read requires an
interrupt that takes 10 µsec all-in to service. How many percent of the CPU does
the interrupt overhead cost? *
1/1
93% of the CPU
4% of the CPU
7% of the CPU
96% of the CPU
c
Rearrange the layers in I/O software starting at the bottom: 1. User-level I/O
software; 2. Device drivers3; Interrupt handlers; 4. Hardware5; Device-
independent OS software. *
1/1
43251
12345
15234
54321
a
Which of the following statement is not true about separating I/O and memory
space? *
1/1
Programs must use 2 instructions to test whether the device is ready
There is special protection mechanism to keep user processes from performing I/O
Caching a device control register would be disastrous
Device drivers must be written using assembly language
c
In order that CPU communicates with the comtrol registers in the devices, the
control register is assigned: *
1/1
Index
I/O address
I/O port number
None of the other choices
c
Which of the following is not correct about the main classes of I/O devices? *
1/1
Block devices and Character devices
Block devices
Character devices
Stream devices
d
Assuming that it takes 10 nsec to copy a byte, how much time, does it take to
completely rewrite the screen of a 200 character x 20 line text mode memory-
mapped screen? *
0/1
10 micro-sec
40 micro-sec
20 micro-sec
30 micro-sec
b
In the hierarchical structure for managing I/O, which layer is closest to the
hardware? *
1/1
Device-independent OS software
None of the other choices
Interrupt handlers
Device drivers
c
How much cylinder skew is needed for a 3600- RPM (rotate per minute) disk with
the track-to-track seek time of 1 msec? The disk has 200 sectors of 512 bytes on
each track. *
1/1
24 sectors
18 sectors
36 sectors
12 sectors
d
What is the table where its entry contains the memory address of Interrupt service
routine *
1/1
Address table
Address lines table
Interrupt vector table
Interrupt table
c
Each device attached to your computer comes with a special program called a
__________ that facilitates the communication between the device and the OS. *
1/1
device driver
communication utility
device configurator
translator
a
Which of the following statements about interrupts and system calls is incorrect? *
1/1
Interrupts are caused by external events
Interrupts are asynchronous
System calls are caused by internal (synchronous) events
None of the other choices
d
Imagine that a certain modem can read 7,000 characters per second and that the
time to read a character to the modem register is so short it can be ignored. If to
run this modem using interrupt-driven I/O and each character read requires an
interrupt that takes 10 µsec all-in to service. How many percent of the CPU is
available to do other work? *
1/1
7% of the CPU
93% of the CPU
96% of the CPU
4% of the CPU
b
Assuming that it takes 10 nsec to copy a byte, how much time, does it take to
completely rewrite the screen of an 80 character x 25 line text mode memory-
mapped screen? *
0/1
20 micro-sec
30 micro-sec
10 micro-sec
40 micro-sec
a
Which of the following statement is correct about a disadvantage of memory-
mapped I/O? *
1/1
Programs can use 1 instruction to test whether the device is ready
No special protection mechanism needed to keep user processes from performing
I/O
Since the control registers of devices are mapped into the memory space, device
drivers can be written in C
Caching a device control register would be disastrous
d
How many categories can be the I/O devices roughly divided into? *
1/1
1
2
3
4
b
Which class of I/O devices that disks and tapes belong to? *
1/1
Block devices
Stream devices
Character devices
None of the other choices
a
The I/O technique where the processor busy waits for an I/O operation to complete
is called: *
1/1
Direct Memory Access (DMA)
Programmed I/O
Interrupt-driven I/O
None of the other choices
b
In the memory-mapped I/O system, in order that CPU communicates with the
comtrol registers in the devices, the control register is assigned: *
1/1
Unique memory address
I/O address
Index
None of the other choices
a
An example of the key differences that can exist across (and even in) types of I/O
devices is: *
1/1
Error conditions
Data representation
Data rate
All of the other choices
d
An interrupt that leaves the machine in well-defined state is called a(n) ______ *
1/1
Precise interrupt
Disappointed interrupt
Imprecise interrupt
Required interrupt
a
What is the correct approach with requesting the dedicated devices to solve
deadlock using Ostrich algorithm?
1/1
The device driver decides blocking and returning an error code
The device driver kills those requesting processes
The device driver stops the current jobs and releases the devices
All of the other choices
a
The permanent blocking of a set of processes that compete for system resources is
called *
1/1
None of the other choices
Starvation
Prioritization
Deadlock
d
If in a resource-allocation graph, each resource type has exactly one instance,
which of the following indicate a deadlock situation? *
1/1
The graph has no cycle.
The graph is not connected.
The graph has at least one cycle.
The graph is connected.
c
____ is when, in modern printing systems, a disk accepts output from several
Deadlock occurs on a modern printer when ____. *
1/1
The network connection for the printer overflows with too many requests to use
the printer.
The buffer fills up with too many print jobs and the printer cannot decide which
one to print.
Too many users attempt to access the printer at the same time.
The printer needs all of a job's output before it will begin printing, but the spooling
system fills the available disk space with only partially completed output.
d
Deadlock definition: "A set of processes is deadlocked if each process in the set is
waiting for an event that only another process in the set can cause." What does
event mean? *
1/1
None of the other choices
The event is press some key on keyboard
The event is release of a currently held resource
The event is some mouse click
c
____ is when each process involved in the impasse is waiting for another to
voluntarily release the resource so that at least one will be able to continue on. *
1/1
Mutual-exclusion condition
No preemption condition
Hold and wait condition
Circular-wait condition
d
Failure to lock database records before updating them may result in a ____
between processes *
1/1
Race
Struggle
Livelock
Deadlock
a
An algorithm designed to detect starvation by tracking how long each job has been
waiting for resources is the same concept as ____. *
1/1
Aging
Deadlock
Preemption
Round robin
a
What is the correct approach with the Mutual Exclusion condition to prevent
Deadlock? *
1/1
Request all resources initially
Order resources numerically
Spool everything
Take resources away
c
What is the correct approach with the hold and wait condition to prevent
Deadlock? *
1/1
Take resources away
Spool everything
Request all resources initially
Order resources numerically
c
____ is when, in modern printing systems, a disk accepts output from several users
and acts as a temporary storage area for all output until the printer is ready to
accept it *
1/1
Spooling
Buffering
Lagging
Spoofing
a
The first and simplest recovery method, and the most drastic, is to ____. *
1/1
Select a nondeadlocked job, preempt the resources it's holding, and allocate them
to a Deadlocked process so it can resume execution, thus breaking the deadlock
Terminate every job that's active in the system and restart them from the beginning
Identify which jobs are involved in the deadlock and terminate them one at a time,
checking to see if the deadlock is eliminated after each removal
Terminate only the jobs involved in the deadlock and ask their users to resubmit
them
b
____ occurs when two processes do not release control of resources they are using.
*
1/1
Hold and wait condition
Circular-wait condition
Mutual-exclusion condition
No preemption condition
a
____ is the act of allowing only one process to have access to a dedicated resource.
*
1/1
No preemption condition
Mutual-exclusion condition
Hold and wait condition
Circular-wait condition
b
Which strategy is used in the Banker's algorithm for dealing with deadlocks? *
1/1
Deadlock prevention
Deadlock detection
Deadlock avoidance
Deadlock ignorance
c
Assume the following events and actions take place: 1. P1 requests and is allocated
the printer R1; 2.P1 releases the printer R1; 3. P2 requests and is allocated the disk
drive R2; 4. P2 releases the disk R2; 5. P3 requests and is allocated the plotter R3;
6. P3 releases the plotter R3. Which of the following statement is true? *
1/1
There is no deadlock
Event 5 caused deadlock.
Event 6 caused deadlock.
Event 4 caused deadlock
a
The scheme of ____ removes the possibility of a circular wait and therefore
guarantees the removal of deadlocks. *
1/1
Hierarchical ordering
Preemption
Saving and restoring job state
Requesting all resources before job run
a
What is the correct approach with the Circular wait condition to prevent Deadlock?
*
1/1
Take resources away
Request all resources initially
Spool everything
Order resources numerically
d
Which of the following is not a well-known technique for organizing the physical
storage blocks for a file?
*1/1
Indexed block allocation
Contiguous block allocation
Linked list block allocation
Sparse block allocation
D
Which of the following information bits used by the various page replacement
policies indicates if the page has been called lately?
a. Locality bit
b. Status bit
c. Referenced bit
d. Modified bit
C
In separating I/O and memory space system, the set of I/O ports form the I/O port
space. This mechanism allows:
Programs in user space can easily access to I/O devices
Only programs in kernel can access to I/O devices
Both programs in user space and kernel can access to I/O devices
None of the other choices
B
Each of the following characteristics applies to deadlock avoidance except *
A. Widely used in modern operating systems
B. Relying on ability to predict effect of satisfying resource allocation requests
C. Inherently conservative strategy
D. None of the other choices
A
In the memory-mapped I/O system, in order that CPU communicates with the
control registers in the devices, the control register is assigned :
Index
I/O address
Unique memory address
None of the other choices
C
Which of the following information bits in the entry of page table is used to
indicate Page Fault?
Present/absent bit
Status bit
Referenced bit
Modified bit
A
In separating I/O and memory space system, the set of I/O ports form the I/O port
space. This mechanism allows:
A. Programs in user space can easily access to I/O devices
B. None of the other choices
C. Only programs in kernel can access to I/O devices
D. Both programs in user space and kernel can access to I/O devices
A
Which of the following statements is incorrect about user mode and kernel mode?
*
A. In kernel mode, the OS can execute every instruction in the instruction set
B. Having two modes of operation helps prevent user programs from accessing
critical instructions
C. None of the other choices
D. In user mode, user program can execute only a subset of instructions
c
Assume jobs A-D arrive in quick succession in the READY queue. Using round
robin scheduling (quantum=4), the average turnaround time for each job is ____. *
1 point
18.25
5
73
20
Consider a swapping system in which the memory consists of the following hole
sizes: 10 K, 4 K, 20 K, 15 K, 9 K. Assume worst fit algorithm is used. Which holes
are taken for successive segment requests of 8 K, 12 K, 10 K? *
1 point
10 K, 20 K, 15 K
9 K, 15 K, 10 K
20 K, 15 K, left over of 20 K
None of the other choices
C
A computer has four page frames. The time of loading, time of last access, and the
R and M bits for each page are as shown below (the times are in clock ticks).
Which page will Second Chance replace? *
1 point
Page -------loaded-----last ref.-----R-----M
0------------226----------280--------0-----0
1------------160----------265--------0-----1
2------------110----------270--------1------0
3------------120----------285--------1------1
2
3
0
1
1
Which strategy is used in the Banker's algorithm for dealing with deadlocks? *
1 point
Deadlock detection
Deadlock ignorance
Deadlock prevention
Deadlock avoidance
D
Which of the following is not correct about the reliability of different RAID levels?
*
1 point
In RAID level 2, a single bit error in a word can be detected AND corrected
There is no reliability support in RAID level 0
All RAID levels can survive one disk crash
In RAID levels 3, 4, 5 a single bit error in a word can be detected
B
Five batch jobs A through E, arrive at a computer center at almost the same time.
They have estimated running times of 8, 6, 2, 10, and 4 minutes. Their (externally
determined) priorities are 3, 5, 2, 1, and 4, respectively, with 5 being the highest
priority. Determine the mean process average turnaround time for priority
scheduling. Ignore process switching overhead . *
1 point
10,8 minutes
16,8 minutes
54 minutes
12,8 minutes
B
Which is a wrong statement about the quantum used in Round Robin algorithm? *
1 point
If the quantum is very large, RR is essentially FCFS
None of the other choices
A reasonable value of quantum is around 20-50 ms
If the quantum is very small, the CPU efficiency is reduced
B
The methods determine where page is on the disk when it is paged out is *
1/1
Paging to a static swap area
Both Paging to a static swap area and Backing up pages dynamically
None of the other choices
Backing up pages dynamically
b
Which FAT type is used, if the maximum partition size is 256 MB and the block
size is 4KB? *
1/1
FAT-32
FAT-16
None of the other choices
FAT-12
b
The scheduling strategy where each process in the queue is given a certain amount
of time. After this time has elapsed, the process is preempted and added to the end
of the ready queue is referred to as: *
1/1
Prioritization
All of the other choices
LIFO
Round-Robin
d
What is the correct approach with the "No preemption condition" to prevent
Deadlock? *
1/1
Order resources numerically
Spool everything
Take resources away
Request all resources initially
C
Assuming that it takes 10 nsec to copy a byte, how much time does it take to
completely rewrite the screen of a 1200 x 800 pixels graphics with 24- bit color? *
1/1
28.8 micro-sec
288 msec
28.8 msec
288 micro-sec
c
Some systems increase the priority of jobs that have been in the system for an
unusually long time to expedite their exit, which is known as ____.? *
1/1
Accelerated priority
Bumping
Lagging
Aging
d
Five batch jobs A through E, arrive at a computer center at almost the same time.
They have estimated running times of 8, 6, 2, 10, and 4 minutes. Their (externally
determined) priorities are 3, 5, 2, 1, and 4, respectively, with 5 being the highest
priority. Determine the average turnaround time for priority scheduling. Ignore
process switching overhead. *
1/1
6 minutes
16.8 minutes
12.8 minutes
18.8 minutes
B
Which ways are used to keep track of free block in disk space management? *
1/1
Both linked list method and bitmap method
A linked list method
None of the other choices
A bitmap method
a
In modern printing systems, a disk accepts output from several users, Deadlock
occurs when ____. *
1/1
a. The network connection for the printer overflows with too many requests to use
the printer.
b. Too many users attempt to access the printer at the same time.
c. The printer needs all of a job's output before it will begin printing, but the
spooling system fills the available disk space with only partially completed output.
d. The buffer fills up with too many print jobs and the printer cannot decide which
one to print.
C
An example of the key differences that can exist across (and even in) classes of I/O
devices is: *
1 point
All of the other choices
Data rate
Data representation
Error conditions
a
The ___ is the essential component of the operating system that remains in RAM
when your computer is powered on. *
1 point
system file
registry
core
kernel
d
The interface between the operating system kernel and the user programs is
defined by the set of ___ that the operating system provides *
1 point
System calls
Processes
Functions
Threads
A
Which of the following information bits in the entry of page table is false? *
1 point
Protection bit
Present/absent bit
Mode bit
Modified bit
c
Which of the following information bits in the entry of page table is used to
indicate what kinds of access are permitted? *
0/1
Modified bit
Protection bit
Present/absent bit
Caching disabled
b