๐Ÿ’พ CS330: Operating Systems

Chapter 8: Memory Management - Comprehensive Exam

โฑ๏ธ Duration: 90 minutes
๐Ÿ“Š Total Marks: 50
๐Ÿ“ Questions: 15
Section 1: Multiple Choice Questions (20 Marks)
Question 1 Past Exam 2 Marks
What is the primary purpose of using a magnetic disk in a computer system by the operating system?
Question 2 Past Exam 2 Marks
What is a common challenge addressed by both paging and segmentation in memory management?
Question 3 Past Exam 2 Marks
In a computer system, which component ensures that a process cannot access memory beyond its allocated boundaries?
Question 4 Past Exam 2 Marks
What does the physical address space represent in the context of operating systems?
Question 5 Past Exam 2 Marks
In which aspect do paging and segmentation differ?
Question 6 Past Exam 2 Marks
How does paging handle memory allocation compared to segmentation?
Question 7 Past Exam 2 Marks
What is the primary advantage of using paging in memory management?
Question 8 Past Exam 2 Marks
What is the function of the page table in paging?
Question 9 Past Exam 2 Marks
Which of the following is true about external fragmentation?
Question 10 Past Exam 2 Marks
What is the difference between internal and external fragmentation?
Section 2: Short Answer Questions (18 Marks)
Question 11 Past Exam 4 Marks
Name two differences between logical and physical addresses. Explain each difference clearly.
Question 12 Past Exam 5 Marks
What are the dis-advantages of contiguous allocation scheme of disk blocks? List and explain at least three disadvantages.
Question 13 5 Marks
Explain the concept of segmentation in memory management. What is the main problem that segmentation addresses, and what is its disadvantage?
Question 14 4 Marks
What is a Translation Lookaside Buffer (TLB)? Why is it needed in paging systems, and how does it improve system performance?
Section 3: Problem Solving (12 Marks)
Question 15 Past Exam 12 Marks

Consider a logical address space of 256 pages with a 4-KB page size, mapped onto a physical memory of 64 frames.

a) How many bits are required in the logical address? (4 marks)

b) How many bits are required in the physical address? (4 marks)

c) If the logical address is 5000 (decimal), what is the page number and page offset? (4 marks)

Show all your calculations and explain your reasoning.