Data Representation Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

STORAGE UNITS:

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

How to covert from unit to unit:

A
Bit                         ⬇️divide by 8
Byte                      ⬆️multiply by 8
————————————————
Kilobyte                ⬇️divide by 1000
Megabyte             ⬆️multiply by 1000
Gigabyte 
Terabyte 
Petabyte
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What can Boolean be stored with?

A

Bits

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is half a bite known as?

A

A nibble

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

How many bits are in a byte?

A

1 byte = 8 bits

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

How many bytes are in 1 kilobyte?

A

1kilobyte(KB) = 2^10= 1024 bytes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is a bit?

A

A single/smallest unit of binary data

Bit = (symbol) b, (binary value) 0 or 1

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

How many bits are in a nibble?

A

4 bits = 1 nibble

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

How many bits are in a byte?

A

1 byte = 8 bits

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

How many bytes are in a kilobyte?

A

1000 bytes = 1 kilobyte

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

How many kilobytes are in a megabyte?

A

1000 kilobytes = 1 megabyte

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What base system is binary?

A

Base 2

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

How many megabytes are in gigabyte?

A

1000 megabytes = 1 gigabyte

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

BINARY CONVERSIONS:

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What is the conversion table of binary?

A

128 64 32 16 8 4 2 1

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

BINARY ARITHMETIC:

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

What and how do you do binary left shift?

A

First you write the decimal number in binary. Then you move it left by the shift (for example, it may say left shift by 2). This as a multiple of the original becomes X4. This as a multiple of a power of 2 becomes 2^2.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

What and how do you do binary right shift?

A

First you write the decimal number in binary. Then you move it right by the shift (for example, it may say right shift by 4). This as a division of the original becomes /16. This as a division of a power of 2 becomes /2^4.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

HEXADECIMAL:

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q

What base system is hexadecimal?

A

Base 16

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
21
Q

What digits does hexadecimal use?

A

Numbers 0-9

Letters A-F

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
22
Q

CHARACTER REPRESENTATION:

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
23
Q

•What does ASCII stand for?

A

American Standard Code for Information Interchange

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
24
Q

•How many bits does ASCII use?

A

7 bits

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
Q

•How many characters will this (ASCII) give?

A

128 characters

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
26
Q

•1 letter uses how much storage?

A

1 byte of storage

27
Q

•4 letters will use how much storage?

A

4 bytes of storage

28
Q

•What do other countries need to use?

A

Extended ASCII character set

29
Q

•Why do other countries use Extended ASCII?

A

It is unique to their language and has extra characters, letters, and symbols

30
Q

•How many bits are used are used in Extended ASCII?

A

8 bits

31
Q

•How many characters will this (Extended ASCII) give?

A

225 characters

32
Q

•What happens when a key is pressed on a British keyboard?

A

A code is generated that the computer can convert into a symbol for display or printing (the output)

33
Q

•What if more than 256 characters are needed?

A

Unicode will be used (2 bytes)

34
Q

Explain the possible limitations of using the ASCII character set for global communication.

A

It includes a range of characters, symbols, and letters.
It is specific/unique to one languages.
It is less demanding on memory.
It uses 7 bits of a byte to represent a character.

35
Q

Explain the advantages of Unicode over ASCII for encoding characters.

A

it provides more than 4 billion possibilities.
ASCII fails to deal with the range of other characters we often need, such as those used in various non-English languages and mathematical symbols.

36
Q

IMAGE REPRESENTATION:

A
37
Q

State one way, other than increasing the number of colours available for each pixel, that the quality of a bit-mapped image could be improved.

A

Increasing number of pixels in the image and increase the resolution

38
Q

Define the term pixel.

A

The basic unit of programmable colour on a computer display or in a computer image. The smallest part of a bitmap image.

39
Q

Images can be represented in a computer’s memory as a bitmap. Explain how an image can be represented as a bitmap.

A

An image is broken down into pixels. The more pixels, the more clearer the image becomes.
Each pixel contains a number of bits to represent the colour. The more bits, the more colours.

40
Q

State the maximal number of different colours that can be encoded when using two bits for each pixel.

