XML Encoding MCQ
This section focuses on "Encoding" in XML. These Multiple Choice Questions (MCQ) should be practiced to improve the XML skills required for various interviews (campus interview, walk-in interview, company interview), placements, entrance exams and other competitive examinations.
1. ___________ is the process of converting unicode characters into their equivalent binary representation.
A. Decoding
B. Encoding
C. DTD
D. DTO
View Answer
Ans : B
Explanation: Encoding is the process of converting unicode characters into their equivalent binary representation.
2. How many type of encoding?
A. 2
B. 3
C. 4
D. 5
View Answer
Ans : A
Explanation: There are mainly two types of encoding : UTF-8 and UTF-16
3. UTF stands for?
A. UAS Transformation Format
B. UZS Transformation Format
C. UCS Transformation Format
D. UCP Transformation Format
View Answer
Ans : C
Explanation: UTF stands for UCS Transformation Format
4. For the documents without encoding information, ______ is set by default.
A. UTF-8
B. UTF-16
C. Both A and B
D. None of the above
View Answer
Ans : A
Explanation: For the documents without encoding information, UTF-8 is set by default.
5. The number 8 or 16 refers to?
A. the number of bits
B. the number of byte
C. the number of megabits
D. the number of kilobits
View Answer
Ans : A
Explanation: The number 8 or 16 refers to the number of bits used to represent a character.
6. Number of possible Characters for 1 Bytes Per Character?
A. 127
B. 128
C. 255
D. 256
View Answer
Ans : C
Explanation: Number of possible Characters: 0xFF, (255)
7. What is true about 4 bytes per character?
A. No mapping needs to be done
B. 4 bytes covers all the possible Unicode values
C. Number of possible character 0xFFFF (65535)
D. All of the above
View Answer
Ans : D
Explanation: All of the above statement are true.
8. A mapping is done from the byte value (0-255) and translated through a mapping table referred to as a?
A. DTO
B. Code
C. Page
D. Code Page
View Answer
Ans : D
Explanation: A mapping is done from the byte value (0-255) and translated through a mapping table referred to as a code page
9. In most code pages the first 127 chars are common known as the?
A. Char set
B. ASCII
C. ASCII set
D. Code Page
View Answer
Ans : C
Explanation: In most code pages the first 127 chars are common known as the ASCII set
10. What will be Representation (hexadecimal) for Encoding UTF-8?
A. FE FF
B. EF BB BF
C. 00 00 FE FF
D. FF FE 00 00
View Answer
Ans : B
Explanation: EF BB BF will be Representation (hexadecimal) for Encoding UTF-8.
Discussion