3. Fundamentals of data representation Flashcards
What are the three number bases?
denary (base 10)
binary (base 2)
hexadecimal (base 16)
What base do computers use to represent all data and instructions?
binary
Why is hexadecimal often used in computer science? (2)
- large numbers can be stored using fewer digits (is a form of short-hand for coders as they do not want to type loads of 1s and 0s)
- easy to converted denary to hex to binary and vice versa
LOOK AT COMPUTING ONENOTE
note: computers do everything in binary, only humans use hex and denary
convert 8D (hex) to binary
(and show working)
10001101
8D
= 8 D
= 1000 1101
= 10001101
(you separate each character into its 4 digit binary equivalent)
convert 10010100 (binary) to hex
94
Convert every 4 binary digits (from bit0) to hex digit
10010100
= 1001 0100
= 9 4
= 94
what is the smallest/fundamental unit of information?
a bit (either 0 or 1)
how many bits is a byte
8 bits
write out the prefixes for bytes in ascending order
kilo
mega
giga
tera
all go up by 1000
When can binary shifts be used?
Binary shifts can be used to perform simple multiplication/division by powers of 2, with multiplication shifting to the left and division shifting to the right.
What is a character set?
All of the characters that a computer can use are called a character set
how many bits are in extended ASCII? (1)
how many characters in the character set? (1)
what is the purpose of extended ASCII? (1)
which languages is extended ASCII suitable for? (1)
Extended ASCII uses eight bits (1), giving a character set of 256 characters (1). This allows for special characters such as those with accents in some languages (1) such as French and Spanish (1).
how many bits are in unicode? (1)
how many characters in the character set? (1)
what is the purpose of unicode? (1)
which languages is it suitable for? (1)
Unicode is a character set which uses 16 bits (1), giving a range of over 65,000 characters (1). It is suitable for languages that contain hundreds to thousands of characters (1) such as Chinese or Arabic (1).
Know that Unicode uses the same codes as ASCII up to 127.
do u know it?
What is the purpose of Unicode and the advantages of Unicode over ASCII?
Students should be able to explain the need for data representation of different alphabets and of special symbols allowing a far greater range of characters.
What is a pixel (and what is it short for)?
A pixel is a single point in an image and is short for picture element