Computer Science · High School (9–10) · 4 courses, 30 worked problems, 30 practice questions
A computer stores everything in binary, as patterns of 0s and 1s. A denary number can be converted to binary, or to hexadecimal, which is a short way to write binary. Binary numbers can be added, shifted left or right, and written as negative numbers with two's complement. Text is stored with a character set such as ASCII or Unicode. A sound is sampled many times each second, and an image is stored as pixels, each with a colour code. File size depends on the resolution and the colour depth, and compression makes files smaller.
Choose an answer, then check it. Each one shows a full explanation.
A thermostat stores the room setting as the 8-bit binary number 01100011. What is this in denary?
A delivery drone records its height as 166 metres in one byte. Which 8-bit pattern does it store?
An error message on a screen gives the code 5C in hexadecimal. What is the code in denary?
A programmer must write the 10-bit binary value 1011010111 in hexadecimal. Which is correct?
Each one has a hint, the key idea and a full worked solution.
A shop till keeps two totals, 01101110 and 00101011, and adds them in one 8-bit register. Which 8 bits does the register hold after the sum?
Each pair of numbers below is added in an 8-bit register. Which addition causes an overflow?
The diagram shows an 8-bit register. It holds 11100100 and is given a logical right shift of 2 places. Which pattern does it hold afterwards?
A bank account balance of is stored as an 8-bit two's complement number. Which pattern is stored?
A robot stores its position on a track as an 8-bit two's complement number. The register holds 11001011. What is the position in denary?
A program multiplies by 4 with a logical left shift of 2 places. The 8-bit register holds 01100110, which is 102 in denary. Which statement about the result is true?