Q1 · Binary conversions

Three variations in the paper’s own format. Scratch paper only, 6 minutes per variation. Write N/A when a number does not fit. Solutions are on a separate page.

Method: positive numbers by place value (128 64 32 16 8 4 2 1) · negative numbers by writing the positive, flipping every bit, adding 1 · hex by splitting into two nibbles and reading each with 8-4-2-1 · range check first: 8 bits hold −128 to 127, nothing outside.

Variation 1 2 pts · 6 min

Convert the following decimal numbers into 8-bit 2’s complement binary numbers and their hexadecimal equivalent.

Q1.1 Binary conversions - #45 to binary 0.25
Convert #45 into 8-bit 2’s complement binary.

Q1.2 Binary conversions - #45 to hexadecimal 0.25
Convert #45 into 8-bit 2’s complement hexadecimal.

Q1.3 Binary conversions - #-45 to binary 0.25
Convert #-45 into 8-bit 2’s complement binary.

Q1.4 Binary conversions - #-45 to hexadecimal 0.25
Convert #-45 into 8-bit 2’s complement hexadecimal.

Q1.5 Binary conversions - #127 to binary 0.25
Convert #127 into 8-bit 2’s complement binary.

Q1.6 Binary conversions - #127 to hexadecimal 0.25
Convert #127 into 8-bit 2’s complement hexadecimal.

Q1.7 Binary conversions - #-1 to binary 0.25
Convert #-1 into 8-bit 2’s complement binary.

Q1.8 Binary conversions - #-1 to hexadecimal 0.25
Convert #-1 into 8-bit 2’s complement hexadecimal.

Variation 2 2 pts · 6 min

Convert the following decimal numbers into 8-bit 2’s complement binary numbers and their hexadecimal equivalent.

Q1.1 Binary conversions - #100 to binary 0.25
Convert #100 into 8-bit 2’s complement binary.

Q1.2 Binary conversions - #100 to hexadecimal 0.25
Convert #100 into 8-bit 2’s complement hexadecimal.

Q1.3 Binary conversions - #-100 to binary 0.25
Convert #-100 into 8-bit 2’s complement binary.

Q1.4 Binary conversions - #-100 to hexadecimal 0.25
Convert #-100 into 8-bit 2’s complement hexadecimal.

Q1.5 Binary conversions - #-128 to binary 0.25
Convert #-128 into 8-bit 2’s complement binary.

Q1.6 Binary conversions - #-128 to hexadecimal 0.25
Convert #-128 into 8-bit 2’s complement hexadecimal.

Q1.7 Binary conversions - #200 to binary 0.25
Convert #200 into 8-bit 2’s complement binary.

Q1.8 Binary conversions - #200 to hexadecimal 0.25
Convert #200 into 8-bit 2’s complement hexadecimal.

Variation 3 2 pts · 6 min

Convert the following decimal numbers into 8-bit 2’s complement binary numbers and their hexadecimal equivalent.

Q1.1 Binary conversions - #19 to binary 0.25
Convert #19 into 8-bit 2’s complement binary.

Q1.2 Binary conversions - #19 to hexadecimal 0.25
Convert #19 into 8-bit 2’s complement hexadecimal.

Q1.3 Binary conversions - #-19 to binary 0.25
Convert #-19 into 8-bit 2’s complement binary.

Q1.4 Binary conversions - #-19 to hexadecimal 0.25
Convert #-19 into 8-bit 2’s complement hexadecimal.

Q1.5 Binary conversions - #-129 to binary 0.25
Convert #-129 into 8-bit 2’s complement binary.

Q1.6 Binary conversions - #-129 to hexadecimal 0.25
Convert #-129 into 8-bit 2’s complement hexadecimal.

Q1.7 Binary conversions - #0 to binary 0.25
Convert #0 into 8-bit 2’s complement binary.

Q1.8 Binary conversions - #0 to hexadecimal 0.25
Convert #0 into 8-bit 2’s complement hexadecimal.

Solutions