ASCII Unicode Data Storage
Floating Point Numbers - Quiz Explanation
The answers you selected are indicated below, along with text that explains the correct answers.
1.
The real number Π ≈ 3.1415926 would be represented in a computer as:
Please select the best answer.
A.
A floating-point number
B.
A two's complement binary number
C.
An ASCII character code
D.
A Unicode character code
The correct answer is A.
Answer B is incorrect because two's complement representation is used to store signed integers. Answers C and D are incorrect because ASCII and Unicode are used to store characters rather than numbers.
2.
The mathematical symbol Π would be represented in a computer as:
Please select the best answer.
A.
A floating-point number
B.
A two's complement binary number
C.
An ASCII character code
D.
A Unicode character code
The correct answer is D.
Answers A and B are incorrect because the symbol ( is a character rather than a number. Answer C is incorrect because ASCII has a sufficient number of character codes for basic text only.
3.
What is the primary difference between ASCII and Unicode encoding systems with respect to the representation of characters?
Please select the best answer.
A.
ASCII represents each character as a 7-bit binary number, while Unicode uses a variable-width encoding scheme, allowing for more characters.
B.
ASCII uses floating-point numbers for representation, whereas Unicode employs fixed-point numbers.
C.
Unicode is limited to 128 unique character representations, while ASCII can represent up to 256 characters.
D.
ASCII and Unicode are both fixed-width, 16-bit encoding schemes primarily used for encoding symbols.
The correct answer is A.
ASCII (American Standard Code for Information Interchange) uses a 7-bit binary number to represent characters, which allows it to encode up to 128 different symbols. Unicode, on the other hand, was designed to encompass all the character sets of all the languages and is a variable-width encoding system. The most commonly used Unicode system, UTF-8, can use anywhere from one to four bytes to represent a character, allowing for a much more extensive range of symbols, including those from non-Latin scripts.