Practice Exam with Answer for Computer Organization I | ECE 267, Exams of Computer Architecture and Organization

Material Type: Exam; Class: Computer Organization I; Subject: Electrical and Computer Engr; University: University of Illinois - Chicago; Term: Unknown 2012;

Typology: Exams

2011/2012

Uploaded on 05/18/2012

koofers-user-90c
koofers-user-90c ๐Ÿ‡บ๐Ÿ‡ธ

10 documents

1 / 4

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
๏ฃฉ2002 University of Illinois at Chicago ECE 267 V. Goncharoff
ECE 267 Midterm I Examination Practice Problems (with answers)
1. What is (5.3125)10 converted into radix 2?
a) (101.1101)2
b) (101.1010)2
c) (101.0101)2
d) (101.1011)2
e) none of the above
2. What is (A2.5)16 converted into radix 10?
a) (162.3125)10
b) (102. 5)10
c) (102.3125)10
d) (162.5)10
e) none of the above
3. What is (โˆ’13)10 written in 2's complement 8-bit binary code?
Give the answer in hex notation.
a) 0Dh
b) F3h
c) F2h
d) 8Dh
e) none of the above
4. What is (255)10 written in 2's complement 16-bit binary code?
Give the answer in hex notation.
a) 80FFh
b) FFFFh
c) FF01h
d) 00FFh
e) none of the above
5. What is (34)10 written in unsigned 8-bit binary code?
Give the answer in hex notation.
a) 34h
b) 22h
c) DEh
d) 24h
e) none of the above
pf3
pf4

Partial preview of the text

Download Practice Exam with Answer for Computer Organization I | ECE 267 and more Exams Computer Architecture and Organization in PDF only on Docsity!

ECE 267 Midterm I Examination Practice Problems (with answers)

  1. What is (5.3125) 10 converted into radix 2?

a) (101.1101) (^2) b) (101.1010) (^2) c) (101.0101) (^2) d) (101.1011) (^2) e) none of the above

  1. What is (A2.5) 16 converted into radix 10?

a) (162.3125) (^10) b) (102. 5) (^10) c) (102.3125) (^10) d) (162.5) (^10) e) none of the above

  1. What is (โˆ’13) 10 written in 2's complement 8-bit binary code? Give the answer in hex notation.

a) 0Dh b) F3h c) F2h d) 8Dh e) none of the above

  1. What is ( 255 ) 10 written in 2's complement 16-bit binary code? Give the answer in hex notation.

a) 80FFh b) FFFFh c) FF01h d) 00FFh e) none of the above

  1. What is (34) 10 written in unsigned 8-bit binary code? Give the answer in hex notation.

a) 34h b) 22h c) DEh d) 24h e) none of the above

  1. Signed integer N is stored in an 8-bit register using 2โ€™s complement binary code. What are the minimum and maximum values of N that would permit us to store 4N in the same register without overflow?

a) N (^) min = โˆ’64, N (^) max = + b) N (^) min = โˆ’ 32, N (^) max = + c) N (^) min = โˆ’11, N (^) max = + d) N (^) min = โˆ’15, N (^) max = + e) none of the above

  1. What is (โˆ’1.75) 10 in 32-bit single-precision IEEE floating point code? Give the answer in hex notation.

a) BFE00000h b) 3FE00000h c) C0700000h d) C0600000h e) none of the above

  1. What do the following Intel IA-32 assembly language instructions accomplish? Assume BL originally contains an ASCII character code.

cmp bl,โ€™aโ€™ jb exit cmp bl,โ€™zโ€™ ja exit sub bl,โ€™aโ€™ add bl,โ€™Aโ€™ exit:

a) BL โ† BL โˆ’ 32 b) if the character is uppercase, then it is made lowercase c) if the character is lowercase, then it is capitalized d) BL โ† BL โˆ’ 64 e) none of the above

  1. Assume that register EAX stores X , a single-precision floating point number in IEEE format. The following instructions are then executed:

xor eax, 80000000h and eax, 80000000h

What result is now in EAX (in IEEE format)? a) X b) X c) โˆ’ X d) โˆ’ X e) none of the above

  1. For the IA-32 processor in real addressing mode, how many different memory addresses are there?

a) 2 8 b) 2^16 c) 2 32 d) 2^20 e) none of the above

  1. For the IA-32 processor in real addressing mode, which of the following addresses refers to the same byte in memory as does address E000:1234?

a) F000: b) 1234:E c) E111: d) F234: e) none of the above

  1. Which of the following instructions is bad programming practice?

a) cmp dl,'0' b) mov ebx,eax c) mov al,[ebx+1] d) cmp [ebx],