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
Why can data displayed in a computer only be stored as digital data?
Because it can only be in two states: on or off
Describe how a camera captures an image
- Light is focussed onto a sensor that contains a CCD or a CMOS
- The sensor is made up of transistors which contain information for one or more bits
- Light is then converted into electrons and the amount of charge is recorded for each pixel
- This is the data used to recreate the image
(There are typically three sensors for red, green and blue light)
Define resolution
The number of pixels used to make up a bitmap image (pixels per inch or width x height)
What happens if you increase resolution?
The quality of the image increases and the file size increases as well
Define bit depth
The number of bits per pixel allocated to represent the colour
What happens if you increase bit depth?
The number of colours that can be expressed increases so the quality increases and the file size increases
Define metadata
Data about data
What are analogue signals?
Continuous signals
What are digital signals?
Non-continuous (discrete) signals
Give an example of an analogue to digital converter
Microphone
Give an example of a digital to analogue converter
Speaker
What method is used to convert analogue sound to digital sound?
Sound sampling
Define sample rate
How often a sample is taken during a recording
Define sample resolution
How many bits are used for one sample of sound
What does Nyquist’s theorem state?
It says that the sample rate should be at least twice the frequency of the sound in order to replicate it accurately
What does an amplifier do?
It measures the amplitude of sound waves in samples and translates this into binary
What does MIDI stand for?
Musical Instrument Digital Interface
What are the advantages of MIDI?
- MIDI files tend to be smaller than an equivalent sound sampled recording (less memory and loads faster)
- MIDI files are editable and individual instruments can be selected and modified
- MIDI supports a wide range of instruments which provides more choices for music production
- MIDI files can produce very high quality recordings (no background noise)
Give one reason why a transfer may be slower or more susceptible to errors
The transfer distance has increased or the amount of data being transferred increases
What is the difference between lossy and lossless compression?
Lossy compression deletes any unnecessary information in order to compress it where as lossless compression retains all information
Why might lossy compression be viewed as preferable to lossless?
It is more effective at reducing file size
Why might lossless compression be viewed as preferable to lossy?
The quality is higher and the file can be restored to it’s original state
Give an example of lossless compression
Run Length Encoding or Dictionary Compression