Computer Organization and Design: The Hardware/Software Interface

Info icon This preview shows pages 1–6. Sign up to view the full content.

View Full Document Right Arrow Icon
1 University of California, Berkeley College of Engineering Computer Science Division EECS Spring 2003 John Kubiatowicz Prerequisite Quiz February 3, 2003 CS152 Computer Architecture and Engineering This prerequisite quiz will be used in determining class admissions. The use of notes is not allowed during this quiz. Good Luck! Your Name: SID Number: Discussion Section: 1 2 3 4 Total
Image of page 1

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
2 [ This page left for π ] 3.141592653589793238462643383279502884197169399375105820974944
Image of page 2
3 1) Assume that we have a 16 bit system that uses signed, two’s-complement integers. Perform the following conversions: -13 10 to base 2: 13 10 =1101 2 so –13 10 = (1111 1111 1111 0011) 2 FF4E 16 to base 10: FF4E 16 =(1111 1111 0100 1110) 2 = -(0000 0000 1011 0010) 2 =-(11x16+2)=-178 10 52 10 to base 16: 52 10 =34 16 (1111111110111100) 2 to base 10: (1111 1111 1011 1100) 2 =-(0000 0000 0100 0100) 2 =-(4*16+4)=-68 10 8CB3 16 to base 8: 8CB3 16 =(1000 1100 1011 0011) 2 =(1 000 110 010 110 011) 2 =(106263) 8
Image of page 3

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
4 [ This page left for scratch ]
Image of page 4