Return to course page

Question 1: (see above) Virtual memory reduces the memory needed to do which of the following? That is,

  • we could do them with similar runtime without virtual memory
  • but virtual memory is more space efficient
    Select all that apply
  1. all processes share the same kernel memory address space

  2. prevent one process from accessing another process's memory

  3. have many processes use the same code for libraries

  4. prevent a process from accessing kernel memory

  5. have all programs use the same address for the start of their stack

Question 2: (see above) Virtual memory enables efficiently doing which of the following? That is, to do them without virtual memory would be computationally inefficient or impossible.
Select all that apply

  1. all processes share the same kernel memory address space

  2. prevent one process from accessing another process's memory

  3. have many processes use the same code for libraries

  4. prevent a process from accessing kernel memory

  5. have all programs use the same address for their stack

Question 3: The TLB is a cache; unlike the L1, L2, etc. caches, typical TLBs
Select all that apply

  1. take page numbers, not addresses, as input

  2. do not use set indexs

  3. do not use tags

  4. do not use block offsets

  5. store page numbers, not data, in their lines

Question 4: The page table structure

The virtual memory areas structures described in section 9.7.2
Select all that apply

  1. is read by hardware

  2. is written by the operating system (kernel-mode software)

  3. is inacessible to user-mode software

  4. is used in every memory access, unless the TLB short-circuits that

  5. contains permission bits

  6. is stored in memory on pages

  7. marks pages that have been swapped out of RAM

Question 5: When physical memory gets full, some pages of memory can be swapped out to make room for new pages. When a page is swapped out,

  1. the contents of the page are kept but moved to another region of physical memory

  2. the contents of the page are discarded

  3. the contents of the page are kept but moved out of memory entirely

  4. the contents of the page are kept in place, but their virtual addess is changed

  5. the contents of the page are kept in place, but their virtual addess is discarded

Return to main page
Return to course page