Name 5 different data types
Numbers, text, audio, images, and video
What is a bit pattern
A string of bits
What representation is used to store an integer
fixed-point representation (no decimals only float)
What is an unsigned integer
An integer that can never be negative and only has 0 to positive values. Its range is between 0 and +ve infinity.
What is the largest constant unsigned integer called
maximum unsigned integer
What is the formula to work out the maximum unsigned integer
2^n-1, where n is the number of bits
How does the storing of unsigned integers work
Will the integer 258 store in a 16-bit memory allocation
256= (100000010), therefore yes as there are 7 spaces for 0 and 1s left so we will add 7 0s to the left which will equal (0000000100000010)
what is overflow
When the data that is being stored is greater than the amount of space provided so data is lost
e.g. storing 15 in a 4-bit memory location 15=(10100) and it will only store (0100) so the value will change because of overflow and now it equals 4 and not 15.
How doe sign-and-magnitude representation work
How do you store an integer in twos complement format
How does retrieving an integer in twos complement format work
What are the three parts of floating-point representation
[sign][shifter][Fixed-pointer number)
e.g.
+7 425 000 000 000. 000
sign[+]shifter[12]fixed-point part[7.425]
what the number(1011 000 000.00) in floating-point format
1.011 x 2^12