ITEC 1000 Quiz: assignment 2 solution.docx

1550 views7 pages

Document Summary

Answers and solutions a) convert 121 to its binary representation: 12110 = 011110012. The answer: 01111001 b) convert -121 to its binary representation: -12110 = -011110012. Using the second method for negative numbers, invert and then add 1. The answer: 10000111 c) convert 54 to its binary representation: 5410 = 001101102. The four least significant digits of the ascii code match the four bits of bcd: between -7999 and +7999. This is because 16 bits provide four four-bit locations. The lowest (right most) and the middle 4 bits can store any number from 0 to 9. In the highest (left most) 4 bits, one bit is used for the sign, leaving 3 bits for digits. These 3 bits can accommodate numbers between 0 and 7. a) 15675 is a positive number and is represented by itself. 6934 c) there was no overflow condition because the numbers have opposite signs and overflow cannot occur.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers

Related Documents