Topic 3 - Data Representation and boolean Logic Flashcards
1
Q
what is an overflow?
A
- when a result requires more bits than the CPU is expecting
- computers usually store extra bits elsewhere
2
Q
problems caused by overflow errors
A
- loss of data and accuracy in answer
- could cause software to crash if it doesn’t have a way of dealing with extra bit
3
Q
left binary shifts
A
- moves every bit to the left a certain number of places
- multiply a binary number x2 every place shifted
4
Q
right binary shifts
A
- moves every bit to the right a certain number of places
- divides a binary number by 2 every place shifted
5
Q
hexadecimal
A
- base 16 number system
- each digit represents 4 bits or a nibble
6
Q
advantages of using hexadecimal
A
- easier to remember large numbers as they are shorter than binary numbers
- shorter, less chance of input errors
- easier to convert from hex to binary
7
Q
what are character sets?
A
- a collection of characters a computer recognises from their binary representation
8
Q
ASCII
A
- each character is given a 7 bit binary code
- can represent 128 different characters which includes all letters, numbers, etc in English alphabet
9
Q
Unicode
A
- it covers every possible character that might be written
- uses multiple bytes for each character and covers all major languages
- first 128 codes same as in ASCII : compatible
10
Q
how are images stored?
A
- stored as bitmap images made up of tiny dots called pixel
-each pixel is represented by a binary code
11
Q
colour depth
A
- number of bits used per pixel
- total number of colours =
2ₙ , where n = colour depth - greater colour depth = greater range of colours which makes the image more realistic and life-like
12
Q
resolution
A
- number of pixels in the image
- measure in DPI : dots per inch
- greater resolution, more pixels which makes the image look sharper
- increases quality of image
13
Q
impact of increasing both
A
- increases file size
- takes up more space on secondary storage
14
Q
how is sound stored
A
- sound recored by microphone as an analogue signal
- converted to digital data by A-D converters so computers can read and store sound files
15
Q
sample rate
A
- how many samples are taken per second
- analogue recording sampled more often
- ## better quality and match original sound more closely
16
Q
bit depth
A
- how much bits available per sample
- larger bit depth = larger range of sounds
- it can pick up quieter and louder sounds, closer quality to original sound
17
Q
compression
A
- reducing the size of a file
18
Q
A