CSC231 Exercises with Signed Numbers

From dftwiki3
Revision as of 08:40, 1 October 2012 by Thiebaut (talk | contribs) (Binary Addition in Various Systems)
Jump to: navigation, search

--D. Thiebaut 09:37, 1 October 2012 (EDT)



Binary Addition in Various Systems

CSC231TableSignedNumbers.png



Exercise 1

An program written in some unspecified language contains an array of 10 bytes. The values of the 10 bytes are 0x10, 0xff, 0xf1, 0x00, 0x00, 0xfe, 0x73, 0x01, 0x02, 0x7f.

Are these values used to represent signed numbers, unsigned numbers, numbers in 2's complement, numbers in 1's complement, or numbers in signed magnitude?