Data representation (Paper 1) Flashcards
What is a bit(b)?
0 or 1 (binary)
What is a nibble?
4 bits
What is a byte (B)?
8 bits
What is a kibibyte (KiB)?
1024 bytes
What is a mebibyte(MiB)?
1024 KiB
What is a Gibibyte (GiB)?
1024 MiB
What is a tebibyte (TiB)?
1024 GiB
What is a pebibyte(PiB)?
1024 TiB
What is an exbibyte (EiB)?
1024 PiB
What is the most significant bit in binary?
The largest number
On a byte it would be 128
What is the least significant bit in binary?
The smallest number
On a byte it would be 1
What are the numbers 10-15 represented by in hexadecimal?
A-F
How would you convert a binary byte into hexadecimal?
.Firstly split the byte into two nibbles
.Then convert each nibble separately and join the results
How would you convert hexadecimal into denary?
.Remember that hex is in base 16
.Multiply the hexadecimal value by its place value and add the results
Where is hexadecimal used in real life?
.Color values in photo editing software’s and web design
.IPv6 addresses
.Unicode
Why is hexadecimal used rather than biary?
Hexadecimal is easier for programmers to remember rather than the binary equivalent
What are the rules of binary addition?
0 + 0 = 0
0 + 1 or 1 + 0 = 1
1 + 1 = 0 carry a 1
1 + 1 + 1 = 1 carry a 1
When would an overflow occur when adding binary numbers?
An overflow occurs when the result of adding two binary numbers is greater than the number of bits allowed
.If the number falls out of the limit an overflow error is returned
Explain the effect on performing a binary right shift of two places on the number 11010110
.Each right shift will divide the number by 2
.so a two place right shift will divide the number by 4
.However, if the shift results in one more 1’s being lost at the right end the results will lose precision
How would you convert a negative denary number to binary?
.Convert the number into binary like it was positive
.Flip the bits
.Add one
.Convert
How would you convert a negative two’s complement binary number to denary?
.Flip the bits
.Add one
What is a signed representation of a binary number?
A signed integer can represent both positive and negative