1.4.1 Data Types Flashcards

1
Q

What is an integer?

A

A whole number
Can be positive or negative

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

What is a real?

A

Positive or negative number
Can have fractional part

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

What is a character?

A

A single symbol
Includes letters, numbers & symbols

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

What is a string?

A

A group of characters
Can store one or more characters

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

What is Boolean?

A

True or False

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

What is a bit?

A

A single binary digit

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

What is a byte?

A

Eight binary digits

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

What is a nybble?

A

Four binary digits

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

Which bit is the least significant?

A

The furthest to the right

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

Which bit is the most significant?

A

The furthest to the left

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

What is Sign Magnitude?

A

The equivalent of adding a + or - sign in front of a number

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

How is a negative number represented using Sign Magnitude?

A

By adding a leading 1

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

How is a positive number represented using Sign Magnitude?

A

By adding a leading 0

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

Describe how a number can be put into two’s complement.

A

Flipping the bits of positive number
Adding one

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

How is binary subtraction performed?

A

Using binary addition with a negative two’s complement number

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

What base is hexadecimal?

17
Q

What characters are represented by 10-15 in hexadecimal?

18
Q

What is floating point binary?

A

Binary numbers with a mantissa & exponent

19
Q

Where is the binary point in the mantissa of floating point binary?

A

After the most significant bit

20
Q

How is floating point binary converted into denary?

A

Exponent converted to denary
Binary point of mantissa moved according to exponent

21
Q

What is the benefit of floating point binary?

A

Increased precision
Larger range of numbers can be stored

22
Q

What is meant by normalised floating point binary?

A

Mantissa starts 01 for positive number
Mantissa 10 for negative number

23
Q

Describe how addition can be performed with two floating point binary numbers.

A

Both exponents the same
Add mantissas
Normalise result if required

24
Q

Describe how subtraction can be performed with two floating point binary numbers.

A

Both exponents the same
Mantissa of number to be subtracted converted to two’s complement
Binary addition carried out
Normalise result if required

25
What is a logical shift?
Involves moving all of the bits in a binary number of a specified number of places to the right/left
26
What is the result of a logical shift left?
Multiplication
27
What is the result of a logical shift right?
Division
28
What is the effect of a logical shift left by one place?
Initial number doubled
29
What is the effect of a logical shift right by one place?
Initial number halved
30
How are masks applied to binary numbers?
By combining them with logic gate
31
What is a character set?
A set of characters that can be represented by a computer
32
How many bits does ASCII use?
7 bits
33
Whats the maximum number of characters represented by ASCII?
128 characters
34
What is the drawback of ASCII?
Limited character set
35
How many bits does Unicode use?
Varying amount