Computer Science Engineering (CSE) Exam  >  Computer Science Engineering (CSE) Tests  >  Operating System  >  Test: Paging - Computer Science Engineering (CSE) MCQ

Test: Paging - Computer Science Engineering (CSE) MCQ


Test Description

10 Questions MCQ Test Operating System - Test: Paging

Test: Paging for Computer Science Engineering (CSE) 2024 is part of Operating System preparation. The Test: Paging questions and answers have been prepared according to the Computer Science Engineering (CSE) exam syllabus.The Test: Paging MCQs are made for Computer Science Engineering (CSE) 2024 Exam. Find important definitions, questions, notes, meanings, examples, exercises, MCQs and online tests for Test: Paging below.
Solutions of Test: Paging questions in English are available as part of our Operating System for Computer Science Engineering (CSE) & Test: Paging solutions in Hindi for Operating System course. Download more important topics, notes, lectures and mock test series for Computer Science Engineering (CSE) Exam by signing up for free. Attempt Test: Paging | 10 questions in 30 minutes | Mock test for Computer Science Engineering (CSE) preparation | Free important questions MCQ to study Operating System for Computer Science Engineering (CSE) Exam | Download free PDF with solutions
Test: Paging - Question 1

Which of the following technique is not implemented for free space management

Detailed Solution for Test: Paging - Question 1

Concept:
Free space management:

For the purpose of assigning space to newly generated files, the system maintains track of the free disc blocks. Additionally, managing free space becomes essential in order to utilize the space made available by removing the files. The disc blocks that are not assigned to any files or directories are tracked by the system in a list called free space.

Free space management is implemented mainly as:

  • Bitmap or Bit vector
  • Linked List
  • Grouping
  • Counting
  • Space Maps

Paging is a memory management strategy that avoids the necessity for contiguous physical memory allocation. This approach allows a process's physical address space to be non-contiguous.
Hence the correct answer is Paging.

Test: Paging - Question 2

Which of the following is not a contiguous memory management technique?

Detailed Solution for Test: Paging - Question 2

Concept:
Contiguous memory management:

A traditional memory allocation model is contiguous memory allocation. In this case, a system gives a process access to successive memory blocks, or memory blocks with consecutive addresses. One of the earliest types of memory allocation is contiguous memory allocation.

There are three types of contiguous memory management:

  • Over lays
  • Partition
  • Buddy system

Paging is a non-contiguous memory allocation technique that divides secondary and main memory into equal-size divisions. Secondary memory partitions are referred to as pages, whilst major memory partitions are referred to as frames.
Hence the correct answer is Paging.

1 Crore+ students have signed up on EduRev. Have you? Download the App
Test: Paging - Question 3

Consider a system that has 4K pages of 512 bytes in size in the logical address space. The number of bits of logical address?

Detailed Solution for Test: Paging - Question 3

Concept:
The given data,
Number of pages = 4 K
Page size PS = 512 B = 29 Bytes
Number of pages = Logical address space / Page size
Logical address space = Number of pages X  Page size
Logical address space = 4 K X 29 Bytes
Logical address space = 212 X 29 Bytes
Logical address space = 221 Bytes
Logical address bits  or Virtual address bits = 21
Hence the correct answer is 21.

Test: Paging - Question 4

Consider the following statements:
S1: A small page size causes large page tables.
S2: Internal fragmentation is increased with small pages.
S3: I/O transfers are more efficient with large pages.
Which of the following is true?

Detailed Solution for Test: Paging - Question 4

Concept:
Paging is a memory management scheme. Paging reduces the external fragmentation. Size of the page table depends upon the number of entries in the table and bytes stored in one entry.

S1: A small page size causes large page tables.
This statement is correct. Smaller page size means more pages required per process. It means large page tables are needed.

S2: internal fragmentation is increased with small pages.
Internal fragmentation means when process size is smaller than the available space. When pages are small, then available space becomes less and there will be less chances of internal fragmentation.

S3: I/O transfers are more efficient with large pages.
An I/O system is required to take an application I/O request and send it to the physical device. Transferring of I/O requests are more efficient with large pages. So, given statement is correct.

Test: Paging - Question 5

What is the size of the physical address space in a paging system which has a page table containing 64 entries of 11 bit each (including valid/invalid bit) and a page size of 512 bytes?

Detailed Solution for Test: Paging - Question 5

Data
page table entries = 64
page table entry size = 11 bit
page size = 512 bytes

Formula:
Size of physical address = pagging bits + offset bits

Calculation:
paging bits = 11 - 1 = 10(as 1 valid bit is also included)
offset bits = log2 (512) = 9 bits
size of physical address = 10 + 9 = 19 bits
Hence the correct answer is 219.

