Data Representation Flashcards Preview

CfE Higher Computing > Data Representation > Flashcards

Flashcards in Data Representation Deck (25)
Loading flashcards...
1

What is the only type of data the CPU can store and process?

Binary

2

Why is it important for us to have a universal text system?

To allow all computers to use the same codes to represent the same characters
Only have to learn one code to work on many computers

3

Give an example of a ASCII code and what it represents

65 = A
97 = a
etc

4

Give an advantage of
a) Unicode compared to ASCII
b) ASCII compared to Unicode

a) Larger range of characters can be represented
b) Smaller storage requirements

5

Describe ASCII

ASCII(American Standard Code for Information Interchange) is a system used to represent characters. It stores each character in 8 bit code.

6

Why do computers use base 2 instead of base 10?

Base 2 is ideal for storing binary numbers
Base 10 requires a lot of processor space to build in rules for arithmetic such as addition,subtraction

7

How are integers stored in a computer?

Each integer has an individual binary number.

8

How many values can be represented by 5 bits?

2^5

9

What is the range of values that can be stored in 18 bit?

0 to 2^18 - 1

10

How can negative integers be represented on a computer system?

Two's complement

11

How do you represent floating point numbers in a computing system?

Floating Point Form

12

If you allocate more bits to storing the mantissa of a floating point number, what will happen?

The precision of the number will increase

13

How would you increase the range of a floating point number?

Allocate more bits to the storage of the exponent

14

Describe a bit-map image

A bit-map image is where the image is stored as a 2D array of pixels where each pixel can be individually edited. The colours in the picture are each a unique binary number.

15

What is the definition of 'bit depth'

Bit depth is the number of bits used to store each pixel

16

If you increase the resolution of a picture, what are you increasing?

The number of pixels in a defined place

17

What is an advantage of storing your image as a bitmap rather than a vector?


  • Able to individually edit pixels

  • Able to do red eye removal

18

Describe how images are stored as vector images

In vector images, the image is stored as a series of vectors which describe the attributes of the objects in the image. For example, the vectors of a circle could relate to fill colour, line thickness, radius, centre(x,y) etc

19

If the bit depth is represented by n , what would be the number of colours?

2^n

20

Describe advantages of storing your image as a vector rather than a bitmapped image


  • Able to layer objects

  • Able to resize and rotate individual objects

  • Resolution Independant

21

What are advantages to compressing your images?


  1. Faster file transfer speed

  2. Less memory required to store images

22

Give an example of a file type that uses lossy compression

JPEG
MP3

23

Give an example of a file type that uses lossless compression

GIF

24

Describe how Discrete Cosine Technique reduces file size and state what type of compression it is

Discrete Cosine Technique is a LOSSY compression technique that applies a mathematical formula based on the cosine wave to groups of 64 pixels (8 x 8)

25

Lauren has a picture of the Swedish Flag she would like to send to her friend. What form of compression should she use to ensure it has a fast data transfer speed?

She should use RLE(Run Length Encoding) as the Swedish flag has runs of repeating colours which she could save as the colour and how long the run is