Data Representation Flashcards

(26 cards)

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

Unicode has more bits therefore can be 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) therefore more

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

23
Q

Describe the use of keys in encryption

A

Uses a pair of keys.
A public key is known by everyone and is used to encrypt data.
A private key is known only to the recipient and is used to decrypt data.

24
Q

Describe Asymmetric Encryption

A

Asymmetric Encryption uses a pair of keys.
A public key is known by everyone and is used to encrypt data.
A private key is known only to the recipient and is used to decrypt data.

25
Describe the use Digital certificates
Digital certificates Issued only by trusted entities. Authenticates a person, allowing them to exchange data over the Internet using a public key. They ensures that the communication between is kept secure and can only be understood by the intended sender and receiver.
26
Describe the use Digital Signature
Digital Signature Type of e-signature that uses encryption and when bound to a document it: ● authenticates or guarantees the sender of the document is legitimate; ● guarantees that the document has not been altered.