*Answer can only contain numeric values
Test: Paging - Question 6

A computer system implements 8-kilobyte pages and a 32 - bit physical address space. Each page table entry contains a valid bit, a dirty bit, three permission bits, and the translation. If the maximum size of the page table of a process is 24 megabytes, the length of the virtual address supported by the system is ________ bits.


Detailed Solution for Test: Paging - Question 6

Page size = 213 Bytes = Frame size

Hence in the page table:

= 8 × 220 = 223
Hence all entries can be addressed by 23 bits.
Thus total size of virtual address = 23 + 13
= 36 bits.

Test: Paging - Question 7

A computer uses 46-bit virtual address, 32-bit physical address, and a three-level paged page table organization. The page table base register stores the base address of the first-level table (T1), which occupies exactly one page. Each entry of T1 stores the base address of a page of the second-level table (T2). Each entry of T2 stores the base address of a page of the third-level table (T3). Each entry of T3 stores a page table entry (PTE). The PTE is 32 bits in size. The processor used in the computer has a 1 MB 16-way set associative virtually indexed physically tagged cache. The cache block size is 64 bytes.

What is the size of a page in KB in this computer?

Detailed Solution for Test: Paging - Question 7

Concept:
To minimize the need for contiguous allocation of physical memory, paging is used.
Logical address space or virtual address space is the set of all logical addresses generated by the program.
Physical addresses are the actual addresses available in memory.
Physical address space is the set of all physical addresses generated by the program.
Mapping of the virtual address to physical address is done by hardware device i.e. Memory Management Unit (MMU) & is called paging technique.
Physical Address space is divided into fixed-size no. of blocks called frames.
The logical address space is divided into fixed-size no. of blocks called pages.

Calculation:
Page table entry size = 32 bits or 4 Bytes
No. of entries in one page = 2p/4  
VAS = 46 bits
Consider size of page = 2p Bytes
Virtual address space (VAS) = No. of entries x page size
No. of entries for one level Page table (PT) = 2p ×4
Therefore, for 3 levels PT  

246 x 26 = 24p
252 = 24p
52 = 4p
P = 13
So, the page size is 213 or 8KB.
Hence, the correct answer is “option 3”.

*Answer can only contain numeric values
Test: Paging - Question 8

Consider a system with byte-addressable memory, 32-bit logical addresses, 4 kilobyte page size and page table entries of 4 bytes each. The size of the page table in the system in megabytes is _______.


Detailed Solution for Test: Paging - Question 8

Data
1 word (W) = 1 byte (B)
Logical address = 232 B
page size = 4 KB = 212 B
page table entry (PTE) = y B

Formula:
Page table size (PTS) = number of pages × y

Calculation:
number of pages = 232/212  = 220   
Page table size (PTS) = number of pages × y
PTS = 220 × 4B
∴ PTS = 4 MB
Important points
1 MB = 220 B
where B stands for byte

Test: Paging - Question 9

Consider a paging system with a page size of 4 KB. If a process of size 38 KB is in logical address space, find the internal fragmentation in Kbytes.

Detailed Solution for Test: Paging - Question 9

Concept:
Internal fragmentation:

Internal fragmentation occurs when memory is divided into fixed-sized blocks. Internal fragmentation occurs when the memory assigned to the process is somewhat larger than the memory requested.

The given data,
Size of page = 4 KB
Size of process = 38 KB
The number of pages required by process = (38 KB)/(4 KB) = 9.5 
So, the number of pages required by the process is 10.
But required = 38 KB
Here 10 x 4 = 40 KB 
40 – 38 = 2 KB is the internal fragmentation.
Hence the correct answer is 2.

Test: Paging - Question 10

A machine has 64-bit virtual addresses and 48-bit physical addresses. Pages are 16K. How many entries are needed for a conventional page table? 

Detailed Solution for Test: Paging - Question 10

Concept:
The given data,
Logical address space = 264 Bytes.
Physical address space = 248 Bytes.
Page size PS = 16 K = 24 x 210 B = 214 Bytes.
Number of pages = Logical address space / Page size 
Number of pages = 264 / 214 
Number of pages = 250

The page table entry is the number number of bits required to get any frame number.
Number of frames = Physical address space / Page size 
Number of frames = 248 /  214 
Number of frames = 234
Hence the correct answer is 234.

10 videos|99 docs|33 tests
Information about Test: Paging Page
In this test you can find the Exam questions for Test: Paging solved & explained in the simplest way possible. Besides giving Questions and answers for Test: Paging, EduRev gives you an ample number of Online tests for practice

Top Courses for Computer Science Engineering (CSE)

10 videos|99 docs|33 tests
Download as PDF

Top Courses for Computer Science Engineering (CSE)