Fundamentals of data representation Flashcards

1
Q

What is ASCII?

A

American Standard Code for Information Interchange - a character set that PCs sometimes use.

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

How many bits does ASCII use for each character?

A

7 bits

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

How many possible symbols can ASCII code?

A

128 possible unique symbols.

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

What is Unicode?

A

A new standard for representing the characters of all the languages in the world - chinese, arabic, japanese and greek characters.

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

How many bits does Unicode use for each character.

A

8-32 bits per character, uses same codes as ASCII up to 127.

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

Why are sound waves converted from analogue to a digital format?

A

It can only be stored in a numerical representation using an Analogue to Digital Converter (ADC).

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

How is the analogue signal from sound waves converted to a digital format?

A
  1. Analogue sound is received by a microphone
  2. This is converted into an electrical analogue signal
  3. Signal amplitude is measured at regular intervals (sampled)
  4. Values are rounded to a level (quantisation)
  5. Values are stored as a series of binary numbers
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is a sample?

A

Measure of amplitude at a point in time.

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

How can sound quality be improved?

A

Sample the sound more frequently and the runback will be smoother as well.

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

Explain what data compression is.

A

Compressing files

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

Why is data compressed?

A

Reduce amount of storage needed on a computer to save files.
Allow large files to be transmitted as an email attachment (reduces file size to allow users to send it).
Allow a file to be transmitted in less time (smaller file size)

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

Explain lossy compression.

A

Data encoding method: files are compressed by removing some of the detail. Used to compress images, audio files and video files.

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

Give an example of lossy compression.

A

Photographs can be stored using fewer colour so fewer bits are needed per pixel.

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

Explain lossless compression.

A

Data encoding method: files are compressed but no data is lost - essential factor for text and data files. Used to compress data files before attaching them to an email.

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

Give an example of lossless compression.

A

Bank records must keep all data - cannot transmit a bank statement and miss out zeros!

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

What is .jp?

A

JPEG, lossy - good for photographs

17
Q

What is .gif?

A

Graphic Interchange Format, lossless - good for images with large areas of solid colour, ideal for web graphics.

18
Q

What is .mp3?

A

MP3, lossy - Audio files: designed for downloading music from internet, can fit 120 songs in MP3 format.

19
Q

What is .bmp?

A

Bitmap - uncompressed still image.

20
Q

What is huffman coding?

A

Data compression technique, reduces the number of bits used to represent each letter - more frequently a letter appears in text, fewer bits used to represent it in text file.

21
Q

How is data compressed using huffman coding?

A

Uses binary tree structure, consists of root nodes and a number of nodes and branches. Each node has exactly one branch entering it and zero, one or two branches leaving. Root node has no branches entering it.

22
Q

How do you calculate the number of bits required to store a piece of data compressed using Huffman coding.

A

Finding coding for each character by path taken from root node to the character. Left branch = 0, right branch = 1.
Add total number of bits.

23
Q

How do you calculate the number of bits required to store a piece of uncompressed data in ASCII.

A

total bits x 7

24
Q

Explain how data can be compressed using run length encoding (RLE).

A

Lossless data compression - runs of data are stored using frequency/data pairs.

25
Q

What is a run in reference to RLE?

A

Consecutive repeating data.