Operating System MCQs with Answers
Practice important Operating System MCQs with answers and explanations.
Chapter: 33
Q901:
The size of the page table entry (PTE) depends on the number of ______.
A. pages
B. frames
C. bits in the address
D. frames in memory
Correct Answer:
C
Chapter: 33
Q902:
The performance of paging depends on the ______.
A. effective memory access time
B. page table size
C. number of pages
D. size of logical address space
Correct Answer:
A
Chapter: 33
Q903:
The number of bits needed for the frame number in a PDP-11 is ______.
A. 3
B. 5
C. 12
D. 16
Correct Answer:
A
Chapter: 33
Q904:
The effective memory access time in paging is given by the formula ______.
A. Teffective = HR * Tmem
B. Teffective = HR * (Tmem + TTLB)
C. Teffective = Tmem + TTLB
D. Teffective = HR * (Tmem + TTLB) + MR * (Tmem + 2*Tmem)
Correct Answer:
D
Chapter: 33
Q905:
The TLB is used to store ______ pairs in a paging system.
A. (p, d)
B. (f, d)
C. (p, f)
D. (p, p)
Correct Answer:
C
Chapter: 33
Q906:
A hit in the TLB means that ______.
A. the address is found in the page table
B. the page is found in memory
C. the page number is found in the TLB
D. the frame number is found in the main memory
Correct Answer:
C
Chapter: 33
Q907:
In paging, the effective memory access time on a miss is ______.
A. 2Tmem + TTLB
B. Tmem + 2Tmem
C. 2Tmem + 2Tmem
D. Tmem + TTLB
Correct Answer:
B
Chapter: 33
Q908:
The hit ratio in a paging system indicates ______.
A. the likelihood of accessing the TLB
B. the page fault rate
C. the number of TLB entries
D. the memory access time
Correct Answer:
A
Chapter: 33
Q909:
The physical address in a paging system is made up of ______.
A. frame number and page offset
B. page number and frame number
C. page number and page offset
D. frame number and logical address
Correct Answer:
A
Chapter: 33
Q910:
In Intel P4, the number of bits needed for the frame is ______.
A. 12
B. 10
C. 5
D. 8
Correct Answer:
C
Chapter: 33
Q911:
The translation look-aside buffer (TLB) improves paging performance by ______.
A. reducing memory access time
B. increasing the number of entries
C. reducing page faults
D. reducing frame size
Correct Answer:
A
Chapter: 33
Q912:
The number of frames in memory can be calculated by the formula ______.
A. Physical memory / page size
B. Number of bits in address / page size
C. Number of pages * page size
D. Physical address size / page size
Correct Answer:
A
Chapter: 33
Q913:
In a paging system, the page size is determined by the ______.
A. operating system
B. CPU hardware
C. user configuration
D. application
Correct Answer:
B
Chapter: 33
Q914:
The number of bits needed for the page number in a logical address space with 16 pages is ______.
A. 4 bits
B. 3 bits
C. 5 bits
D. 6 bits
Correct Answer:
A
Chapter: 33
Q915:
The number of frames in physical memory can be calculated by ______.
A. dividing the physical memory size by the frame size
B. multiplying the number of pages by frame size
C. dividing the logical address size by the frame size
D. calculating the TLB hit ratio
Correct Answer:
A
Chapter: 34
Q916:
What is the primary protection scheme in paging used for?
A. Guards against unauthorized memory access
B. Optimizes memory usage
C. Increases system performance
D. Decreases memory space
Correct Answer:
A
Chapter: 34
Q917:
What does the valid/invalid (v) bit in a page table indicate?
A. Whether the page belongs to the process address space
B. Whether the page is read-only
C. Whether the page is writable
D. Whether the page is in physical memory
Correct Answer:
A
Chapter: 34
Q918:
If a process tries to access a page marked as invalid, what happens?
A. A hardware trap is triggered
B. The page is automatically loaded into memory
C. The operating system gives a warning
D. The process continues without issues
Correct Answer:
A
Chapter: 34
Q919:
Which of the following can be used to define protection levels for a page in memory?
A. Read, write, and execute bits
B. Valid-invalid bit
C. Page table entry bit
D. Physical address
Correct Answer:
A
Chapter: 34
Q920:
What is the role of the page table in memory access?
A. Maps virtual addresses to physical addresses
B. Stores program code
C. Stores data for quick access
D. Ensures data is read-only
Correct Answer:
A