Computer 222 - Computer Organization » Fall 2021 » Midterm Exam

Need help with your exam preparation?

Question #1
MIPS instruction: lw $r1,($r2) can address how much memory:
A.   4 GiB
B.   1 GB
C.   2 MB
D.   32 MiB
Question #2
A MIPS “I-format” immediate value as a signed constant can range from 0 to:
A.   -256 to 255
B.   -32,768 to 32,767
C.   -16,383 to 16,384
D.   -65,565 to 65,564
Question #3
An ARMv7 “I-format” immediate value as an unsigned constant can range from 0 to:
A.   16,384
B.   4095
C.   224
D.   1023
Question #4
ARMv7 primitives that MIPS does not have:
A.   syscall, lui
B.   addi, subi
C.   call, jump
D.   push, bkpt, dbg
Question #5
MIPS primitives that ARMv7 does not have:
A.   addi, subi
B.   syscall, break, lui
C.   beq, bgtz
D.   mult, div
Question #6
Currenty used ISA’s include these:
A.   MIPS64, ARMv8, IA-32, RISC V
B.   MIPSIII, ARMv5, IA-32, RISC V
C.   MIPS32, ARMv6, x86-32, RISC III
D.   MIPSV, ARMv7, x86-64, RISC IV
Question #7
A CPU core contains which blocks:
A.   Execution Unit + L1 caches
B.   ALU + L2 cache
C.   ALU + Registers
D.   L1 caches + Registers
Question #8
An x86 CPU, 32-bit contains:
A.   32-bit ALU
B.   EAX, EBX, ECX, EDX registers
C.   EAX, EBX, ECX, EDX registers, SI, DI, CS, SS registers, and 32-bit ALU
D.   SI, DI, CS, SS registers
Question #9
x86 is what kind of architecture:
A.   Dedicated register
B.   General register
C.   Load-Store
D.   Mixed register
Question #10
A MIPS CPU core may contain an Integer unit + any of these, except which one:
A.   up to 4 co-processors
B.   GPU
C.   CP0 + CP1
D.   FPU
Question #11
For MIPS, where are the C, V, N, Z flags located:
A.   CP0 Status register
B.   CPU GR
C.   CPU Cause register
D.   CP1 $f2
Question #12
Which register is not a GR in MIPS, but is a GR in ARMv5:
A.   PC
B.   PSR
C.   SP
D.   $a0
Question #13
CPU General Registers are loaded directly from:
A.   L1 I-cache
B.   L3 cache
C.   L1 D-cache
D.   L2 cache
Question #14
A CPU’s store word instruction will write a data word to (with write-though policy):
A.   L2 cache
B.   Main memory
C.   Main memory, L1 D-cache, and L2 cache
D.   L1 D-cache
Question #15
In general, any level cache may use which form of mapping:
A.   Any of these
B.   Fully associative
C.   Direct
D.   Set associative
Question #16
R-format is used for which MIPS instruction:
A.   subi
B.   bgtz
C.   addi
D.   add
Question #17
I-format is used for which MIPS instruction:
A.   jal
B.   div
C.   addu
D.   lui
Question #18
J-format is used for which MIPS instruction:
A.   bne
B.   jal
C.   la
D.   addi
Question #19
At the Macro architecture level, we address all of which units:
A.   Cores and caches
B.   ICU + ALU + Registers
C.   Just GPU’s
D.   Just CPU cores
Question #20
CPU’s Execution Unit contains all these:
A.   ALU + registers
B.   ALU + ICU + registers
C.   ICU + PSW
D.   CPU + GPU
Question #21
An SoC (like the Apple A13/14) can contain which functional elements:
A.   NPU cores + ML unit
B.   Any of these
C.   L1 and L2 caches
D.   CPU + GPU cores
Question #22
Which {MIPS, ARM} add instructions should be used for unsigned integers:
A.   addu, add
B.   add, adds
C.   addi, add
D.   addu, addu
Question #23
Multi-level memory hierarchy from fastest to slowest:
A.   Disk to Main to L2 cache
B.   General Registers to L1 cache to L2 cache
C.   L1 cache to L2 cache to L1 cache
D.   Main to L2 cache to L1
Question #24
Any PSW contains:
A.   Flags
B.   Flags, Status bits, and Interrupt enables
C.   Interrupt enables
D.   Status bits
Question #25
ARM v8 was redesigned from v7 to be more like:
A.   Apple A12X
B.   IA-64
C.   ARMv5
D.   MIPS

Need help with your exam preparation?