- Why do computers use binary?
- Any form of data must be converted to binary before a computer can process it. Data is processed using logic gates and stored in registers, and a logic gate can only be set as a binary number. Text, images and sound are all stored as binary.
- How do you convert the denary number 45 into an 8-bit binary number?
- Write 45 as a sum of the place values in 8 bits: 45 = 32 + 8 + 4 + 1. Keep the leading zeros so the answer has 8 bits, which gives 00101101.
- How do you perform a logical shift left on a binary number?
- A logical shift moves every bit the same number of places, and zeros are shifted in at the opposite end. A left shift multiplies the number by 2 for each place, and the most significant bit is lost. Moving 00110101 two places left gives 11010100.
- What is an overflow error in binary addition?
- An overflow error occurs when a value outside the limit of a register should be returned. An 8-bit register holds values up to 255, so the carry out of the eighth bit is the overflow bit. The adding of 11001000 and 01100100 gives an overflow because the sum is 300.
- How do you read a negative number in two's complement?
- A value with a leading 0 is positive and is read as ordinary binary. A value with a leading 1 is negative: add the place values, with -128 for the leading bit. For example, 11101010 is -128 + 64 + 32 + 8 + 2 = -22.
- Does hexadecimal use less storage space than binary?
- No. Hexadecimal is a shorter representation of binary and is easier to read, so it uses less screen space. The computer still stores the value as binary, so hexadecimal does not save storage space.
- How does a computer represent text as binary?
- Text is converted to binary to be processed by a computer. Each character is given a binary value in a character set, and a character set contains all the characters that can be represented. A key press only sends a signal to the computer.
- What is the difference between ASCII and Unicode?
- ASCII and Unicode are both character sets. Unicode allows a greater range of characters and symbols than ASCII, including different languages and emojis. Unicode requires more bits per character than ASCII.
- What is the difference between sample rate and sample resolution?
- Sample rate is the number of samples taken in a second. Sample resolution is the number of bits per sample. As the sample rate and resolution increase, the accuracy of the recording and the file size both increase.
- How is an image converted to binary?
- An image is a series of pixels. A pixel is the smallest unit of an image, made up of one colour, and each pixel has a binary value for its colour. A pixel is not all of the colours in the image.
- What is the difference between image resolution and colour depth?
- Resolution is the number of pixels in the image, which are its dimensions. Colour depth is the number of bits used to represent each colour. As resolution and colour depth increase, the quality and the file size of the image increase.
- What mistake do students make when describing sample rate and sample resolution?
- A common mistake is giving the sample rate as the answer for both terms. Sample rate is the number of samples taken in a second, and sample resolution is the number of bits per sample. Some candidates described sample resolution in relation to an image.
- How many kibibytes are in 3072 bytes?
- Divide by 1024 for each step up. The calculation is 3072 ÷ 1024 = 3 KiB. Binary prefixes such as kibibyte use 1024 in calculations, while denary prefixes such as megabyte use 1000.
- How many nibbles are in one byte?
- A bit is one binary digit and there are 8 bits in a byte. A nibble is half a byte, so one byte holds two nibbles. Many candidates gave the incorrect answer 4.
- How do you calculate the file size of an image?
- For an image, multiply the number of pixels by the colour depth. The formula is width × height × colour depth, which gives the answer in bits. Divide by 8 to change bits to bytes, then divide by 1024 once for each step up to the unit asked for.
- How do you calculate the file size of a sound recording?
- Multiply the sample rate, the resolution and the length of the track in seconds. The formula is sample rate × resolution × length (s). The answer is in bits, so divide by 8 to get bytes.
- What is the difference between lossy and lossless compression?
- Lossy compression reduces the file size by permanently removing data, such as unnecessary colours, and the original cannot be recovered. Lossless compression reduces the file size without permanent loss of data, for example run length encoding (RLE). MP4 and JPEG are lossy.
- Does compression make a download faster?
- No. Compression reduces the download time, because the file is smaller. The speed stays the same. Compression reduces the size of the file, so less storage space and less bandwidth are needed.