COP4600 UPDATED TEST PAPER QUESTIONS AND
ANSWERS GRADED A+
✔✔paging systems - ✔✔do not suffer from external fragmentation
✔✔Since the introduction of virtual memory, most application programs have direct
access to physical addresses. - ✔✔False
✔✔Virtual addresses are absolute addresses that directly point to actual physical
locations without the need for translation by the hardware and the operating system. -
✔✔False
✔✔Virtual addresses in modern systems point to memory spaces that are smaller than
the physical memory. - ✔✔False
✔✔A physical address represents an absolute location on a memory chip. - ✔✔True
✔✔Segmentation or Paging
Breaks up process into variable-size components which the OS swaps in and out. -
✔✔Segmentation
✔✔Segmentation or Paging
Breaks up memory space into evenly sized chunks, which are dynamically loaded in
and out of physical memory. - ✔✔Paging
✔✔Segmentation or Paging
Manages process memory by sections, like stack, heap, text, etc. Solves internal
fragmentation. - ✔✔Segmentation
✔✔Segmentation or Paging
Requires a table system and caching to ensure quick access of common entries. -
✔✔Paging
✔✔System Calls vs. Interrupts - ✔✔invoked by software vs. hardware respectively
✔✔Which of the following approaches, in the common case, yields the CPU (blocks the
process) when waiting for a resource to become available?
Semaphores
Mutexes
Spin locks
Pipes
Networking - ✔✔True
True
, False
True
True
✔✔Which of the following are true?
a program may have more than one process
a thread may have more than one process
a process may have more than one thread
a process may have more than one program - ✔✔1, 3
✔✔Which of the following contents are thread-specific?
Program counter
Register
State
Address space - ✔✔True
True
True
False
✔✔Which of the following describes the dining philosophers problem?
It is a variant of the bounded-buffer problem
it is a variant of the producer-consumer problem
it can arise when multiple processes require access to two shared resources at once
it can result in starvation if not handled
it can arise when multiple processes engage in a spin lock on the same process -
✔✔false
false
true
true
false
✔✔which of the following is not a characteristic of the producer-consumer problem?
it can result in race conditions if not handled correctly
it is a variant of the bounded-buffer problem
it can occur when multiple processes engage in reading and/or writing to an infinite
buffer
it can occur when multiple processes engage in reading and/or writing to a finite buffer -
✔✔false
false
true
false
✔✔Solving the problem of handling simultaneous writes to multiple entries
Solving the problem of preventing simultaneous reading and writing to the same data
location
ANSWERS GRADED A+
✔✔paging systems - ✔✔do not suffer from external fragmentation
✔✔Since the introduction of virtual memory, most application programs have direct
access to physical addresses. - ✔✔False
✔✔Virtual addresses are absolute addresses that directly point to actual physical
locations without the need for translation by the hardware and the operating system. -
✔✔False
✔✔Virtual addresses in modern systems point to memory spaces that are smaller than
the physical memory. - ✔✔False
✔✔A physical address represents an absolute location on a memory chip. - ✔✔True
✔✔Segmentation or Paging
Breaks up process into variable-size components which the OS swaps in and out. -
✔✔Segmentation
✔✔Segmentation or Paging
Breaks up memory space into evenly sized chunks, which are dynamically loaded in
and out of physical memory. - ✔✔Paging
✔✔Segmentation or Paging
Manages process memory by sections, like stack, heap, text, etc. Solves internal
fragmentation. - ✔✔Segmentation
✔✔Segmentation or Paging
Requires a table system and caching to ensure quick access of common entries. -
✔✔Paging
✔✔System Calls vs. Interrupts - ✔✔invoked by software vs. hardware respectively
✔✔Which of the following approaches, in the common case, yields the CPU (blocks the
process) when waiting for a resource to become available?
Semaphores
Mutexes
Spin locks
Pipes
Networking - ✔✔True
True
, False
True
True
✔✔Which of the following are true?
a program may have more than one process
a thread may have more than one process
a process may have more than one thread
a process may have more than one program - ✔✔1, 3
✔✔Which of the following contents are thread-specific?
Program counter
Register
State
Address space - ✔✔True
True
True
False
✔✔Which of the following describes the dining philosophers problem?
It is a variant of the bounded-buffer problem
it is a variant of the producer-consumer problem
it can arise when multiple processes require access to two shared resources at once
it can result in starvation if not handled
it can arise when multiple processes engage in a spin lock on the same process -
✔✔false
false
true
true
false
✔✔which of the following is not a characteristic of the producer-consumer problem?
it can result in race conditions if not handled correctly
it is a variant of the bounded-buffer problem
it can occur when multiple processes engage in reading and/or writing to an infinite
buffer
it can occur when multiple processes engage in reading and/or writing to a finite buffer -
✔✔false
false
true
false
✔✔Solving the problem of handling simultaneous writes to multiple entries
Solving the problem of preventing simultaneous reading and writing to the same data
location