# FINAL EXAM R.doc - CS 40A FINAL FALL 18 NAME HOWARD...

• 4
• 100% (7) 7 out of 7 people found this document helpful

This preview shows page 1 - 4 out of 4 pages.

CS 40A FINAL FALL 18 HOWARD DACHSLAGER NAME: Ali Ghasemi STUDENT # 1097618 ASSUME NO SYNTAX ERRORS AND THE LOGIC IS CORRECT. NONE OF THE PROGRAMS ARE COMPLETE. Unless otherwise indicated, all numbers are assumed unsigned (natural order). ALSO, NO NEGATIVE NUMBERS ARE ALLOWED AS ANSWERS. For 1 - 3 assume we have the following: 1 . X DWORD 0000 0000 1110 1111 1010 1101 0110 1100 2 Complete all cells. The additive inverse of x is 1111 1111 0001 0000 0101 0010 1001 0100 ` 2. X DWORD 0 3 4 C A 7 4 D 16 Complete all cells. The additive inverse of x is F C B 3 5 8 B 3 ` 3. X BYTE 126 10 The additive inverse of x is - 126 10 (Wrong) 130 10 (correct)
4 . Fill in all cells that have numbers 2
5. Fill in all cells that have numbers .
6 . Fill in all cells that have numbers . 7 . Fill in all cells that have numbers .
Z := X - Y 05FFAD10 7FFEDE89 8 | 6 | 0 | 0 | C | E | 8 | 7 8 . Fill in all cells that have numbers .
9. Fill in all cells. The largest octal WORD TYPE number is N 8 BASE 8 1 7 7 7 7 7 = 7
11. X dword? mov x, 367096d Fill in all cells.
12. Fill in all cells. 1
13. The smallest signed integer number, base 16, that can be store in a variable of type BYTE is
14 . The largest signed integer number, base 16, that can be store in a variable of type BYTE is (7F) 16 15. Fill in all cells. INSTRUCTIONS 32 25 24 17 16 9 8 1 mov eax, 93567h 0000 0000 0000 1001 0011 0101 0110 0111 mov aL, 9Bh 1001 1011 mov ah, 2h 0000 0010 mov al, 6Eh 0110 1110 mov eax , 251h 0000 0000 0000 0000 0000 0010 0101 0001