Sign in to save

Bookmark this page so you can find it later.

Sign in to save

Bookmark this page so you can find it later.

CS Grade 9-12

Computer Science: Binary and Data Representation

Representing numbers, text, images, and sound with bits

View Answer Key
Name:
Date:
Score: / 15

Representing numbers, text, images, and sound with bits

CS - Grade 9-12

Instructions: Read each problem carefully. Show your work when doing conversions or calculations.
  1. 1

    Convert the binary number 101101 to decimal. Show the place values you used.

  2. 2

    Convert the decimal number 58 to binary.

  3. 3

    Convert the binary number 11001010 to hexadecimal.

  4. 4

    Convert the hexadecimal number 3F to decimal.

  5. 5

    An unsigned 8-bit integer can store values from 0 to 255. Explain why 255 is the largest value.

  6. 6

    Write the decimal value represented by the 8-bit binary pattern 11111111 if it is treated as an unsigned integer.

  7. 7

    Using 8-bit two's complement, what decimal number is represented by 11111110?

  8. 8

    Using 8-bit two's complement, write the binary representation of -13.

  9. 9

    ASCII uses 7 bits per character, while extended ASCII often uses 8 bits per character. How many more different symbols can be represented with 8 bits than with 7 bits?

  10. 10

    The ASCII code for uppercase A is decimal 65. Convert 65 to 8-bit binary.

  11. 11
    A row of grayscale swatches from black to white with one enlarged gray pixel above.

    A grayscale image uses 8 bits per pixel. How many different gray levels can each pixel represent?

  12. 12
    A wide rectangular pixel grid with one enlarged pixel split into red, green, and blue components.

    A small image is 100 pixels wide and 50 pixels tall. Each pixel uses 24 bits for color. How many bytes are needed to store the raw image data, not including metadata or compression?

  13. 13
    Red, green, and blue channel bars combine into an orange color swatch.

    A color is represented in RGB as (255, 128, 0). Explain what each number means.

  14. 14
    Two audio waveforms with sampling points and quantization levels shown.

    A sound file is recorded with a sample rate of 44,100 samples per second, 16 bits per sample, and 2 channels. How many bits are needed for 1 second of uncompressed audio?

  15. 15

    Explain one advantage and one disadvantage of using compression when storing data.

LivePhysics™.com CS - Grade 9-12

More CS Worksheets

See all CS worksheets

More Grade 9-12 Worksheets

See all Grade 9-12 worksheets