unit 1.4.1 Flashcards

1
Q

primitive data type

A

a data type provided by the programming language

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

chraracter

A

a single alphanumeric character

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

string

A

one or more alphanumeric characters

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

float/real

A

a number with a fractional part

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

ineger

A

a whole number

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

boolean

A

a binary (true false, 1 0) value

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

hex - advantages

A

easier for humans to read/remember, quicker for humans to read/write, easy to convert to deary

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

hex - uses

A

MAC addresses, colours (RGB), assembly and mahcine code

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

ASCII (American Standard Code for Information Interchange)

A

Each character is represented by a 7-bit binary code allowing for 128 characters, first 32 are control codes

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

extended ASCII

A

extra bit was added for extra characters

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

unicode

A

was introduced to standardise character encoding across languages, first 256 characters are identical to extended ASCII making it compatible with older documents

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

0+0

A

0

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

0+1

A

1

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

1+1

A

10

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

1+1+1

A

11

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

overflow error

A

occurs when the result of an operation exceeds the number of bits the computer works with

17
Q

sign and magnitude

A

MSB is used to denote sign where 0 is positive and 1 is negative

18
Q

two’s compliment

A

convert positive to binary, flip the bits, add 1

19
Q

binary subtraction

A

done by adding the first number the the negative 2nd number in 2s compliment

20
Q

unsigned - smallest posible

A

0

21
Q

unsigned - biggest possible

A

(2^n)-1

22
Q

unsigned - range

A

2^n

23
Q

two’s compliment - smallest possible

A

-(2^(n-1))

24
Q

two’s compliment - biggest possible

A

+(2^(n-1) - 1)

25
Q

two’s compliment - range

A

2^n

26
Q

sign and magnitude - smallest possible

A

-(2^(n - 1) - 1)

27
Q

sign and magnitude - biggest possible

A

+(2^(n - 1) - 1)

28
Q

sign and magnitude - range

A

(2^n) - 1

29
Q

higher accuracy

A

lower range

30
Q

normalisation - advantages

A

provides maximum precision