CS 3843 Computer Organization Midterm Exam 1 Review: Fall 2010
This will be a closed book exam.
You may use a calculator, but you need to show the steps in solving the
problems, not just write down the answer.
The calculator can be used only for add, subtract, multiply, and divide,
plus to check your answers.
Any other operations must be shown.
You are responsible for understanding all of assignments and material
from the textbook.
The exam will cover Chapter 2 and Chapter 3 through Section 3.3.
Many of the problems on the exam will be similar to
recitation problems
and the daily questions.
The exam will probably have about 30 short answer questions worth 2 points each
and some longer questions for a total of 100 points.
For the short answer questsions there will not be any partial credit and only the
answer will be graded.
For the other questions you must show your work and partial credit may be given.
Less than 20% of the exam will be on material from Chapter 3.
- Know your powers of 2.
- Base conversions
- Little endian and big endian
- Bitwise boolean operators
- Logical operators
- Shift operators: understand the difference between arithmetic
and logical shifts
- Representation of integers: 2's complement, 1s' complement, sign-magnitude
- Casting between signed and unsigned
- Casting between integers of different sizes and sign extension
Note: In C, when a cast changes both sign type and size, the sign type is done first.
- unsigned addition and subtraction
- signed addition and subtraction (2's complement only)
- unsigned multiplication
- 2's complement multiplication
- Multiplying by constants using shift, add, and subtract
- Dividing by powers of 2
- Fractional binary numbers - converting between bases
- IEEE floating point format with given number of exp and frac bits
For given number of exp and frac bits:
- find smallest denormalized greater than 0
- find largest denormalized
- find smallest normalized greater than 0
- find largest normalized
- Given the binary:
- find the sign, exp, and frac bits
- determine whether it is nan, inf, denormalized, or normalized
- find the value
- Given a value:
- determine whether it will be represented as denormalized, normalized,
or infinity.
- find the representation
- Understand the four rounding methods.
- IA32
- Know about the 8 32-bit registers
- Understand how the stack works: grows down, sp points to last value pushed
- Understand the following instructions:
pushl and popl
movl, addl, subl
- Understand the following addressing modes:
Immediate, Register, Indirect, Base+Displacement, Scaled Indexed
- Understand how base+displacement addressing is used to access
items on the stack.