Which statement best explains the difference between ASCII and Unicode?
Think about how many characters each system can represent.
ASCII is a 7-bit system supporting 128 characters mainly for English. Unicode uses more bits and can represent characters from many languages worldwide.
Given the character 'A', what is its Unicode code point and ASCII value?
Remember 'A' uppercase has a different code than 'a' lowercase.
The uppercase 'A' has Unicode code point U+0041 and ASCII decimal value 65.
Which option correctly compares the storage size needed for the word 'Hello' in ASCII and Unicode UTF-8 encoding?
Consider that ASCII characters are encoded the same way in UTF-8.
ASCII characters are encoded in one byte each. UTF-8 encodes ASCII characters using one byte as well, so 'Hello' uses 5 bytes in both.
Which option shows an incorrect Unicode escape sequence for the character '€' (Euro sign)?
Unicode escape sequences use hexadecimal digits 0-9 and A-F only.
Option C contains 'G' which is not a valid hexadecimal digit, so it is an invalid Unicode escape sequence.
A text file contains the string '你好' (two Chinese characters). How many bytes does it take to store this string in UTF-8 encoding?
Each Chinese character typically uses 3 bytes in UTF-8.
Each Chinese character is encoded with 3 bytes in UTF-8, so two characters use 6 bytes total.