1. Data Representation Flashcards
Why does data have to be converted to binary to be processed by a computer?
Computers are built using switches that can either be on or off, which fits the binary number system (1/0)
Define binary data
Binary data is data represented using the binary number system, consisting of only two digits: 1 and 0
Why do computers use binary?
Computers are built using circuits and transistors. The circuits only need to check for states:
On/off
True/False
North/south
1/0
Define binary number system
A base-2 number system that represents number using only two digits: 0 and 1
What is an example of binary representation in secondary storage devices?
Magnetic hard drives, where North and South polarity represent 1 and 0
What is the advantage of processing data in binary format for computers?
Allows computers to perform complex calculations, store vast amounts of data efficiently, and operate at incredible speeds.
What is denary
A base-10 number system made up of 10 digits (0-9) where each digit has a weight factor of 10 raised to a power
What is hexadecimal?
Hexadecimal is a base-16 number system made up of 16 digits, including 10 numbers (0-9) and 6 letters (A-F)
How many unique values can one hexadecimal digit represent?
One hexadecimal digit can represent 16 unique values (0-F)
What is a binary digit called?
A bit
What is the largest decimal number that can be represented by 8 bits in binary
255 (11111111 in binary)
How many bits does one hexadecimal digit represent?
4 bits (half a byte or one nibble)
Define nibble
4 bits of binary data or half a byte
What is the non-mathematical method for converting denary to hexadecimal?
Convert denary to binary
Split into nibbles
Then convert each nibble to hexadecimal
What is the non-mathematical method for converting hexadecimal to denary?
Convert each hexadecimal digit to 4-bit binary
Join the 2 nibbles together
Convert binary to denary
Define byte
A unit of digital information that consists of 8 bits
Why is hexadecimal preferred when working with large values in Computer Science?
Hexadecimal is preferred because it takes fewer digits to represent a given value than binary, making it easier to read and less prone to errors when copying
What are three common uses of hexadecimal in computing?
MAC addresses
Colour codes
URL encoding
Define overflow error
When the result of a binary addition exceeds the available bits
Define binary shift
How a computer system performs basic multiplication and division by moving binary digits left or right a set number of times
What does a left shift do?
A left shift multiplies a binary number by 2
What does a right shift do?
Divides a binary number by 2
Define underflow error.
When a result is too small to be represented in the available storage space