Data Representation Flashcards
Define the term ‘Number base’.
Number Base - the number of unique digits available in a numbering system.
Describe ‘decimal number base’.
Base 10: with 10 unique digits
0,1,2,3,4,5,6,7,8,9
Describe ‘Binary number base’.
Base 2: with 2 unique digits
0,1
Describe ‘Hexadecimal number base’.
Base 16: with 16 unique digits
0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F
Explain the purpose of using Hexadecimal.
Hexadecimal is used as shorthand, since it is easier to write and less prone to being misread (one hexadecimal digit is 4 binary digits)
How are whole numbers represented in binary?
/128/64/32/16/8/4/2/1/
/ 1 / 0 / 0 / 1 /1/1/0/0/ = 128+16+8+4 =156
How is hexadecimal used to represent whole numbers?
/128/64/32/16/8/4/2/1/
/ 1 / 0 / 0 / 1 /1/1/0/0/ 156 in binary
/8/4/2/1/ /8/4/2/1/
/1/0/0/1 /1/1/0/0/ is 9C in Hexadecimal
Define the term ‘bit’.
Bit - a single binary digit
Define the term ‘byte’.
Byte - A sequence of 8 bits
Define the term ‘kilobyte’, ‘megabyte’, ‘gigabyte’, ‘terabyte’
Kilobyte - approximately 1,000 bytes
Megabyte (MB)- approximately 1,000,000 bytes
Gigabyte (GB) - approximately 1,000,000,000 bytes
Terabyte - approximately 1,000,000,000,000 bytes
What are rules of binary addition?
1 + 0 = 1
1 + 1 = 10
1+ 1+ 1 = 11
What is overflow error?
When a system of program tries to store more data than it can handle in a fixed-size location, and crucial data is lost.
What are the ways you can apply ‘binary shift’?
Shift left 1 place = x2
Shift left 2 places = x4
Shift left 3 places = x8
Shift right 1 place = /2
Shift right 2 places = /4
Shift right 3 places = /8
Define the term ‘character set’.
Character set - a list of all characters recognised by a computer system. Each character has a corresponding code. e.g. ASCII or Unicode
Describe the ‘ASCII’ Character set.
ASCII uses 7 bits, and 128 different characters can be represented