Question 1
EasyIn paging, how are logical and physical memory divided?
- A.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Operating Systems
In paging, how are logical and physical memory divided?
Into one block each
Both into segments of different sizes
Logical memory into frames and physical memory into pages of different sizes
Logical memory into pages and physical memory into frames of the same size
Answer: D
Pages and frames are the same size, so any page can be placed in any free frame.
Which problem does paging eliminate?
Thrashing
Page faults
Internal fragmentation
External fragmentation
Answer: D
Any free frame can hold any page, so free memory never has to be contiguous. Some internal fragmentation remains in the last page.
What does a page table map?
Frame numbers to disk blocks
Process IDs to priorities
Page numbers to frame numbers
File names to inodes
Answer: C
Each entry gives the frame where a page is stored, plus bits such as valid, dirty and protection.
What is a TLB (translation lookaside buffer)?
A small, fast cache of recent page-table entries
A list of free frames
A part of the hard disk
A type of file system
Answer: A
On a TLB hit, the frame number is found without reading the page table from memory.
How does segmentation divide a program?
Into fixed-size pages
Into logical units such as code, data and stack, of varying sizes
Into disk blocks
Into equal-size frames
Answer: B
Segmentation matches the programmer's view: each segment has its own base and limit.
With a page size of 4 KB, how many bits of an address are used for the offset?
12
10
4
32
Answer: A
4 KB = 2¹² bytes, so 12 bits address a byte within a page.
In paging, a logical address is split into which two parts?
Base and limit
Track and sector
Segment and frame
Page number and offset
Answer: D
The page number indexes the page table; the offset is added to the frame's start address.
In paging, what is a frame?
A segment of the disk
A fixed-size block of physical memory
A window on the screen
A block of the program's logical memory
Answer: B
Physical memory is divided into frames; logical memory into pages of the same size.
In paging, what is a page?
A sheet of printed output
A disk partition
A block of physical memory
A fixed-size block of a process's logical address space
Answer: D
Pages are loaded into frames, which have exactly the same size.
How do the page size and the frame size compare in a paging system?
They are unrelated
Pages are always bigger
They are always equal
Frames are always twice as big
Answer: C
Any page must fit exactly into any frame, so the sizes are equal.