Exercise 1 Flashcards
What is physical memory usually represented as?
An array of bytes
Which data structure best represents the chess board?
Array
Which data structure best stores printing job in printers?
Queue
What are we advocating as software engineering process model in CSD2181/2183?
Test-Driven Development
IF speed is important to me when randomly picking an item from a collection, which implementation should I use?
Array
How do we exploit the locality of reference principle when we design code (multiple answers)?
- Keep subsequent data accessed close to each other in memory.
- Allocate and self-manage contiguous memory of our program.
- If the same data is accessed frequently, keep it in a cache that has high-speed access but smaller storage.
In a binary buddy sytem, what happens when a request is made and its size is less than the initial block but greater than half of it?
The entire block is allocated.
If the total size of free blocks is larger than the size of requested memory, then there will be no “out of memory” error.
False.
Which of the following best reduces internal fragmentation?
Use variable block sizes