Data Representation Flashcards
Explain how an integer would be stored in a computer
An integer would be stored a **binary number
Write the conversion table to convert a binary number to a denary number
128 |64 | 32 | 16 | 8 | 4 | 2 | 1
What is a real number
A number with a decimal point
How would a real number be stored in a computer
A real number would be stored in
binary using floating point representation with a mantissa and exponent
What is an integer
A whole number (with no decimal point)
Identify the Mantissa - 0.5387 X10 23
5387
Identify the Exponent - 0.5387 X10 23
23
What is a control character give an example
Control characters are used to perform actions rather than to display a printable character on screen.
Examples include ‘Escape’, ‘Backspace’ and ‘Delete
What is a printable character and give an example of one
Printable characters are used to show a character on screen.
Letters, symbols, numbers and punctuation marks are all examples of printable characters.
How would text or a string be stored in a computer
Text would be stored using extended ASCII each character would be respresented by a 8 bit binary number
How many bits would it take to represent the phrase “data representation”
162 (19 x 8)
19 letters 4 for data, 1 for the space and 14 for representation
Using extended ASCII how many characters could be represented using 64 bits?
8
8 bits per character - 64/8
Explain how a bit map graphic would be stored in a computer
A bit map would be stored as a grid of pixels with a binary number used to represent the colour of each pixel
Explain how a vector graphic would store an image in a computer
In a vector graphic each shape is represented by an object which has number of attributes that define how it looks
List the 4 vector graphic objects you need know for Nat 5 Computing
Polygon
Rectangle
Ellipse
Line