Osg-Final Test - Key - Nokey
Osg-Final Test - Key - Nokey
lOMoARcPSD|23049225
1. Which of the following statements about the CPU's handling interrupts is incorrect?
None of the other choices
The CPU branches to a new instruction sequence
The hardware saves the old PC location
The processor ceases to execute the current sequence of instructions
3. 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?
1.445 nsec
5,001.445 nsec
5,000.495 nsec
5,000.95 nsec
5. As one proceeds down the memory hierarchy (from inboard memory to offline storage),
which of the following conditions is correct?
Decreasing access time
None of the other choices
Decreasing cost per bit
Decreasing capacity
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
9. Which of special register in the CPU points to the top of the current stack in the
memory?
PC
PSW
IR
SP
10. A CPU may have multiple execution units, so that can carry out multiple instructions in
the
same time is called:
None of the other choices
Multicore
Pipeline
Superscalar
11. 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
12. Information that must be saved prior to the processor transferring control to the
interrupt
handler routine includes:
PSW
None of the other choices
PSW and Contents of processor registers
PSW and PC
lOMoARcPSD|23049225
13. Examples of general purpose stored program computers include the following except
Personal computers
Network servers
Workstations
MP3 player
15. List of memory location, that contains the executable program, the program's data, and
its
stack is called:
set of resources
all of the other choices
address memory
address space
18. Which of special register contains the Mode Bit (user or kernel)?
Program Counter (PC)
None of the other choices
Program Status Word (PSW)
Instruction Register (IR)
Main memory
Network interface
21. Which of the main bus in the IBM PC computer that can run at 66 MHz and transfer 8
bytes at
a time?
PCI (Peripheral Component Interconnect)
ISA (Industry Standard Architecture)
None of the other choices
ISA and PCI
22. Which of the following statements about Electrically Erasable PROM (EEPROM) is correct?
Can be erased and rewritten
Unprogrammable
Volatile
None of the other choices
23. The major operating system services provide mechanisms for secure and efficient are:
Communication between processes
All of the other choices
Execution of a program,I/O operations performed by it,and detecting and reporting errors caused by
it
File manipulation
24. Which of the following instructions should be allowed only in kernel mode?
ADD of two numbers
AND of two numbers
Disable all interrupts
Read the time-of-day clock
25. As one proceeds down the memory hierarchy (from inboard memory to offline storage),
which of the following conditions is correct?
Increasing cost per bit
Decreasing access time
None of the other choices
Increasing capacity
lOMoARcPSD|23049225
28. Which of special register contains the condition code bits, the CPU priority, the mode
bit and
other control bits)?
None of the other choices
Program Counter (PC)
Instruction Register (IR)
Program Status Word (PSW)
29. Which of the following statements about Random Access Memory (RAM) is correct?
Is volatile
Stores all the files on the computer
Can only be read sequentially
Is typically faster than cache memory
32. Which of the following instructions should be allowed only in kernel mode?
All of the other choices
Change the memory map
Set the time-of-day clock
Disable all interrupts
lOMoARcPSD|23049225
34. What part of the boot process determines whether the peripheral devices are working
properly?
ROM
POST
CMOS
BIOS
36. As one proceeds down the memory hierarchy (from inboard memory to offline storage),
which of the following conditions is correct? *
Decreasing capacity
None of the other choices
Increasing cost per bit
Increasing access time
38. As one proceeds down the memory hierarchy (from inboard memory to offline storage),
the
following conditions apply:
Increasing capacity
Decreasing cost per bit
All of the other choices
Increasing access time
User mode
Management mode
None of the other choices
40. A special register that contains the address of the next instruction to be fetched is
called:
Instruction Register (IR)
All of the other choices
Program Counter (PC)
Program Status Word (PSW)
42. A CPU may have two or more complete processors, so that can carry out multiple
threads in
the same time is called:
Pipeline
Multicore
None of the other choices
Superscalar
46. The operating system structure in which the communication between requesting process
and
responding process is message passing?
All of the other choices
Monolithic Systems
MS - DOS
Client - Server Model
50. 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:
Pipeline
None of the other choices
Superscalar
Multicore
54. 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?
Normal exit (voluntary)
Error exit (voluntary)
Fatal error (involuntary)
Killed by another process (involuntary)
55. Which of the following conditions that causes the processes to be terminated, when the
processes have a program bug?
Fatal error (involuntary)
Error exit (voluntary)
Normal exit (voluntary)
Killed by another process (involuntary)
56. Operating system abstraction supports the ability to have operation even when there
is only one CPU available
Multiple
none of the other choices
parallel
Pseudoparallelism
58. 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?
75%
50%
25%
lOMoARcPSD|23049225
59. is the act of allowing only one process to have access to a dedicated resource.
Mutual exclusion
Circular wait
No preemption
Resource holdin
60. Which of the following statements about user-level threads and kernel-level threads is
correct?
None of the other choices
Both user-level threads and kernel-level threads can write into each other's memory
space.
Kernel-level thread scheduling is faster than user-level thread scheduling
Both user-level threads and kernel-level threads use OS services via system calls
61. Which of the following cannot be shared among different threads of a process?
Stack
Process code
File handles
Process data
63. 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.
18 minutes
18.8 minutes
17 minutes
12,8 minutes
64. Which of the following is appropriate to release page table and pages?
Process creation
Process termination time
Page fault time
Process execution
lOMoARcPSD|23049225
65. 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?
Initiation of a batch job
User request to create a new process
System initialization
Execution of a process creation system call
66. 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?
99%
1%
None of the other choices
90%
67. 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?
The thread is blocked and added to a queue of waiting threads.
The semaphore is set to 2.
The thread is allowed to enter its critical section and S is decremented.
None of the other choices
68. Which of the following statements is a hardware solution to the critical region problem?
TSL
Semaphore
None of the other choices
Shared memory
70. Which conditions of mutual exclusion does the Strict Alternation (Software proposal)
violate
No process running outside its critical region may block another process
No assumptions made about speeds or numbers of CPUs
No process must wait forever to enter its critical region
No two processes simultaneously in critical region
71. 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
lOMoARcPSD|23049225
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.
16,8 minutes
12,8 minutes
54 minutes
10,8 minutes
72. Which statement about disadvantage of Disabling interrupts, (the hardware solution to
the
critical region problem) is correct?
Permit process use command privileges: Danger!
If process is locked in Critical Section: System Halt
All of the other choices
Don't ensure Mutual Exclusion for the system with N CPUs
73. 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%
99%
None of the other choices
90%
75. Which of the following operating system has the concept of a process hierarchy?
Win32
CP/M
MS-DOS
Unix
76. OS Windows use system call , while OS Unix use system call to terminate
processes normally
terminate; ExitProcess
exit; ExitProcess
ExitProcess; exit
ExitProcess; terminate
77. Which of the following process state transitions is correct, when the scheduler picks a
process
from the ready queue to run?
lOMoARcPSD|23049225
79. In order to implement mutual exclusion on a critical resource for competing processes,
only
one program at a time should be allowed:
None of the other choices
To exhibit cooperation
To perform message passing
In the critical region of the program
81. Which of the following conditions that causes the processes to be terminated, when a
processes have done their work?
Normal exit (voluntary )
Error exit (voluntary)
Fatal error (involuntary)
Killed by another process (involuntary)
85. What is Software proposal in the solution of Mutual exclusion with Busy waiting
Peterson's Solution
All of the other choices
Lock Variables
Strict Alternation
86. Which conditions of mutual exclusion does the Lock Variables (Software proposal)
violate
No assumptions made about speeds or numbers of CPUs
No two processes simultaneously in critical region
No process must wait forever to enter its critical region
No process running outside its critical region may block another process
87. A process where no concurrency inside process; everything happens sequentially is called:
Random access process
Sequential process
Sequential access process
None of the other choices
88. When selecting the proper time quantum it should be long enough to allow percent of
the CPU cycles to run to completion
40
100
80
20
89. 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.
18.8 minutes
6 minutes
8 minutes
14 minutes
lOMoARcPSD|23049225
90. 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 schedulingf. Ignore process switching overhead.
20 minutes
18 minutes
17 minutes
18.8 minutes
91. 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?
75%
50%
25%
None of the other choices
92. 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?
90%
None of the other choices
4%
96%
94. What is not a field in the process table that relates memory management?
Pointer to data segment info
Pointer to stack segment info
Pointer to text segment info
Pointer to program segment info
95. Which is the correct description of transitions between process states below? (see picture)
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
lOMoARcPSD|23049225
96. 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?
90%
None of the other choices
96%
4%
97. 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?
Execution of a process creation system call
Initiation of a batch job
User request to create a new process
System initialization
98. The following requirement must be met by any facility or capability that is to provide
support
for mutual exclusion:
Only one process at a time can be allowed into a critical section
No assumption can be made about relative process speeds
All of the other choices
A process remains in its critical region for a finite time only
lOMoARcPSD|2
2. OS Win32 use system call , while OS Unix use system call to create a new
process
fork, CreateProcess
CreateProcess; fork
copy, CreateProcess
CreateProcess; copy
4. Which of the events that causes the processes to be created, when an operation
system is
booted?
System initialization
Execution of a process creation system call
User request to create a new process
Initiation of a batch job
6. Which of the following process state transitions is correct, when the external event for
which
a process was waiting happens?
Running -> Blocked (waiting)
Running -> ready
Ready -> running
Blocked (waiting) -> ready
7. 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?
lOMoARcPSD|23049225
lOMoARcPSD|23049225
9. Which of the following conditions must be held to provide good solution for mutual
exclusion?
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
10. 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
Nearly equal
Better
Equal
Worse
13. When there is an excessive amount of page swapping between main memory and
secondary
storage, the operation becomes inefficient, which is called .
excessive demand paging
over swapping
lOMoARcPSD|23049225
hot swapping
thrashing
14. 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?
12345
1234
123456
123
15. 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?
4 MB
8 MB
2 MB
1 MB
16. Which of these statements about the Inverted Page Table are true?
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
18. A process where no concurrency inside process; everything happens sequentially is called :
None of the other choices
Sequential access process
Sequential process
Random access process
19. What is not a field in the process table that relates process management?
CPU time used
PC, PSW, SP
User ID, Group ID
Process ID
lOMoARcPSD|23049225
20. Which of the following process state transitions is correct, when the external event for
which
a process was waiting happens?
Ready -> running
Running -> Blocked (waiting)
Blocked (waiting) -> ready
Running -> ready
21. Which is the maximum partition size, if the FAT type is FAT-32 and the block size is 4
KB?
256 MB
1 TB
512 MB
128 MB
22. Where should be put the page replacement algorithm In Mach model of Page fault
handling
with an external pager?
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
23. 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)?
4 msec, 40 msec, 20 sec
1 msec, 10 msec, 5 sec
2 msec, 20 msec, 10 sec
1 msec, 10 msec, 10 sec
25. Which of the following operating system has the concept of a process hierarchy?
Win32
CP/M
Unix
MS-DOS
lOMoARcPSD|23049225
26. As one proceeds down the memory hierarchy (from inboard memory to offline storage),
which of the following conditions is correct?
Decreasing access time
Increasing capacity
Increasing cost per bit
None of the other choices
27. 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
.
None of the other choices
1634
3
4434
28. 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?
25%
75%
None of the other choices
50%
30. An arrival message causes the system to create a new thread to handle this message. This
new
thread is call
Activator
Upcall
Pop-up
Distributed
31. What is Higher-level proposal in the solution of Mutual exclusion and Synchronization?
Monitors
Message Disable
Interrupts passing
Peterson's Solution
lOMoARcPSD|23049225
36. 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?
Captionless Image
0
1
2
3
37. 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?
2^23 pages
2^20 pages
2^22 pages
2^21 pages
lOMoARcPSD|23049225
40. As one proceeds down the memory hierarchy (from inboard memory to offline storage),
which of the following conditions is correct?
None of the other choices
Decreasing cost per bit
Decreasing access time
Decreasing capacity
42. Which is not true about the method of backing store: "Paging to a static swap area"?
The swap area on the disk is as large as the process virtual address space
Calculating the address in swap area requires knowing only where the process' paging area
begins
A page that is in memory always have shadow copy on disk
Requires a disk map in memory
44. 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
lOMoARcPSD|23049225
24
20
22
7
46. Which of the following statements is a hardware solution to the critical region problem?
None of the other choices
Semaphore
Shared memory
TSL
47. 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.
12,8 minutes
10,8 minutes
54 minutes
16,8 minutes
48. If there are 128 pages and the page size is 32 K words, what is the length of logical
address?
24 bits
26 bits
30 bits
22 bits
49. Which of the following information bits in the entry of page table is used to indicate
locked
page?
Modified bit
Caching disabled
Present/absent bit
Referenced bit