Data types. Flashcards
Describes why two’s complement may be preferable to sign and magnitude
It is not easily possible to carry out calculations using sign and magnitude whereas they will work with two’s complement
Convert the denary number 43 into 8 bit bindary number
00101011
State why a programmer might choose to declare a variable as a floating point number
The variable may need to store decimal numbers,
Explain how, using bit shift, the unsigned binary number 00101100 can be divided
by shifting the bits to the right will divide by 2.
Identify whenter this number is normalised.
No it has to start with a 01 or 10 to be normalised
What are the steps to convert Denary to Binary.
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
What do we use hexadecimal?
Hex numbers are shorter and more memorable than equivalent binary numbers.
They can easily be converted to and from binary.
What is a character set?
All the characters which are recognised/ can be represented by the computer system.
What is unicode?
A 16-bit encoding system that has 2^16(65536) different characters in its character set
What are the main differences between character sets of uncode and ASCII
- 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