Final Exam Guide
Final Exam Guide
Disclaimer: This is a general guideline to help you prepare for the final exam. For a comprehensive
review, you should study the lecture contents that include slide, notes, class works, assignment
and project. The actual exam questions may look different but they will be from the contents
covered in the class. Anything from the course content is a fair question in the exam.
Chapter 1 and 2
● Review this image as it is important to understand how C program compiles and run.
A sample question could be : given the following steps of compiling and running a C program
hello.c (shown below), fill the 3 boxes for input to Assembler and Linker and the output of
Linker.
//hello.c
#include <stdio.h>
int main()
{
printf("Hello, world \n");
}
● Define overflow
● Operand specifiers
o Eg: What does Imm(rb,ri) mean?
o Check the classwork and examples.
o Also review the projects.
● You should remember the basic assembly language instructions, if I think that you need help
with an instruction, you will be provided as hints
● Practice understanding ASM so that you can find what the output of a program may be.
● Review clock
● Review hardware register vs ASM registers
● What is stalling?
● Show an example of ASM pipelining by showing the steps of F, D, E, M, WB for the instructions.
Review some examples in the slide to optimize the codes. Eg: Given the following code, how to optimize
it?
int x, sum;
sum = 0;
sum = sum + i;
x = sum - 1;
● How does SR Latch, flipflop work? Given the SR Latch gate circuit, how does it retain the
memory? Explain based on the output when Q is 1 and then R and S becomes 0.
R
Q
Q
S '
● How does Gated D latch, flipflop work?
● How does JK flip flop work? Given the characteristic table of JK Flipflop, what will be the output
of the Q(t+1) in the table?
● What is SSD?
● Given a program review how to check if a variable has temporal or spatial locality?
● Check the examples of HIT and MISS in the cache , check cw and examples from slide