Internal vs External Fragmentation — Concept Check
Questions on Internal vs External Fragmentation. Internal fragmentation is wasted space inside an allocated block; external fragmentation is free memory that exists but is too scattered to satisfy large allocation requests.
Questions in this quiz
7 questions on Internal vs External Fragmentation — Concept Check. Work through them here, then start the quiz to answer them and see your score.
1.A process requests 3000 bytes, but the allocator provides a 4 KB block. What type of fragmentation occurs?
- ABoth internal and external fragmentation
- BInternal fragmentation
- CExternal fragmentation
- DNo fragmentation
2.A system has 100 MB of free memory scattered in small chunks. A request for 50 MB fails. What is the issue?
- AInsufficient total memory
- BExternal fragmentation
- CInternal fragmentation
- DMemory leak
3.Which memory management technique inherently causes internal fragmentation?
- APaging
- BCompaction
- CCoalescing
- DSegmentation
4.In a Java application using G1GC, what happens to the old generation during compaction?
- AOld generation is not compacted
- BMemory is freed without moving objects
- CLive objects are relocated to pack regions
- DObjects are left in their original locations
5.A developer notices frequent 'promotion failures' in a Java application using CMS. What is likely happening?
- AExternal fragmentation in the old generation
- BInsufficient heap size
- CExcessive object allocation rate
- DInternal fragmentation in the young generation
6.A process requests 10 KB, but only 8 KB is available in contiguous memory. What type of fragmentation is this?
- AExternal fragmentation
- BNo fragmentation
- CInternal fragmentation
- DBoth internal and external fragmentation
7.What is a common solution to reduce external fragmentation in memory management?
- ACompaction
- BUsing larger memory blocks
- CIncreasing page size
- DReducing allocation requests