Binary unit 3 Flashcards
(13 cards)
Why do computers use binary?
Computers use binary because they process data using electrical signals that have two states: on (1) and off (0).
What is binary used to represent in a computer?
Numbers, text, sound, graphics, and program instructions.
What is the range of values in 8-bit binary?
0 to 255 (since 2⁸ = 256 values).
What happens in an overflow error?
It occurs when a calculation exceeds the maximum value a binary system can store.
What is a left binary shift used for?
Multiplying a binary number by powers of 2.
What is a right binary shift used for?
Dividing a binary number by powers of 2.
What are the two methods to store signed integers?
- Sign and magnitude
- Two’s complement
What is the advantage of two’s complement?
It allows for simpler binary arithmetic with both positive and negative numbers.
Why is hexadecimal used?
It’s easier to read and remember than long binary numbers and represents binary more compactly.
How many binary digits does one hex digit represent?
4 binary digits (bits).
What is the hexadecimal equivalent of binary 1111 0000?
F0 (F = 1111, 0 = 0000)
What are file sizes measured in?
Bytes, where 1 byte = 8 bits.
How do you calculate the file size of an image?
File size = Width × Height × Colour depth (bits per pixel) ÷ 8