homework1_solution - Assigned Due CprE 211 Spring 2005...

Info icon This 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.
Image of page 1

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

View Full Document Right 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)
Image of page 2
Assigned: 1/13/05 Due: 1/25/05 3 2. Bitwise Operations [4] Complete the following: a. if (byVal & 0xC3) What does this statement test for?
Image of page 3

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

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

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern