Professional Documents
Culture Documents
Operating Systems Q&A - 16-1&2
Operating Systems Q&A - 16-1&2
30. Which part of the operating system is unique to each operating system?
a. *User Command Interface c. Memory Manager
b. Process Manager d. File Manager
31. The ------------- must receive the electrical impulses from the keyboard, decode the keystrokes to form the
command, and send the command to the User Command Interface, where the Processor Manager validates the
command.
a. *Device Manager c. Keyboard Manager
b. File Manager d. Memory Manager
32. ------------- include(s) every peripheral unit in the system such as printers, disk drives, CD drives, magnetic tape
devices, keyboards, DVD players, modems, and so on.
a. The CPU c. Processors
b. *I/O Devices d. Secondary components
33. In a computer, the ------------- holds the Central Processing Unit, the Arithmetic and Logic Unit, registers, cache,
and main memory.
a. parallel system c. *tower
b. USB interface d. monitor
34. How many floating-point operations can a supercomputer perform per second?
a. 240 million c. *2.4 trillion
b. 2.4 billion d. 24 trillion
35. The most powerful microcomputers used by commercial, educational and government enterprises are called ------
-------.
a. supercomputers c. terminals
b. minicomputers d. *workstations
36. What is the primary distinguishing characteristic of modern computers?
a. memory capacity c. disk space
b. *processor capacity d. physical size
37. Which operating systems are typically used for a network platform?
a. IRIX, UNICOS
b. Linux, Macintosh, MS-DOS, Windows 2000/XP
c. *Linux, NetWare, UNIX, Windows Server 2003
d. IBM OS/390, UNIX
38. Which of the following requires a real-time system?
a. space flights c. telephone switching
b. airport traffic control d. *All of the above
39. A hybrid system is a combination of the ------------- systems.
a. *batch and interactive c. interactive and real-time
b. batch and real-time d. real-time and general-purpose
40. What type of system is designed to perform one specific function?
a. Real-time c. *Embedded
b. Interactive d. Hybrid
Alzaytoonah University – Faculty of Science and IT- Computer Science Departmen 3
Operating Systems Q&A Dr. Jamal Mohammad Khalifeh 2016
41. What is the name for the core part of operating system software?
a. manager c. core
b. center d. *kernel
42. For what period were vacuum tube computers used?
a. 1920s-1930s c. *1940-1955
b. 1935-1945 d. 1945-1960
43. What was the primary market for second-generation computers?
a. the government c. education
b. *business d. All of the above
44. What was one of the main improvements of second-generation computers?
a. *job scheduling c. improved user interface
b. better debugging d. more structured logic for programs
45. ------------- means that several logical records are grouped within one physical record.
a. Grouping c. Combining
b. Fixing d. *Blocking
46. In second-generation computers, to reduce the discrepancy in speed between the I/O and the CPU, an interface
called the ------------- was placed between them to perform the function of buffering.
a. *control unit c. holder
b. scheduler d. buffer manager
47. The most common mechanism for implementing multiprogramming was the introduction of the -------------
concept, which is when the CPU is notified of events needing operating systems services.
a. paging c. messaging
b. sharing d. *interrupt
48. A system with ------------- would divide the programs into segments and keep them in secondary storage, bringing
each segment into memory only as it was needed.
a. *virtual memory c. segmented processing
b. shared memory d. passive multiprogramming
49. Which word is used to indicate that a program is permanently held in ROM (read only memory), as opposed to
being held in secondary storage?
a. hardware c. software
b. *firmware d. shareware
50. What is a disadvantage of a distributed operating system?
a. user has to monitor which computer is being controlled
b. users have to worry about scheduling each processor rather than dealing with uniprocessor system
c. *more complex processor-scheduling algorithms
d. All of the above
51. A typical ------------- computer houses devices to perform audio, video, and graphic creation and editing.
a. multiprocessor c. networked
b. *multimedia d. PDA
52. ------------- are self-contained modules (units of software) that provide models of the real world and can be reused
in different applications.
a. *Objects c. Peripherals
b. Kernels d. Threads
53. What is another name for a thread?
a. heavyweight process c. kernel
b. *lightweight process d. distributor
54. In which of the following are processors placed at remote locations and are connected to each other via
telecommunication devices?
a. multiprocessing c. *distributed processing
b. multithreading d. shared processing
56. If a general purpose system (such as a university's mainframe) becomes overloaded, then the response
time
a. becomes shorter
b. does not change
* c. tends to approximate infinity
59. Resources managed by the operating system can be grouped into two main categories
a. files and secondary storage
b. I/O devices and processes
* c. physical and logical
61. The following diagram comparing the time to set up a job versus the time to execute a job in a slow
machine (A), and a faster machine (B) indicates that
* a. manual set up time took a greater proportion of total time as machines got faster, increasing the
need for operating systems to handle jobs.
b. manual set up time took a smaller proportion of total time as machines got faster, decreasing the
need for operating systems to handle jobs.
Machine(A):
Time to Time to Time to Time to
set up execute job set up execute job
job job
Machine (B):
Time to Time to Time to Time to
set up job execute set up job execute
job job
Job: ABCD
CPU cycle: 5 2 6 4
Alzaytoonah University – Faculty of Science and IT- Computer Science Departmen 6
Operating Systems Q&A Dr. Jamal Mohammad Khalifeh 2016
a. A c. C
*b. B d. D
77. Assume that four jobs A-D require the CPU cycles listed below. Using the SJN algorithm, what is the average
turnaround time?
Job: ABCD
CPU cycle: 5 2 6 4
a. 5.5 *c. 9.0
b. 6.8 d. 11.1
78. Some systems increase the priority of jobs that have been in the system for an unusually long time to expedite
their exit. This is known as -------------.
a. lagging c. bumping
*b. aging d. accelerated priority
79. Assume that jobs A-D arrive in the ready queue in quick succession and have the CPU cycle requirements listed
below. Using the SRT algorithm, what is the average turnaround time?
Arrival time: 0 1 2 3
Job: ABCD
CPU cycle: 6 3 1 4
a. 2.5 c. 7.75
*b. 6.25 d. 9.0
80. Assume jobs A-D arrive in quick succession in the READY queue. Using round robin scheduling, what is the
turnaround time for job C?
Arrival time: 0 1 2 3
Job: ABCD
CPU cycle: 8 4 9 5
a. 7 c. 22
b. 20 d. 24
81. What is the best time quantum size in round robin scheduling?
a. it depends on the system
b. it should be long enough to allow 80 percent of the CPU cycles to run to completion
c. it should be at least 100 times longer than the time required to perform one context switch operation
*d. All of the above
82. No movement between queues is a very simple policy that rewards those who have ------------- jobs.
*a. high-priority c. CPU-bound
b. low-priority d. I/O-bound
83. Which multiple-level queue management scheme facilitates I/O-bound jobs and is good in interactive systems?
a. No movement between queues c. Variable time quantum per queue
*b. Movement between queues d. Aging
84. Which multiple-level queue management scheme allows for faster turnaround of CPU-bound jobs?
a. No movement between queues *c. Variable time quantum per queue
b. Movement between queues d. Aging
85. When the operating system detects a nonrecoverable error, which of the following happens first?
a. state of the interrupted process is saved c. interrupt is processed
*b. type of interrupt is described and stored d. processor resumes operation
86. A parent may terminate the execution of one of its children in the case of
a. The child has exceeded its usage of some of the resources that it has been allocated
b. The task assigned to the child is no longer required
c. The parent is exiting, and the operating system does not allow a child to continue if its parent
terminates
*d. Any of them
Alzaytoonah University – Faculty of Science and IT- Computer Science Departmen 7
Operating Systems Q&A Dr. Jamal Mohammad Khalifeh 2016
87. Independent process is --------------------------.
a. a process that cannot affect and be affected by the other processes executing
b. a process that can affect and cannot be affected by the other processes executing
*c. any process that share data with any other process is independent
d. a process that can affect and be affected by the other processes executing
run
1. The issuing of a "READ" command by a user program will change the status of that process
from
* a. run to wait
b. ready to run
c. ready to wait
d. wait to ready
e. wait to run
2. The scheduling of a process that has not yet RUN will change the status of that process
from
a. run to wait
* b. ready to run
c. ready to wait
d. wait to ready
e. wait to run
3. At completion of an I/O command the status of the process that had issued the I/O
command will change from
a. run to wait
b. ready to run
c. ready to wait
* d. wait to ready
e. wait to run
104. If a job requires 20 time units of CPU run time to complete, and the length of the time quantum is 12
time units, there will be
a. 2 context switches
b. 0 context switches
* c. 1 context switch
d. none of the above
107. The act of saving all the old registers from one process and loading the registers for a new process at
the end of a time quantum is known as
a. swapping
* b. context switching
c. partial execution
d. CPU utilization
108. Resources that are allocated to one process at a time for its duration are
a. preemptable
* b. dedicated
c. critical
d. non-preemptable
111. When designing a time sharing system one would choose a scheduling algorithm that would
a. minimize CPU utilization
b. minimize response time
c. maximize CPU utilization
d. both a and b
* e. both b and c
112. An event that temporarily suspends normal processing operations of a computer is a(n)
a. utility program
b. job
* c. interrupt
d. linkage editor
e. system residence device
113. Optimal quantum size should
a. be large enough so that the majority of the interactive requests can be completed in less time than
the duration of the quantum
b. be small enough so that the majority of the interactive requests can be completed in more time
than the duration of the quantum
c. be large enough to minimize pre-emption overhead
* d. both a and c
e. both b and c
114. Use the following time line and table to answer this question.
job 1 job 2 job 3 job 1 job 1 job 1 job 1 job 1
4 7 10 14 18 22 26 30
116. Knowing that a preemptive scheduling policy for the CPU indicates that the CPU can be taken away
from one process and given to another process, which of the following is (are) example(s) of
preemptive scheduling policies
Alzaytoonah University – Faculty of Science and IT- Computer Science Departmen 11
Operating Systems Q&A Dr. Jamal Mohammad Khalifeh 2016
a. FCFS
b. Round Robin
c. Shortest Job First
d. Shortest Remaining Time First
* e. both b and d
f. none of the above
119. Use the following information on program execution times to answer the next 2 questions (assuming
all jobs arrive at the same time).
Job Number CPU Time
1 1 hour
2 1 second
3 1 second
1. If the jobs are run to completion on a First Come First Serve basis (no multiprogramming),
then the turnaround time for Job 2 will be
a. 1 second
b. 2 seconds
c. 1 hour
* d. 1 hour, 1 second
e. none of the above
2. If Round Robin is used with a time quantum of 1 second, then the turnaround time for Job 2
will be
a. 1 second
* b. 2 seconds
c. 1 hour
d. 1 hour, 1 second
e. none of the above
121. Which of the following objectives of a scheduling policy most directly applies to the case of a user
who has been waiting for an excessive amount of time
a. maximize throughput
b. minimize overhead
c. balance resource utilization
* d. avoid indefinite postponement
122. A scheduling system in which each job is taken in FIFO order for a set time quantum is referred to as
a. priority scheduling
* b. round robin scheduling
c. scheduling by resources demanded
d. scheduling of short jobs first
124. Given the following list of jobs, their CPU cycles and arrival times, compute the following.
Concurrency
125. Interactive systems generally improve the use of resources through ------------- resource sharing, but
this resource sharing capability also increases the possibility of deadlocks.
a. interspersed *c. dynamic
b. group d. static
126. In what type of system are deadlocks most critical?
a. batch *c. real-time
b. interactive d. general purpose
127. Consider the case of a home construction company with two application programs, purchasing (P1)
and sales (P2), which are active at the same time. They each need to access two files, inventory (F1)
and suppliers (F2), to update daily transactions. The following series of events will cause a deadlock.
Fill in the missing event in the sequence.
165. Once a thread is in the ready state, which state can it enter next?
a. blocked c. waiting
b. finished *d. running
166. Which of the following is not a reason to provide process cooperation?
a. Information sharing,
b. Modularity
c. Convenience of having a few cooperating processes that are running different tasks
*d. Having two operating systems on the same machine
167. Which of the following is not a general process synchronization problem?
a. Race condition c. Critical-section
*b. Coherency and Consistency d. Starvation
168. Which of the following is a process synchronization problem?
a. Preemption *c. Deadlock problem
b. Coherency and Consistency d. Aging
169. --------------------------is a system starvation caused by incorrect modification of the shared memory due to
process interruption
a. Race condition problem *c. Critical-section problem
b. Deadlock problem d. Starvation problem
170. --------------------------is the problem that arises when the outcome of the execution when several processes are
accessing and manipulating the shared date concurrently depends on the order in which the access takes place
*a. Race condition problem c. Critical-section problem
b. Deadlock problem d. Starvation problem
171. --------------------------is a situation when some cooperating processes can not complete their executions
because they are waiting for events that will never happen
a. Race condition problem c. Critical-section problem
*b. Deadlock problem d. Starvation problem
Alzaytoonah University – Faculty of Science and IT- Computer Science Departmen 17
Operating Systems Q&A Dr. Jamal Mohammad Khalifeh 2016
172. --------------------------is a situation in which all the programs continue to run indefinitely but fail to make any
progress.
a. Race condition problem c. Critical-section problem
b. Deadlock problem *d. Starvation problem
173. How can a semaphore s be used to solve the critical-section problem?
a. Initialize s to 0; enter section after waiting on s; exit after signaling on s.
*b. Initialize s to 1; enter section after waiting on s; exit after signaling on s.
c. Initialize s to 0; enter section after signaling on s; exit after waiting on s.
d. Initialize s to 1; enter section after signaling on s; exit after waiting on s.
174. Which of the following is not true about transaction atomicity?
a. If the series of operations in a transaction cannot be completed, the transaction must be aborted and
the operations that did take place must be rolled back.
b. It is important that the series of operations in a transaction appear as one indivisible operation to
ensure the integrity of the data being updated.
*c. Data could be compromised if operations from two (or more) different transactions were intermixed.
d. All above are true
175. Which of the following is not true about the conditions we need to hold to have a good solution for having
parallel processes cooperate correctly and efficiently using shared data are?
*a. No two processes may be simultaneously inside their non-critical regions.
b. No assumptions may be made about speeds or the number of CPUs.
c. No process running outside its critical region may block other processes.
d. No process should have to wait forever to enter its critical region.
176. Which of the following is not true about the use of the machine-instruction approach to enforce mutual
exclusion?
a. It is applicable to any number of processes on either a single processor or multiple processors sharing
main memory.
b. It is simple and therefore easy to verify.
c. It can be used to support multiple critical sections; each critical section can be defined by its own
variable.
*d. It is applicable to any number of processes only on multiple processors sharing main memory.
177. Which of the following is not possible when using the machine-instruction approach to enforce mutual
exclusion?
a. Busy waiting c. Starvation
b. Deadlock *d. All are possible
178. Which of the following is not true about the use of Semaphore with no busy waiting?
*a. While a process is in its critical section, any other process that tries to enter its critical section must
loop continuously in the entry code.
b. While a process is in its critical section, any other process that tries to enter its critical section must be
switch it self to the waiting state.
c. A blocked process should be restarted when some other process executes a signal() operation.
d. The process is restarted by a wakeup() operation and then placed in the ready queue.
179. Which of the following operation are applicable when using semaphore with busy waiting?
a. block() & signal() operations c. block() & wakeup() operations
b. block(), wait(), signal() operations *d. wait() &signal() operations
180. Which of the following is not a software solution for achieving mutual exclusion?
a. Peterson's solution *c. Semaphore
183. If two friends have argued and both have sworn not to talk to the other until an apology has been
received, we have an example of:
a. starvation
b. saturation
c. interrupt
* d. deadlock
184. Four conditions must be present simultaneously in a system for deadlock to occur. They are:
a. mutual exclusion, resource holding, request, use
b. mutual exclusion, resource holding, release, circular wait
* c. mutual exclusion, resource holding, no preemption, circular wait
d. mutual exclusion, resource holding. no preemption, use
185. Of the four necessary conditions for deadlock, the one that we do not want to break because we
specifically want to allow dedicated resources is:
a. mutual exclusion
b. hold and wait
* c. no preemption
d. circular wait
186. When you insure that at least one of the conditions for deadlocks does not hold, you are -------------
* a. preventing deadlocks
b. avoiding deadlocks
c. detecting deadlocks
d. recovering from deadlocks
187. The following system has a total of 12 tape drives allocated like this.
User # Already Has Max Need
1 8 10
2 3 5
It is in a…
a. safe state
* b. unsafe state
188. The following table shows a system in a safe state. The system has a total of 12 tape drives.
User # Already Has Max Need
1 1 4
2 4 6
3 5 7
189. Use the following information to answer the next 2 questions. Consider a computing system with 12
tape drives. All jobs running on this system require a maximum of 4 tape drives to complete but they
each run for long periods of time with just 3 drives and request the fourth one only as the very end of
the run. The job stream is endless. Your operating system supports the Banker’s Algorithm.
2. What is the maximum number of tape drives that may be idle as a result of the policy?
* a. 0
b. 1
c. 2
d. 3
190. When two or more processes can access and modify the same data area so that the final result
depends on which process finishes last, we have what kind of problem?
a. deadly embrace
b. deadlock
c. deadbolt
* d. race
193. A hamburger stand where the cook places hamburgers in the "hamburger bin" and the bagger
retrieves the hamburgers to satisfy incoming orders is an example of
a. readers/writers problem
b. dining philosophers problem
* c. producer/consumer problem
d. none of the above
194. An airline reservation system where there are many inquiries but few reservations made is an example
of
* a. readers/writers problem
b. dining philosophers problem
c. producer/consumer problem
d. none of the above
195. Consider a bakery where customers take a number and servers press a button to show the next number
to be served. We can stipulate that when a server is pressing the button no other server is allowed to
press the button until the number showing is served, otherwise a number might be missed. We can
then say that while the server is pushing the button he/she is in
a. a race
b. a deadlock
* c. a critical section
d. a circular wait
196. In the above example, if we enforce the rule "only one server can press the button until the number
showing is served," we are enforcing
* a. mutual exclusion
b. linking
c. starvation
d. indefinite postponement
200. Given the following diagram, where P5 has been allocated resource R5 that is being requested by
process P6 which has been allocated resource R4 that is being requested by process P5:
R4
P5 P6
R5
201. Use the following directed resource graph to answer the next 2 questions. P represents processes and
R represents resources. Arrows going from a process to a resource indicate a request. Arrows going
from a resource to a process indicate an allocation.
P1
R1 0 0 0 0 R2
P2
P3
R3 0 0 R4
P4
202. A monitor
Alzaytoonah University – Faculty of Science and IT- Computer Science Departmen 22
Operating Systems Q&A Dr. Jamal Mohammad Khalifeh 2016
a. contains data and procedures needed to perform allocation of a particular shared resource
b. enforces mutual exclusion at its boundaries to allow only one process to enter at a time
c. does not allow outside access to the data contained within its boundaries
* d. all of the above
Memory Management
203. Which of the following describes the first memory allocation scheme?
a. Each program to be processed was loaded into secondary storage, then swapped into memory
in parts
b. Each program to be processed was partially loaded into memory, then granted more memory
as needed
c. Each program to be processed was allocated a portion of memory and could negotiate with
other programs to access more memory
*d. Each program to be processed was loaded in its entirety into memory and allocated as much
contiguous space in memory as it needed
204. How are jobs processed in a single-user system?
*a. sequentially c. randomly
b. intermittently d. the longest job is processed first
205. Consider the following algorithm. Which of the following choices should replace the * in Step 6?
I. Store first memory location of program into base register (for memory protection)
II. Set program counter (it keeps track of memory space used by the program) equal to address of first
memory location
III. Read first instruction of program
IV. Increment program counter by number of bytes in instruction
V. Has the last instruction been reached?
if yes, then stop loading program
if no, then continue with step VI
VI. Is program counter greater than memory size?
if yes, then stop loading program
if no,--------- *------------
VII. Load instruction in memory
VIII. Read next instruction of program
IX. Go to step IV
a. then continue with step IV c. then continue with step VI
b. then continue with step V *d. then continue with step VII
Blocks:
B1 30K
B2 15K
B3 50K
B4 20K
a. J1 *c. J3
b. J2 d. J4
214. Consider the following space requirements for jobs 1-4 and memory blocks. Assuming a best-fit
scheme is used, which job is placed in the last block?
Jobs:
J1 10K
J2 20K
J3 30K
J4 10K
Blocks:
B1 30K
B2 15K
B3 50K
B4 20K
a. J1 c. J3
*b. J2 d. J4
215. The following algorithm can be described as -------------.
I. Set counter to 1
II. Do while counter <= number of blocks in memory
If job_size > memory_size(counter)
Then counter = counter + 1
231. A static partitioned memory management system has a total of six partitions. If one is allocated to the
operating system, this will allow a total of
* a. five user jobs
b. six user jobs
c. (25) user jobs
d. (25) user jobs
232. Consider the case where the Free Memory Storage List is kept in ascending order by partition size.
The attempt to place a job in the smallest free partition in which it will fit is called:
a. First Fit
* b. Best Fit
c. Worst Fit
d. No Fit
233. Consider the case where the Free Memory Storage List is kept in order by memory address
(regardless of the partition size). The attempt to place a job in the first free block in which it will fit is
called:
* a. First Fit
b. Best Fit
c. Worst Fit
d. No Fit
235. Given the following dynamic partition allocation tables, respond to the next 3 questions.
1. If a job comes into the system requiring 8K of main memory, using a First Fit allocation
scheme, it will be given space from the free area of size:
* a. 32K
b. 520K
c. 352K
d. 504K
3. If the jobs currently running in the first two partitions finish before a new job arrives, the
free table will be augmented by a space that is of size (assume compaction)?
a. 8K
b. 24K
c. 32K
* d. 40K
e. 632K
237. A difficulty of all relocatable partitioning schemes, regardless of addressing mechanism is:
a. the difficulty of distinguishing number representing addresses from numbers representing
arithmetic values
* b. the overhead involved in moving program instructions and data to new locations
c. all the above
c. none of the above
238. Use the following description of main memory to answer the next 3 questions.
0
Operating System
Program A
Program B
Waste 10K
Program C
Waste 12K
Program D
640K
Job 1, size: 8 K
Empty, s ize: 12 K
Job 4, size: 32 K
– sFaculty
Empty,
Alzaytoonah University ize: 20 K of Science and IT- Computer Science Departmen 29
Job 2, size: 16 K
Operating Systems Q&A Dr. Jamal Mohammad Khalifeh 2016
1. After compaction occurs and Job 4 is relocated so that it is adjacent to Job 1, what will be
the contents of its Relocation register?
a. 12,288
b. 18,432
* c. –12,288
d. – 18,432
2. After compaction, what is the new starting memory location for Job 4?
a. 12,288
* b. 18,432
c. –12,288
d. –18,432
3. Given that before relocation, one of the instructions of Job 4: LOAD 4, 53248 started at
memory location 31,744, indicate at what memory location will the instruction start after
relocation?
a. 18,432
* b. 19,456
c. 31,744
d. 40,960
Virtual Memory
241. What is the primary advantage of storing programs in noncontiguous locations?
a. multiple programs can run at the same time
b. every program will be able to run
c. secondary storage is accessed more quickly
*d. main memory is used more efficiently
242. How many entries per page are there in the PMT?
a. 0 c. 2
*b. 1 d. 5
243. If the page size is 100 lines, what is the displacement for line 214?
a. 0.5 *c. 14
b. 2 d. 21400
244. Assume that the Page Map Table below is in effect. The number of lines per page is 400. What is the
actual memory location for line 433?
265. Given a paged memory allocation scheme where each block size is of 512 words and page numbering
starts at 0, address 712 in a program will translate into:
a. page 0, offset 200
b. page 200, offset 0
* c. page 1, offset 200
d. page 200, offset 1
268. Use the following page tables (with pages of 512 lines), to answer the next 2 questions.
JOB A
Page Number Page Frame Number
0 7
1 5
2 4
JOB B
Page Number Page Frame Number
0 3
1 9
269. Use the following diagram of main memory, and the fact that demand paging is used, to answer the
next 3 questions.
MEMORY MAP TABLE
3. Assuming that none of the pages in main memory can be removed, how many more jobs
could be started?
a. 1
b. 2
* c. 3
d.4
272. • The use of the reference bit is most useful in systems implementing paging with a:
a. FIFO algorithm
* b. LRU algorithm
c. none of the above
273. • Use the following address configuration and diagram to answer the next 5 questions.
Code for Status Bit: 1 means “in memory,” 0 means “not in memory”
1. How many segments make up the Operating System (based on the above information)?
a. 0
* b. 1
c. 6
d. 7
2. How many pages make up the Operating System (based on the above information)?
a. 0
b. 1
c. 6
* d. 7
274. Use the following representation of an addressing scheme (not drawn to scale) to answer the next 3
questions.
24 bits
not used in segment number page number bytes number
addressing
0 7,8 15,16 19,20 31
275. Use the following FIFO trace analysis to answer the next 4 questions:
F = 9 F ratio = 9/12 = 75%
Time: 1 2 3 4 5 6 7 8 9 10 11 12
Page # 4 3 2 1 4 3 5 4 3 2 1 5
Page Fault
Contents of 4 4 4 1 1 1 5 5 5 5 5 5
P.Frame 1
Contents of 3 3 3 4 4 4 4 4 2 2 2
P.Frame 2
Contents of 2 2 2 3 3 3 3 3 1 1
P.Frame 3
3. At the end of time period 3, the next page to be swapped out is:
a. 1
b. 2
c. 3
* d. 4
277. The purpose of the modified bit (dirty bit) in a paging system is to:
a. determine whether a page not in memory must be read into memory during a page swap
b. determine whether a page not in memory must be written to secondary storage during a page
swap
c. determine whether a page in memory must be read into memory during a page swap
* d. determine whether a page in memory must be written to secondary storage during a page swap
281. Virtual memory is the separation of user logical memory from physical memory and it is commonly
implemented by demand paging. Some of its advantages are:
a. thrashing
b. giving the programmer the illusion of having access to an unlimited amount of memory, therefore
there are no limits on program sizes
282. Using segmentation and paging at the same time gives greater flexibility to memory allocation.
However this scheme increases the amount of time spent in dynamic address translation because…
a. main memory is divided into too many pieces
b. the address must be divided into three pieces
c. two tables are being used
* d. both b and c
285. The group of pages currently needed by a process to get its job done is called the:
a. page frame set
* b. working set
c. virtual set
d. none of the above
290. To access a record in a movable head disk, the following information is needed
* a. cylinder number, track number, record number
b. track number, record number
c. record number
d. none of the above
292. Given that a block can hold 1600 bytes and that a track can hold 17600 bytes, how many blocks can
be stored in that track?
a. 10
* b. 11
c. 9
d. none of the above
293. To access a record in a fixed head drum, the following information is needed:
a. cylinder number, track number, record number
* b. track number, record number
c. record number
d. none of the above
296. Use the following information and diagram to answer the next 3 questions:
Queue of track requests: 98, 183, 37, 122, 14, 124, 65, 67. The read/write head starts at track 53.
0
0
0
0
0
0
0
0
0
3. If a stream of requests clustered about track 14 occurs while servicing that track, then we
have the possibility of ------------- for the requests following track 14 in the original list
a. deadlock
b. race
* c. indefinite postponement
d. immediate service
297. A disk scheduling policy where the arm sweeps back and forth across the disk surface servicing all
requests in its path, and changes direction only when there are no more requests to service in the
current direction is called
a. FCFS
b. SSTF
* c. LOOK
d. none of the above
298. A disk scheduling policy that services requests according to their proximity to the last request, that is,
the next request serviced is the closest to the last request regardless of the direction in which the arm
was moving is called
a. FCFS
* b. SSTF
300. Given that scanning goes from cylinder 0 through cylinder 99, how would you re-order the following
requests if your goal is to optimize seek time?
Request 1: cylinder 2, track 5
Request 2: cylinder 50, track 1
Request 3: cylinder 32, track 3
301. On a disk with 8 records per track, where the records are numbered from 0 to 7, and where the file is
stored starting at track 0, record 14 will be found on:
a. track 0
* b. track 1
c. track 2
Distributed Systems
304. All of the following are advantages of distributed systems over centralized systems except
a. some applications involve the use of separate computers
*b. computing power cannot be added in small increments
c. if one computer crashes then the system as a whole can still survive
d. a distributed system may have more total computing power than a mainframe
305. Which of the following are disadvantages of distributed systems over centralized systems
a. the network can become saturated
306. Which environment considers memory, process, device and file management from a global
viewpoint?
* a. Distributed Operating System (DO/S)
b. Network Operating System (NOS)
c. Multiprogramming Operating System (MOS)
d. none of the above
307. In which environment is each node managed by its own local operating system?
a. Distributed Operating System (DO/S)
* b. Network Operating System (NOS)
c. Multiprogramming Operating System (MOS)
d. none of the above
310. In a distributed system, deadlock detection is ------------- than in a single processor system because
relevant information ------------- scattered over many computers
a. easier, is not
b. easier, is
c. harder, is not
* d. harder, is
313. A is a collection of independent computers that appear to the users of the system as a single
computer
* a. distributed system
b. centralized system
c. incremental system
d. economic system
316. In a client-server model a computer program is divided into two parts. The client program
a. usually runs on the desktop computer
b. is responsible for all interaction with the user
c. interaction can be through menus or graphical user interfaces
*d. all of the above
317. A network that’s congested or has filled a large percentage of its I/O buffer space can become
deadlocked if it doesn’t have ------------- to control the flow of messages through the network.
a procedures c. policies
*b. protocols d. rules