3.3 Data Rep Flashcards
How is all data stored in a computer (2 marks)
- In a computer, all data is stored in binary form.
- A binary digit has two possible states, 1 and 0.
What base is binary
Base 2
What is data - simply (3)
- Units of information
- In computing there can be different data types, including integers, characters and Boolean. - Data is often acted on by instructions.
Binary digit:
- name
- how big
A binary digit is known as a bit.
A bit is the smallest unit of data a computer can use
What can a bit be
0 or 1
Symbol of a bit
b (lower case b)
How many bits in a byte
A byte if a group of 8 bits
What is the fundamental unit of information
A bit
Symbol of byte
B (upper case B)
All the quantities in the binary unit system :
8 bits 1 byte (B)
1,000 bytes (1,000 B) 1 kilobyte (KB)
1,000 kilobytes (1,000 KB) 1 megabyte (MB)
1,000 megabytes (1,000 MB) 1 gigabyte (GB)
1,000 gigabytes (1,000 GB) 1 terabyte (TB)
1,000 terabytes (1,000 TB) 1 petabyte (PB)
What’s a nibble?
Four bits or half a byte is known as a nibble.
When calculating storage space for disk drives, it is common to use multiples of __.
These are shown in the table above as ?
When calculating storage space for disk drives, it is common to use multiples of 1,000. These are shown in the table above as kilobytes, megabytes etc.
Decimal system is base what?
10
The digits in the decimal system:
0, 1, 2, 3, 4, 5, 6, 7, 8 and 9.
How computers use decimal numbers
Decimal numbers must be converted into their binary equivalent before a computer can use them.
Denary
Decimal
The first eight binary place values are:
128 64 32 16 8 4 2 1
binary number 1111100
In decimal?
128 64 32 16 8 4 2 1
0 1 1 1 1 1 0 0
Result - (0 × 128) + (1 × 64) + (1 × 32) + (1 × 16) + (1 × 8) + (1 × 4) + (0 × 2) + (0 × 1) = 124
What would these binary numbers be in decimal?
1001
10101
11001100
9
21
204
In words - to convert binary to decimal…
To convert binary to decimal, simply take each place value that has a 1, and add them together.
In words, to convert decimal to binary…
To convert from decimal to binary, start by subtracting the biggest place value possible from the decimal number, then place a 1 in that place value column. Next, subtract the second biggest place value possible, and place a 1 in the column. Repeat this process until zero is reached. Finally, place a 0 in any empty place value columns.
84 in decimal in binary?
Result - 84 in decimal is 01010100 in binary.
To check that binary conversion is right?
To check that this is right, convert the binary back to decimal:
(0 × 128) + (1 × 64) + (0 × 32) + (1 × 16) + (0 × 8) + (1 × 4) + (0 × 2) + (0 × 1) = 84
Alternative way to convert a decimal number to binary
Another way to convert a decimal number to binary is to divide the starting number by two. If it divides evenly, the binary digit is 0. If it does not and there is a remainder, the binary digit is 1. Finally, reverse the digits and you have the correct number.