homework1_solution

homework1_solution - Assigned: 1/13/05 Due: 1/25/05 CprE...

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

View Full Document Right Arrow Icon
Assigned: 1/13/05 Due: 1/25/05 1 CprE 211 – Spring 2005 Homework 1 Solution Last Name _________________________ First Name _________________________ Section _____________________ Remember, these homework exercises not only give you practice with course concepts, but also represent the types of questions you will be tested on in an exam.
Background image of page 1

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

View Full DocumentRight Arrow Icon
Assigned: 1/13/05 Due: 1/25/05 2 1. Digital Logic – Number Representation [14] Consider each of the following data items, and fill in the blanks. a. Character ‘a’ (ASCII character code) = ___0x61_________ Hex (8-bit) b. Character ‘A’ (ASCII character code) = _____01000001_______ Binary (8-bit) c. Character ‘1’ (ASCII character code) = _______0x31_____ Hex (8-bit) d. Character ‘1’(ASCII character code) = _______49_____ Decimal e. Integer 23 = ________17____ Hex (8-bit) f. 32-bit Unsigned Integer Range = _______0_____ - ___4,294,967,295____ Decimal g. 32-bit Unsigned Integer Range = _____0_______ - _____FFFFFFFF___ Hex h. 32-bit Signed 2’s Complement Integer Range = ______-2147483648___ - ______2147483647_ Decimal i. (Unsigned) 0xA23C + 0x1EF0 = _____0xC12C____ Hex j. (Unsigned) 0xA23C - 0x1EF0 = _______0x834C___ Hex k. (Signed 2’s Complement) 0xA23C - 0x1EF0 = __0x834C_____ Hex l. 368 Decimal = _____0x170___ Hex (16-bit) m. Logical shift right, 4 times, of 368 Decimal = ______23____ Decimal (16-bit) n. Bitwise AND of 368 Decimal with 231 Decimal = ____96_____ Decimal (16-bit)
Background image of page 2
Assigned: 1/13/05 Due: 1/25/05 3 2. Bitwise Operations [4]
Background image of page 3

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

View Full DocumentRight Arrow Icon
Image of page 4
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 04/02/2008 for the course CPR E 211 taught by Professor Wang during the Spring '06 term at Iowa State.

Page1 / 6

homework1_solution - Assigned: 1/13/05 Due: 1/25/05 CprE...

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

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