Data Flashcards
name the order of units from smallest to biggest (bytes)
bits nibble bytes kilobytes megabytes gigabytes terabytes
how many bytes are in 5 megabytes
5 x 1024 x 1024 = 5,242,880
explain the effect of increasing the sampling frequency for a sound conversion
- more data will be converted
- therefore increases the storage capacity for the recording
- this will be a more accurate representation of the original recording
compare storing data on the cloud to on hard disks for a school
- school is responsible for providing more storage as demands evolve but storage provider is responsible for providing storage on demand
- if internet connection isnt available, cant access data on the cloud but files are available without a connection on hard disks
- staff can access data anywhere using mobile devices on cloud but data can be only accessed in the school
how do computers read program instructions
- processors contain billions of transistors which act as switches.
- they only have 2 states - on and off
- there are only 2 states therefore binary is used to represent data and instructions
how are pictures represented in binary and why
- in black and white (no colours/shades) because there are only two digits used
write an arithmethic expression to show that 256 different colours can be represented in 8 bits
number of colours = 2^8 = 265 colours
how many colours can be represented in 6 bits
2^6 = 64 colours
how many bits does it take to represent 16 colours
16 = 2^4 so it takes 4 bits
convert 79 into binary
01001111
convert 00110110 into denary
54
convert 203 into binary
11001011
what is an overflow error
an overflow error occurs when a calculation produces a result that is greater than the processor can deal with
state an effect of using the result of the overflow error in further calculations
the calculations would produce inaccurate results
add 01011101 and 01011001
10110110
convert 10010111 into a decimal number (denary)
151
how many shifts to the left would you shift a binary number if you mulitply it by 2^4
4 places
how do you perform a logical shift (multiplying)
what effect does this have on the number
Left Logical muLtiply
move the digits to the LEFT and fill the gaps with 0s
multiplys the number by a power of 2 ie 2^3 is 3 shifts. number would be 8 times bigger
explain how a binary number can be multiplied by 8 by shifting bits
8 is equal to 2^3 so the bits are shifted 3 places to the left
0s should replace the 3 gaps on the left
multiply 01101110 by 2^3
01110000
how do you perform a logical shift (dividing)
what effect does this have on the number
dIvIde = rIght
move the digits to the RIGHT and fill the gaps with 0s
divides the number by a power of 2 ie 2^3 is 3 shifts. number would be 8 times smaller
explain why performing a logical shift of 3 places on the binary number 10110100 could result in a loss of precision
- 10110100 = 180.
- the calculation would be 180/8 = 22.5
10110100 shifted is 00010110 (this is 22 which is less than 22.5)
this is because the answer is always given as the nearest lower integer in a right logical shift so some precision is lost
how do you represent a denary number in sign and magnitude
the leftmost big (MSB) is used to show that a number is positive (0) or negative (1) and is shown +/-
the other 7 bits show the numerical value of the number
convert -62 into binary
11000010
convert 62 into binary using sign and magnitude
00111110
how do you represent a denary number in twos complement
the leftmost big (MSB) is used to show that a number is positive (0) or negative (1) and is shown as -128
the other 7 bits are posistive
- highest denary number you can represent is 127
give disadvantages of sign and magnitude
0 can be both posistive and negative
when adding +10 and -10 the result should be 0 but it gives -20
give advantages of twos complement
- 0 can be represented in only one way 00000000
- calculations are always accurate
- negative numbers can be represented
give disadvantage of twos complement
computers cannot use this number system only humans
give a disadvantage of sign and magnitude
computers cannot use this number system only humans