Data representation Flashcards

1
Q

Types

A

Signed and unsigned

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

Types of signed

A

Signed magnitude, 1’s complement, 2’s complement

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

Unsigned representation is only used for?

A

Positive nos.

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

Range with n digits(unsigned)

A

0 to 2^n -1

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

Signed no. representation

A

Sign bit=0 for +ve no. (+5= 0101 or 00000101)
Sign bit=1 for -ve no. (-5= 1101 or 10000101)

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

Range with n digits(signed)

A

-(2^n-1 - 1) to (2^n-1 -1) +0 and -0 has two different representations

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

1’s complement representation

A

+ve nos. represented as it is with MSB 0
-ve are represented by flipping bits of +ve representation
+5-00000101
-5-11111010

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

1’s complement representation w n bits

A

-(2^n-1 -1) to +(2^n-1 -1)
-0 and +0 present

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

2’s complement representation

A

+ve nos. as it is
-ve nos. by adding 1 to 1’s complement

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