Data Types Flashcards
1
Q
How are characters represented on a computer?
A
- In binary format
- Each character assigned a code point
2
Q
What is ASCII?
A
- American Standard Code. For Information Interchange
- 7 bit standard ASCII is able to represent 128 different characters
- MSB is set to 0
- 128 unused code points
3
Q
What is extended ASCII?
A
- Makes use of remaining 128 codes
- represents special characters
- many different extended ASCII code sets
- useful for representing different languages
4
Q
What is Unicode?
A
- ASCII uses 1 byte per character, so can only store 256 characters
- some languages have > 12,000 characters
- Unicode uses 2 bytes per character
- This equates to 65,536 different characters
- Eliminates the need for extended character sets
- Extended Unicode uses 21 bits allowing us to represent dead languages
5
Q
What are sound cards?
A
-Translate analogue sound into digital signals for the computer to understand
6
Q
How are sound waves converted so a computer can understand them?
A
- Converted via equipment such as microphone into voltage changes
- Changing voltage is sampled at intervals, sample rate
- Sampled values converted into binary
- Collection of binary values stored as a sound file
7
Q
What is a digital analogue converter?
A
- Stored sound data recreated using DAC
- Binary numbers converted back into a varying voltage
- When the voltage is fed to a speaker driver it results in vibrations which reproduce the sound
8
Q
What is the sampling rate?
A
- Number of samples taken per second (from analogue sound waves)
- Measured in hertz (44.1 KHz for an audio CD)
- Higher sample rates means the closer the match between the original analogue sound waves and digital version. However more processing power is required to manipulate data and the file size will be larger.
9
Q
What is the bit rate?
A
- Number of memory bits used to store each sample per given time period
- Higher bit rate = larger file
10
Q
What is a bitmap image?
A
- Groups of pixels
- colour of each pixel stored as binary code
- Becomes pixelated when enlarged. The pixels are larger and more visible
- To store large or high res images a bitmap needs to store more information and the size of the file increases with size and resolution
11
Q
What is the colour depth?
A
- The number of bits used for each pixel
- More bits per pixel means..
- More combinations of pixels means more colours possible
- 1 bit/pixel = 2 possible colours
- 24 bit / pixel = 16 million possible colours
12
Q
What are vector graphics?
A
- Stored as set of instructions
- How to draw each shape
- Geometric shapes, logos and text
- When enlarged, entire image is redrawn
- No pixelation occurs. Smooth rescaling
- Usually smaller files sizes
- Size of file it not affected by size of image as the definition for the primitive shapes and control points remain unchanged
13
Q
What are the main data types we use?
A
- Character: single letter, digit, symbol or control code
- String: A string of alphanumeric characters
- Boolean: one of two values (true or false)
- Integer: Whole number values with no decimal parts
- Real: Numbers with decimal or fractional parts
- floating point: Any number with a fractional part, processed to a limited number of SF
14
Q
1) Go through examples of how to convert +/- denary > +/- Binary and how to convert denary and binary into hex
2) Also go through binary mathematics
A
Do above
15
Q
What is metadata?
A
- Information about the image that allows the computer to interpret the stored binary accurately to reproduce the image.
- Contains width, height and colour depth