CPSC 425 Homework 1

.docx

School

College of DuPage *

*We aren’t endorsed by this school

Course

42500

Subject

Computer Science

Date

Apr 3, 2024

Type

docx

Pages

2

Uploaded by Error69

Report
Name ______________________ Score: ____ / 20 CPSC 42500 Homework 1: Bit and byte lengths, binary and hexadecimal numbers Directions : Read carefully and be sure not to confuse bits with bytes. Show work for partial credit. 1. (4 pts) Write the following decimal numbers in both binary and hexadecimal. Pad the binary numbers on the left with zeroes to the nearest four bits. a. 15 b. 513 c. 2998 d. 3,221,344,269 2. (4 pts) Write the following hexadecimal numbers in both binary and decimal. a. 0x9c b. 0xff c. 0xfeed d. 0x7777 3. (2 pts) Which is the most significant digit in the hexadecimal number 0x8b2da150 ? 4. (2 pts) How many different numbers can be represented by 48 bits? Give the answer as both an exponent and written out. Page 1 of 2
5. (2 pts) Write, in hexadecimal, the largest (unsigned) number that can be stored in 32 bits. 6. (2 pts) How many hexadecimal digits are required to write down a 1024-bit number? 7. (2 pts) How many hexadecimal digits are required to write down a 128-byte number? 8. (2 pts) How many bytes does it take to store a 64-bit number in a computer? Page 2 of 2
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help