Data Representation Flashcards

1
Q

What are the 3 Steps to create a Twos Complement Number

A

Create the positive number binary number

Invert all the 0’s to 1’s and all the 1’s to 0’s

Add 1 to the RIGHT of the number. (Sometimes called the Least Significant Bit)

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

How are positive and Negative numbers stored in a computer

A

As a binary number using Two’s complement.

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

What is the formula for the range of positive and negative integers which can be represented in twos complement using n bits.

A

-2n-1 …. 2n-1 - 1

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

What is the formula for the largest integer which can be represented in twos complement using n bits.

A

2n-1 - 1

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

What is the formula for the smallest integer which can be represented in twos complement using n bits.

A

-2n-1

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

What is the formula for the range of positive and negative integers which can be represented in twos complement using 8 bits.

A

-2n-1 …. 2n-1 - 1
= -28-1 to 8-1 - 1
= -27 to 27 - 1
= -128 to 128 - 1
= -128 to 127

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

What is the formula for the largest integer which can be represented in twos complement using 8 bits.

A

2=n-1 - 1
=28-1 - 1
=27 - 1
=128 - 1
=127

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

What is the formula for the smallest integer which can be represented in twos complement using 8 bits.

A

-2n-1
= -28-1
= -27
= -128
**= -128 **

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

How does increasing the number of bits to store the mantissa impact the number stored.

A

Increasing the number of bits used to store the mantissa:
increases the precision of the number.

decreases the number of bits available for the mantissa, and so the precision of the number is decreased.

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

How does increasing the number of bits to store the exponent impact the number stored.

A

Increasing the number of bits used to store the exponent:
increases the range of the number.

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

How does decreasing the number of bits to store the mantissa impact the number stored.

A

Decreasing the number of bits available for the mantissa will make precision of the number is decrease

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

How does increasing the number of bits to store the exponent impact the number stored.

A

precision of the range of numbers represented will decreased.

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

What impact will adding 1 extra bit to the exponent have on the range of numbers which can be stored

A

The range of numbers represented will double

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

What impact will removing a 1 bit from the exponent have on the range of numbers which can be stored

A

The range of numbers represented will half

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

Extended ASCII - How many bits does extended ASCII use to represent a character and how many characters can it represent?

A

uses 8 bits to represent a character
can represent 256 different characters

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

Extended Unicode - How many bits does extended Unicode use to represent a character and how many characters can it represent?

A

Unicode
uses 16 bits to represent a character
can represent 65,536 characters

17
Q

State one advantage of Unicode over ASCII

A

Used to represent characters from many different languages (Arabic, Japanese, Latin etc) and emojis

18
Q

State one disadvantage of Unicode over ASCII

A

Unicode uses 2 bytes (16 bits) to represent a character where ASCII only uses one byte (8 bits)

19
Q

State 2 advantages of bitmap images

A

can produce realistic photographic images
control over pixel-level editing

20
Q

State 2 disadvantages of bitmap images

A

resolution is set at point of creation and cannot be increased without a loss of quality (resolution dependent)
tends to have a larger file size than a vector graphics file
can be time consuming to edit

21
Q

State 2 disadvantages of vector graphic images

A

Disadvantages
no control over pixel-level editing
unsuitable for photo-realistic images

22
Q

State 2 advantages of vector graphic images

A

can be scaled without a loss in quality (resolution independent)
vector objects can be edited independently of each other
vector objects can be easily moved / manipulated
tends to have a smaller file size than a bit-mapped graphics file