Data Representation Flashcards

1
Q

Explain how an integer would be stored in a computer

A

An integer would be stored a **binary number

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

Write the conversion table to convert a binary number to a denary number

A

128 |64 | 32 | 16 | 8 | 4 | 2 | 1

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

What is a real number

A

A number with a decimal point

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

How would a real number be stored in a computer

A

A real number would be stored in
binary using floating point representation with a mantissa and exponent

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

What is an integer

A

A whole number (with no decimal point)

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

Identify the Mantissa - 0.5387 X10 23

A

5387

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

Identify the Exponent - 0.5387 X10 23

A

23

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

What is a control character give an example

A

Control characters are used to perform actions rather than to display a printable character on screen.

Examples include ‘Escape’, ‘Backspace’ and ‘Delete

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

What is a printable character and give an example of one

A

Printable characters are used to show a character on screen.

Letters, symbols, numbers and punctuation marks are all examples of printable characters.

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

How would text or a string be stored in a computer

A

Text would be stored using extended ASCII each character would be respresented by a 8 bit binary number

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

How many bits would it take to represent the phrase “data representation

A

162 (19 x 8)

19 letters 4 for data, 1 for the space and 14 for representation

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

Using extended ASCII how many characters could be represented using 64 bits?

A

8

8 bits per character - 64/8

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

Explain how a bit map graphic would be stored in a computer

A

A bit map would be stored as a grid of pixels with a binary number used to represent the colour of each pixel

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

Explain how a vector graphic would store an image in a computer

A

In a vector graphic each shape is represented by an object which has number of attributes that define how it looks

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

List the 4 vector graphic objects you need know for Nat 5 Computing

A

Polygon
Rectangle
Ellipse
Line

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

Name vector graphic object used for a 5 sided shape

A

Polygon

17
Q

Name the vector graphic object used to represent an Octagon

A

Polygon

18
Q

Name the vector graphic object used to respresent a circle

A

Elipse

19
Q

Name the vector graphic object used to represent an oval

A

Elipse

20
Q

Name the vector graphic object used to represent a square

A

Rectangle

21
Q

Name the vector graphic object and 2 attributes to represent a red rectangle

A

Object: Rectangle
Attributes: x and y coordinates, line colour and fill colour

22
Q

Name the vector graphic object and 2 attributes used to represent a blue line

A

Object: Line
Attributes: x and y coordinates and line colour

23
Q

List the 3 vector graphic atributes you need know for Nat 5 Computing

A

Coordinates
Line colour
Fill colour

24
Q

Which of the following vector graphic atributes should not be used with a line object. Coordinates, Line colour, Fill colour

A

Fill colour