CSO Final Exam Questions and Answers with
Verified Solutions | Latest Updated 2026
AMAT Formula Hit time + (Miss rate x Miss penalty)
Spatial vs Temporal Locality Spatial = neighboring addresses/Temporal
= same
address multiple times
A While loop condition check cmp followed by a conditional jump (e.g.,
jle, jne)
How is a struct member Base register + a constant offset (e.g.,
accessed? 8(%rbp))
What does the Call instruction Pushes %rbp onto the stack and jumps to
actually do? the
function address
Standard function Opener push %rbp followed by mov %rsp, %rbp
What happens to the stack when a %rsp is moved back, %rbp is popped, and
function returns? the
return address is popped into %rip.
Main disadvantage of a Ripple Latency; the carry must "ripple" through
Carry every bit
Adder before the final sum is ready.
, cmp %rax, %rbx followed by jl Jumps if %rbx < %rax (Signed Less Than)
test %rax, %rax followed by jz Jumps if %rax is zero
How can miss rate be improved? Having a large cache size
How can hit time increase? Large cache size/High associativity
In which scenario does No-Write- Write Heavy Workloads WHW
Allocate perform better? NWA
Multi level cache improves miss penalty
What does the following ptr is a pointer to an array of 10 integers
declaration
mean?
int (*ptr)[10];
How many unique values can be 256
represented using an 8-bit binary
number?
What is the lifetime of a static local Entire duration of program execution
variable?
All types of data stored in binary False
files
can be accessed using text editors
T/F
Verified Solutions | Latest Updated 2026
AMAT Formula Hit time + (Miss rate x Miss penalty)
Spatial vs Temporal Locality Spatial = neighboring addresses/Temporal
= same
address multiple times
A While loop condition check cmp followed by a conditional jump (e.g.,
jle, jne)
How is a struct member Base register + a constant offset (e.g.,
accessed? 8(%rbp))
What does the Call instruction Pushes %rbp onto the stack and jumps to
actually do? the
function address
Standard function Opener push %rbp followed by mov %rsp, %rbp
What happens to the stack when a %rsp is moved back, %rbp is popped, and
function returns? the
return address is popped into %rip.
Main disadvantage of a Ripple Latency; the carry must "ripple" through
Carry every bit
Adder before the final sum is ready.
, cmp %rax, %rbx followed by jl Jumps if %rbx < %rax (Signed Less Than)
test %rax, %rax followed by jz Jumps if %rax is zero
How can miss rate be improved? Having a large cache size
How can hit time increase? Large cache size/High associativity
In which scenario does No-Write- Write Heavy Workloads WHW
Allocate perform better? NWA
Multi level cache improves miss penalty
What does the following ptr is a pointer to an array of 10 integers
declaration
mean?
int (*ptr)[10];
How many unique values can be 256
represented using an 8-bit binary
number?
What is the lifetime of a static local Entire duration of program execution
variable?
All types of data stored in binary False
files
can be accessed using text editors
T/F