Last Name: ________________________________ First Name: ________________________________
CruzID: ________________________________
Final Exam
CMPE 012: Computer Systems and Assembly Language
University of California, Santa Cruz
Fall 2018
DO NOT BEGIN UNTIL YOU ARE TOLD TO DO SO.
This exam is closed book and closed notes. Only 4-function calculators are permitted. Answers must be marked on the Scantron form to be graded. All work must be written on the exam.
Write your first name, last name, and CruzID on this page. Write your CruzID on all subsequent pages of the exam. On the Scantron form, bubble in your name, student ID number, and test form. The test form can be found in the footer of all subsequent pages of the exam.
You must sit in your assigned seat. Keep your student or government issued ID on your desk. Brimmed hats must be removed or turned around backwards. Only unmarked water bottles are permitted. Backpacks must be placed at the front of the room. Your cell phone must be on a setting where it will not make noise or vibrate.
All questions are multiple choice. Some questions have more than one correct answer. You must mark all correct answers to receive credit for a question.
You have 120 minutes to complete this exam.
Bits
1. What is the size of a byte? A. 32bits
B. 10bits C. 4bits D. 6bits E. 8bits
2. What is the size of a nybble? A. 2bits
B. 64bits C. 32bits D. 4bits E. 8bits
3. What is the size of a word in MIPS? A. 8bits
B. 4bits C. 32bits D. 16bits E. 64bits
Binary Addition
CruzID: @ucsc.edu CMPE 12 Final Exam Version A
Fall 2018
4. Which computations have overflow? Assume numbers are 16-bit two’s complement. Select all that apply.
A. 0x76F9 + 0x801A = 0xF713
B. 0xD02A + 0x57D9 = 0x2803
C. 0xF02B + 0x57D9 = 0x5864
D. 0x0308 + 0x1198 = 0x14A0
E. 0x0308 + 0x1198 = 0x14A0
5. Which computations have carry out but no overflow? Assume numbers are 8-bit two’s complement. Select all that apply.
A. 0x2C + 0x2D
B. 0xED + 0x09
C. 0x0A + 0xFD
D. 0xD9 + 0x5C
E. 0x7F + 0x01
CMPE 12 Final Exam Version A
Page 1 of 11
Fall 2018