Fundamentals of Front End Development MCQs with Answers
Practice important Fundamentals of Front End Development MCQs with answers and explanations.
Chapter: 114
Q1281:
Fill in the blank: The XML syntax rule states that XML elements must be properly ________.
A. nested
B. separated
C. merged
D. aligned
Correct Answer:
A
Chapter: 114
Q1282:
Which entity reference represents the less-than sign (<) in XML?
A. >
B. <
C. &
D. "
Correct Answer:
B
Chapter: 114
Q1283:
Fill in the blank: XML stores new lines as ________.
A. LF
B. CR+LF
C. CR
D. None
Correct Answer:
A
Chapter: 114
Q1284:
What is the purpose of using entity references in XML?
A. To display special characters correctly
B. To define new tags
C. To increase document size
D. To optimize file storage
Correct Answer:
A
Chapter: 114
Q1285:
In XML, which character reference should be used to represent an ampersand (&)?
A. <
B. &
C. '
D. "
Correct Answer:
B
Chapter: 114
Q1286:
Fill in the blank: A document that conforms to XML syntax rules is described as being ________.
A. Well Formed
B. Valid
C. Correct
D. Complete
Correct Answer:
A
Chapter: 114
Q1287:
How does XML handle multiple white-spaces compared to HTML?
A. It truncates them to a single white-space
B. It preserves them
C. It ignores them
D. It converts them to a single line
Correct Answer:
B
Chapter: 114
Q1288:
Fill in the blank: XML elements are required to be properly ________ within the document.
A. nested
B. formatted
C. aligned
D. indented
Correct Answer:
A
Chapter: 114
Q1289:
What is the role of the XML prolog in the document?
A. To provide the document's character encoding and version
B. To define the elements of the document
C. To comment on the document
D. To structure the XML tree
Correct Answer:
A
Chapter: 115
Q1290:
What does an XML element include?
A. Only the start tag
B. Only the end tag
C. Everything from the start tag to the end tag
D. Only the content
Correct Answer:
C
Chapter: 115
Q1291:
Fill in the blank: XML element names must start with a ________ or underscore.
A. letter
B. digit
C. hyphen
D. period
Correct Answer:
A
Chapter: 115
Q1292:
What is a valid naming rule for XML elements?
A. They can start with xml
B. They can contain spaces
C. They must start with a letter or underscore
D. They can use special characters
Correct Answer:
C
Chapter: 115
Q1293:
What naming convention uses an uppercase first letter in each word?
A. Camel case
B. Pascal case
C. Underscore case
D. Lower case
Correct Answer:
B
Chapter: 115
Q1294:
Fill in the blank: The XML element name <first_name> uses the ________ naming convention.
A. Underscore case
B. Camel case
C. Pascal case
D. Lower case
Correct Answer:
A
Chapter: 115
Q1295:
Which of the following is a common best practice for naming XML elements?
A. Use long and descriptive names
B. Avoid hyphens
C. Use colons
D. Include special characters
Correct Answer:
B
Chapter: 115
Q1296:
Fill in the blank: To avoid software issues, XML element names should not include a ________.
A. colon
B. period
C. hyphen
D. underscore
Correct Answer:
A
Chapter: 115
Q1297:
What is an advantage of XML being extensible?
A. It can be used with any programming language
B. It allows you to add more information without breaking applications
C. It requires predefined tags
D. It automatically validates XML syntax
Correct Answer:
B
Chapter: 115
Q1298:
What naming style separates words with underscores?
A. Pascal case
B. Camel case
C. Lower case
D. Underscore case
Correct Answer:
D
Chapter: 115
Q1299:
Fill in the blank: The element <FirstName> uses the ________ naming convention.
A. Pascal case
B. Camel case
C. Lower case
D. Underscore case
Correct Answer:
A
Chapter: 115
Q1300:
Which XML element name style uses all letters in lowercase?
A. Upper case
B. Lower case
C. Pascal case
D. Underscore case
Correct Answer:
B