sample_test2_sol - CoCO Exam 1 Answers Spring 2000 1(20...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
CoCO Exam 1 Answers - Spring 2000 1. (20 points) Number Systems, Codes, Computer Arithmetic A. (8 points) (1) Convert 10101010 2 to [a] its 2s-complement negative [number]._____01010110______ (1) Convert 10101010 2 to a decimal number. ________170________ (1) Convert 10101010 2 to a hexadecimal number. ________AA________ (1) Convert 10101010 2 to a Gray code number. ______11111111_____ (1) Convert 10101010 Gray code to a binary number. ______11001100_____ (1) Convert A3 16 to a binary number. ______10100011_____ (1) Convert 70 10 to a binary number. ______01000110_____ (1) Convert 70 10 to a BCD number. _____0111 0000_____ B. (5 points) Add using 2s-complement arithmetic 01100101 2 + 10101010 2 . Does this result in an overflow? Explain your answer. Sum = _____00001111________ no overflow 1 1 100 000 = carries Overflow result = None. Adding a positive and a negative number can never result in overflow C. (2 points) Convert the 2s-complement numbers of part (b) to decimal and add them. What answer do you get? Sum = ______15____________ 101 - 86 = 15 Overflow result = Same as part B, none____________________________________________ D. (5 points) Add using BCD arithmetic 0011 0101 BCD + 0101 0110 BCD . Show corrections and digit carries. Sum in BCD = ______________________ 0011 0101 0101 0110 1000 1011 not BCD 000 1 0110 carry and correction 1001 0001
Background image of page 1

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

View Full Document Right Arrow Icon
2. (20 points) Logic Functions, Gates, PLAs
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

Page1 / 6

sample_test2_sol - CoCO Exam 1 Answers Spring 2000 1(20...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online