Professional Documents
Culture Documents
Stationery:
1 A calculator may be used
INSTRUCTIONS:
Page 1 of 5
SECTION A: TRUE / FALSE QUESTIONS
1. The operating system manages each and every piece of hardware and software. T
2. The Device Manager is responsible for connecting with every device that’s available on the system and for
choosing the most efficient way to allocate them. T
3. The Memory Manager is in charge of main memory, widely known as ROM. F
4. The Memory Manager, the Interface Manager, the User Manager, and the File Manager are the four
essential managers of every major operating system. F
5. The content of a random access memory (RAM) chip is nonvolatile, meaning that it is not erased when the
power is turned off. F
6. There are two primary types of user interfaces: the graphical user interface and the command line interface
T
7. A single-user system supports multiprogramming. F
8. Single-user contiguous allocation schemes have the problem of partition intrusion. F
9. The fixed partition scheme does not require that the entire program be stored contiguously and in memory
from the beginning to the end of its execution.F
10. In the relocatable dynamic partitions scheme, the Memory Manager relocates programs to gather together
all of the empty blocks and compact them to make one block of memory large enough to accommodate
some or all of the jobs waiting to get in.T
a. static
b. direct
c. sized
d. complete
2. The release of memory space by the Memory Manager is called ____.
a. free memory
b. fragmentation
c. deallocation
d. relocation
3. ____ of memory is performed by the operating system to reclaim fragmented sections of the memory
space.
a. Deallocation
b. Redirection
c. Compaction
d. Reallocation
Page 2 of 5
4. In a relocatable dynamic partition scheme, the ____ ensures that, during execution, a program won’t try to
access memory locations that don’t belong to it.
a. relocation register
b. compaction register
c. bounds register
d. load register
10. The primary advantage of storing programs in noncontiguous locations is that ____.
a. every program will be able to run
b. multiple programs can run at the same time
c. main memory is used more efficiently
d. secondary storage is accessed more quickly
Page 3 of 5
SECTION C: Short Answer Questions (30)
1. Given the following configuration with jobs arriving the order A, B, C and D and with blocks shown in order
from low-order memory to high-order memory:
(a) Use the best-fit algorithm to indicate which memory blocks are allocated to each of the arriving jobs (4)
Job Allocated to Block Internal Fragmentation COMMENTS
JOB A BLOCK 4 300 – 256 = 44
JOB B BLOCK 2 900 – 900 = 0
JOB C BLOCK 3 200 – 50 = 150
JOB D BLOCK 1 910 – 350 = 560
TOTAL = 754
(b) Use the first-fit algorithm to indicate which memory blocks are allocated to each of the arriving jobs (4)
Job Allocated to Block Internal Fragmentation COMMENTS
JOB A BLOCK 1 910 – 256 = 654
JOB B BLOCK 2 900 – 900 = 0
JOB C BLOCK 3 200 – 50 = 150
JOB D No block big enough 0 Job D waits
TOTAL = 804
(c) Calculate the total amount of internal fragmentation in all four blocks using the best-fit algorithm. (4)
See (a) above
(d) Calculate the total amount of internal fragmentation in all four block using the first-fit algorithm (4)
See (b) above
2. Consider a job of 715 bytes that arrives for processing using a page size of 126 bytes. How many bytes
would be loaded onto the last page of this job and what would the number of that page be? (2)
Page 4 of 5
No of Pages = Job Size / Page Size = 715/126 = 5 remainder 85
Therefore Job needs 6 pages (5 full pages, last page holds 85 bytes).
Pages named from 0, last page = 5
3. Given that main memory is composed of only THREE page frames for public use (F1, F2 and F3), and that a
SEVEN page program (with pages a, b, c, d, e, f, g) requests pages in the following order: a,b,c,b,d,a,e,f,b,e
answer the following questions
(a) Using the FIFO page removal algorithm, indicate the movement of the pages into and out of the
available page frames (called a page trace analysis), indicating each page fault with an asterisk (*). (10)
End of Test
Page 5 of 5