Skills101
← All practice quizzes

Quiz: Data Representation

5 questionsNo time limitPass: 60%+10 XP on first pass

How numbers are stored in hardware: binary and hexadecimal conversion, signed numbers (sign-magnitude, 1's and 2's complement), ranges and overflow, and IEEE 754 single precision decoded bit by bit with Python — the exam favourites, solved.

Log in to take the quiz

Free account · see your score, answers and explanations, earn XP

  1. Question 1

    What is the 8-bit 2's complement representation of −5?

  2. Question 2

    What is the range of an 8-bit 2's complement number?

  3. Question 3

    In the overflow demo, which addition overflowed?

  4. Question 4

    In IEEE 754 single precision, how many bits are used for the exponent, and what is the bias?

  5. Question 5

    What is the stored exponent field (in decimal) for −6.75 in single precision?