Data types. Flashcards

1
Q

Describes why two’s complement may be preferable to sign and magnitude

A

It is not easily possible to carry out calculations using sign and magnitude whereas they will work with two’s complement

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

Convert the denary number 43 into 8 bit bindary number

A

00101011

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

State why a programmer might choose to declare a variable as a floating point number

A

The variable may need to store decimal numbers,

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

Explain how, using bit shift, the unsigned binary number 00101100 can be divided

A

by shifting the bits to the right will divide by 2.

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

Identify whenter this number is normalised.

A

No it has to start with a 01 or 10 to be normalised

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

What are the steps to convert Denary to Binary.

A

1)Find the biggest place value which, when subtracted
from your number, will not be negative.

2) Put a 1 in that column and subtract the place value
from your number

3)Look for next place value which, when subtracted
from remainder, will not be negative

4) Repeat steps 2 and 3 until you have 0

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

What do we use hexadecimal?

A

Hex numbers are shorter and more memorable than equivalent binary numbers.
They can easily be converted to and from binary.

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

What is a character set?

A

All the characters which are recognised/ can be represented by the computer system.

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

What is unicode?

A

A 16-bit encoding system that has 2^16(65536) different characters in its character set

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

What are the main differences between character sets of uncode and ASCII

A
  • Unicode has a much larger character set
  • Can represent many more characters (different characters from different alphabets and even emoji’s
  • Unicode has 16 bits and ascii has 7
How well did you know this?
1
Not at all
2
3
4
5
Perfectly