Unit 3 - Data Representation Flashcards
Define natural numbers
Numbers that exists in a set and increases in units of 1 from 0 .e.g. [0,1,2,3,4]
Define integer numbers
Any whole positive or negative number .e.g. -1, 8, 42, -17
Define rational numbers
Any number that can be written or expressed as a fraction or a ratio and are not whole .e.g. 7/2, 4.7, recurring decimals
Define irrational numbers
Any number that cannot be expressed as a fraction because it has a never ending and inconsistent pattern of numbers after the decimal .e.g. Pi
Define ordinal numbers
Numbers that denote something’s position .e.g. 1st, 4th, 2nd
Define real numbers
Rational and irrational numbers
What does base 10 denote with regards to number systems?
This denotes that there are 10 figures which comprise numbers in the number system .e.g. denary
What does base 2 denote with regards to number systems?
This denotes that there are 2 figures which comprise numbers in the number system .e.g. binary
What does base 16 denote with regards to number systems?
This denotes that there are 16 figures which comprise numbers in the number system .e.g. hexadecimal
Define a bit
A single binary digit from a binary number
Define byte
A set of 8 bits used to represent a single character
How do you convert from binary to demical?
Add together the values in the columns which contain a 1 to get the decimal number
How do you convert from decimal to binary?
Go from the largest value to the smallest, if the denary number is greater than that number place a 1 in the column, if it is smaller place a 0. Repeat this until the subtraction results in 0.
How do you convert from hexadecimal to denary?
Add the two values together, if it is a letter convert the letter to the denary equivalent and then convert them
How do you convert from hexadecimal to binary?
Convert each characters value into binary in individual nibbles and then place them together
How do computers perform operations?
They contain a series of logic gates that can be organised in different ways to perform different operations
What are the rules for binary multiplication?
- 1x1 = 10
- 1x0 = 0
- 1x1x1 = 11
What are the rules for binary multiplication?
- 1x1 = 1
- 1x0 = 0
Define overflow
An error that occurs when a number is too large to be represented by the number of bits allocated
What type of error is caused by overflow?
Logic error
How do you subtract two binary numbers?
Use two’s complement to convert the number you want to subtract into a negative and then add the two numbers together
How do you perform two’s complement?
- Flip the bits
- Add 1
How are fractions expressed in binary?
The same way integers are expressed except that you work left to right and the descending values decease by 2^-n
Define digital data
Data that is expressed in binary