Data Representation Flashcards
Describe how negative numbers are represented in twos compliment
The binary of the positive equivalent is inverted and 1 is added to the Least Significant Byte (LSB)
Compare the ways in which characters are represented in ASCII and Unicode
ASCII- uses 7 bits, can represent 128 characters. The 8th bit can be used for error checking.
Unicode- Is a sixteen bit extension of ASCII, can represent 65536 characters
Comparison- unicode can represent far more characters than ASCII allowing for the interchange, processing and display of the majority of the worlds language, rather than just one. ASCII uses fewer bits than unicode which could result in faster processing
Explain how both positive and negative numbers can be represented in two’s compliment
MSB is used as a sign bit, MSB is 0 for a positive number and is a 1 for a negative number. For a positive number place values used, for negative it is stored as twos compliment, which is got by inverting the bits and adding 1 to LSB
Explain what is meant by a character set.
The range of characters that can be represented. Each character has unique binary code. These include letters and digits.
How many characters can be represented with ASCII?
128
ASCII uses 7 bits, suggest a use for the 8th
Can be used for error checking as a parity bit, can be used to represent additional characters.
What does TB mean and how many gigabytes does it contain/
Terabyte, 1024
Discuss the benefit of using Unicode over ASCII
More characters can be represented, unicode uses 16 bits, allows characters from the majority of the worlds languages to be represented.