A

2 to the power of 2 = 4

41
Q

State the minimal amount of bits needed to encode 32 different colours.

A

5√32 = 2

42
Q

State one factor, other than the number of bits used to represent individual colours, that can affect the quality of a bitmap image.

A

the resolution and the number of pixels

43
Q

If an image has a resolution of 100x100 and a colour depth of 16bit. What size is the file in bytes?

A

100x100=10,000
2 to the power of ?=16
?=4
10,000x4=40,000 bytes

44
Q

SOUND REPRESENTATION:

A
45
Q

How does sound travel?

A

Sound travels as a wave. An analogue wave is continuous and doesn’t have any specific ranges. 
Inputs and outputs would usually be analogue. However, to process this data it needs to be converted into binary. 
This is done by taking samples of the analogue wave’s amplitude at regular time intervals.
A binary value is then given to each of these readings.
The sampling (rate) frequency is how many times a sample is taken per second, measured in hertz(Hz). 
 The sampling resolution is how many bits are available to store the samples. Also known as bit depth.

46
Q

How do you work out file size?

A

SAMPLE RATE (Hz) X SAMPLE RESOLUTION (bits) X LENGTH (seconds) = FILE SIZE.

47
Q

Calculate the file size in bits for a two minute sound recording that has used a sample rate of 1000 Hertz (Hz) and a sample resolution of 5 bits. You should show your working.

A
Time- 2 minutes (120 seconds) 
Sample resolution- 5 bits per second 
Bits- 4 
5x4 = 20 bits 
20x120 =2400 bits
48
Q

The sound engineer is using a sampling rate of 2000 Hz and a sample resolution of 4 bits. What is the minimum file size of a 5 second recording? Your answer should be given in bytes. You should show your working.

A
Time – 5 seconds 
Sample resolution- 4 bits per second 
Bits- 4 
4x4 =16 bits 
16x5 =60 bits 
60 bits x 8 = 480 bytes
49
Q

COMPRESSION:

A
50
Q

What two methods can be used to compress data?

A

RLE (Run Length Encoding) and Huffman Coding

51
Q

Whoooooooowhooooooooooooo!

1) How many bits does ASCII use to store one character?
2) How many CHARACTERS are in this string?
3) Convert this into run length pairs.
4) How many bits are used ORIGNINALLY to store this?
5) How many bits are used to store once COMPRESSED?
6) CHALLENGE QUESTION:
How many extra bits does this use when stored as ASCII?

A

1) One byte (8 bits)
2) 26 characters
3) (1 W) (1 h) (8 o) (1 w) (1 h) (13 0) (1 !)
4) 8x26 = 208 bits
5) 8+8= 16bits
16x7= 112 bits
6) 208-112= 96 extra bits

52
Q

KEY WORDS:

A
53
Q

Binary:

A

A digital coding system which uses two values to represent data, 0 and 1.
Base 2 number system.

54
Q

Decimal:

A

Relating to or denoting a system of numbers and arithmetic based on the number ten, tenth parts, and powers of ten.
Base 10 number system.

55
Q

Hexadecimal:

A

Base 16 number system. Starts from 0-9 then A-F. Represents binary in a shorter form. Does not save memory.

56
Q

Bitmap:

A

An image made up of pixels.

57
Q

Pixel:

A

Smallest part of a bitmap image.

58
Q

Resolution:

A

Number of pixels in an image.

59
Q

Colour (bit) depth:

A

The number of bits used to represent a colour in a pixel.

60
Q

Metadata:

A

Means “data about data”; it provides information about the image. Extra information about a file.

61
Q

Lossy compression:

A

A method of data compression in which the size of the file is reduced by eliminating data in the file.
Makes a file smaller and data is lost.

62
Q

Lossless compression:

A

As the file size is compressed, the picture quality remains the same- it does not get worse. Is a compression technique that does not lose any data in the compression process.
Makes a file smaller and no data is lost.

63
Q

Sampling frequency:

A

This is how many times a sample is taken per second, measured in hertz (Hz).

64
Q

Sampling resolution:

A

This is how many bits are available to store the samples.