Computer Systems (Data Representation) Flashcards

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

How are positive numbers represented in a Computer

A

They are represented in binary

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

128 64 32 16 8 4 2 1

1 0 0 0 0 1 1 1

What decimal number is represented in binary by 10000111?

A

135

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

How are real numbers represented?

A

Real numbers must be able to store decimal numbers the floating point system is used.

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

Explain how the floating point system works?

A

The Mantissa dictates the precision of numbers and the Exponent dictates the range

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

What is the mantissa in a floating point system?

A

The number of bits allocated to the Mantissa dictates the precision of a real number. More bits to the Mantissa leads to greater precision. Less bit leads to less precision.

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

What is the exponent in a floating point system?

A

The number of bits allocated to the Exponent dictates the range of a real number. More bits to the Exponent leads to greater range. Less bit leads to less range.

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

What is Extended ASCII?

A

Extended ASCII is one way to represent a character set. Extended ASCII code uses 8 bits to represent a character meaning that you can represent up to 256 different characters.

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

What are printable characters (ASCII)?

A

Printable characters are those that you will be able to see on screen. They have an 8 bit ASCII code. Examples are: A, s, !, @

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

What are control characters (ASCII)?

A

Control Characters are those that do not appear on screen but that carry out a task. They have an 8 bit ASCII code. Examples are:
Shift, Delete, Backspace, F2, Ctrl

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

What are bit-mapped graphics?

A

Bit Mapped graphics are made up of a 2D array of pixels. Every single pixel is saved. JPEG, PNG and GIF are bit mapped graphic formats.

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

What talking about colour depth for graphics, what is bit depth?

A

Every pixel is stored as a binary code. Bit depth is the number of bits used to store each pixel. A bit depth of 8 bits allows the pixel to be one of 256 colours, a bit depth of 16 bits allows for 65,536 colours and a bit depth of 24 bits allows for 16, 777, 216 colours. The higher the bit depth the larger the file size but the more colour available.

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

What is the resolution of an image?

A

Resolution is the total number of pixels in an image.

E.g. A resolution of 800 x 600 would create 480,000 pixels

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

What are vector graphics?

A

Vector graphics are NOTstored as individual pixels. Instead a description of attributes is used to create an object/shape. E.g. for a circle the attributes might be: cx (centre x), cy (centre y), rx (radius x), ry (radius y), fill, line. The computer uses the attributes to create shapes.
Vector graphics usually have smaller file sizes than bit
mapped graphics as you don’t need to store every pixel.

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

Name and describe four differences between bit-mapped and vector graphics

A

Scaling – Bit Mapped could be pixelated, vector would retain quality

Editing –Every pixel can be edited for fine detail in bit
mapped graphics, in vector, fine detail is harder to edit as you can only change individual attributes

Layering – Bit maps don’t let you layer shapes, whereas vectors do

File Size –bit mapped usually larger as every pixel is stored, whereas only attributes are stored in vector

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

With regard to vector graphics, what is a rectangle and how would it be stored?

A

Rectangle is a type of polygon but given the frequency of its use, most vector graphic file formats support a specific rectangle object. Squares could be created using either the rectangle or polygon objects.
Attributes: x, y, fill, line, height, length. x and y define the top left corner position

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

With regard to vector graphics, what is an ellipse and how would it be stored?

A

Ellipse objects are like circles, but you can alter the radius of the X co-ordinate so that it is a different value to that of the Y co-ordinate. This allows for the creation of oval shapes rather than circles.
Attributes: cx and cy define the centre, rx and ry the radius. Fill and line.

17
Q

With regard to vector graphics, what is a line and how would it be stored?

A

The line object allows for the creation of lines. More complex lines with different points can be created using an object called a polyline.
Attributes: x1 and y1 define the start of the line, x2 and y2 define the end of the line. Line is used for the colour of the line. Fill IS NOT NEEDED for lines.

18
Q

With regard to vector graphics, what is a polygon and how would it be stored?

A

The polygon object can be any shape that has at least three sides and allows for a wide variety of common shapes to be stored in vector form.
At every angle, x and y coordinates are needed, soa shape with five angles would have:
Fill, line, x1, y1, x2, y2, x3, y3, x4, y4, x5, y5