This page contains quizzes given Fall 2015. For other semesters see the main old quizzes page
Fall 2015 Quiz 01
|
Fall 2015 Quiz 02
|
Fall 2015 Quiz 03
Our textbook and most GNU tools using ATT format assembly, but 2150 uses Intel format assembly instead. Each of the following is either true for ATT or Intel format, but not both; which are true of ATT format assembly? Select all that apply. |
||||||||||||
The textbook shows two ways to translate a while loop to use goto statements: jump to middle and guarded do. Optimizing compilers prefers guarded do. This is because |
||||||||||||
The call instruction changes which of the following registers? Select all that apply. |
Fall 2015 Quiz 04
Most jumps can only go to compile-time-known addresses, but the C switch command jumps to a runtime-computed address using jmp *label(offset) syntax x86-64 assembly. Which Y86-64 command moves the program counter to a runtime-computed address? |
||||||||||||||||||
Which of the following Y86-64 assembly snippets does the same thing as cmovle %rbx, %rax? |
||||||||||||||||||
|
Fall 2015 Quiz 05
The C operators & and && function differently in that both (1) & is bit-wise but && is logical instead; and (2) && short-circuits, only evaluating the second operand if the first operand was true. The AND gates and HCL && operator described in the book |
||||||||||||||||
The C operators & and && function differently in that both (1) & is bit-wise but && is logical instead; and (2) && short-circuits, only evaluating the second operand if the first operand was true. The AND gates and HCL && operator described in the book |
||||||||||||||||
Supposed I have a register and want to be able to "stall" it, preventing it from storing new values when there is a 0 on wire X. While the register is stalled, I want it to keep whatever value it had when I stalled it until X has a 1 again, at which point it may resume normal operation. To do this, I should |
||||||||||||||||
Supposed I have a register and want to be able to "bubble" it, such that if there is a 0 on wire X then it outputs a 0 no matter what its data input is. To do this, I should |
||||||||||||||||
|
Fall 2015 Quiz 06
|
Fall 2015 Quiz 07
|
Fall 2015 Quiz 08
Consider S, a computer without pipelining, and P, the same computer with pipelining. Assuming that pipelining is the only change made, which will complete a single-instruction program run faster? |
||||||||
Consider S, a computer without pipelining, and P, the same computer with pipelining. Assuming that pipelining is the only change made, which will complete a 50-instruction program run faster? |
||||||||
Given a pipelined computer, if I replace the pipeline registers with ones that run faster, making appropriate changes to the clock but leaving the rest of the hardware untouched, I will |
||||||||
Given a pipelined computer, if I replace the pipeline registers with ones that run faster, making appropriate changes to the clock but leaving the rest of the hardware untouched, I will |
||||||||
|
Fall 2015 Quiz 09
|
|
Fall 2015 Quiz 10
|
||
|
||
|
||
|
||
|
||
|
Fall 2015 Quiz 11
|
||||||||||
|
||||||||||
|
||||||||||
|
||||||||||
|
||||||||||
Which of the following is likely to increase the cache-friendliness of code the most? |
Fall 2015 Quiz 12
|
||
|
||
|
||
|
||
|
Fall 2015 Quiz 13
Which of the following terms is a general term that includes the others as sub-kinds? |
||||||||||||
|
||||||||||||
|
||||||||||||
|
Fall 2015 Quiz 14
Let C be the set of all possible concurrent processes and P be the set of all possible parallel processes. |
||||||||||
|
||||||||||
Most processors contain a special one-bit register called the "mode bit" that distinguishes between kernel mode and user mode. True or false: when in user mode, programs can run some but not all of the assembly instructions they can run in kernel mode. |
||||||||||
True or false: when in user mode, programs can access some but not all of the addresses that they can access in kernel mode. |
||||||||||
True or false: when in user mode, programs can access some but not all of the file system locations that they can access in kernel mode. |
||||||||||
|
Fall 2015 Quiz 15
Select all that apply: |
||||||||||
|
||||||||||
(select all that apply) A PTE describes where a particular range of addresses in virtual memory is stored. It can be |
||||||||||
|
||||||||||
A PTE describes where a particular range of addresses in virtual memory is stored, as well as all but one of the following; which one is not part of PTE? |
Fall 2015 Quiz 16
|
||||||||||||
|
||||||||||||
|
||||||||||||
|
||||||||||||
For multi-level page tables, each process has several page tables for its memory. What is the size of each of these page tables? |
Fall 2015 Quiz 17
Compare and contrast memory caching (where slow RAM and fast L# caches interact to provide the illusion of a large, fast memory) and virtual memory (where slow disk and fast RAM interact to provide the illusion of large, fast memory). Several questions refer to "the faster store" (meaning the L# cache for caches, the RAM for virtual memory) and the "slower store" (meaning RAM for caches, disk for virtual memory). Assume for these questions that caching is implemented on a computer without virtual memory and virtual memory is implemented on a computer without caching. The table below summarizes the paragraph above:
|