Fundamentals of Front End Development MCQs with Answers
Practice important Fundamentals of Front End Development MCQs with answers and explanations.
Chapter: 115
Q1301:
Fill in the blank: The naming convention <firstName> is known as ________.
A. Camel case
B. Pascal case
C. Underscore case
D. Lower case
Correct Answer:
A
Chapter: 115
Q1302:
What is the purpose of extending XML elements?
A. To break the application
B. To add more information without disrupting the application
C. To limit the data storage
D. To enforce naming rules
Correct Answer:
B
Chapter: 116
Q1303:
What must XML attribute values always be?
A. Quoted
B. Unquoted
C. Enclosed in angle brackets
D. Enclosed in curly braces
Correct Answer:
A
Chapter: 116
Q1304:
Fill in the blank: XML attributes are best used to store ________ about the element data.
A. metadata
B. content
C. hierarchical data
D. complex structures
Correct Answer:
A
Chapter: 116
Q1305:
When should you use an XML element instead of an attribute?
A. When you need to store metadata
B. When you need to store simple data
C. When you need to store complex data or structures
D. When you need to keep data inline
Correct Answer:
C
Chapter: 116
Q1306:
What is a problem with using XML attributes for storing data?
A. Attributes cannot be quoted
B. Attributes cannot contain multiple values
C. Attributes are expandable
D. Attributes can contain tree structures
Correct Answer:
B
Chapter: 116
Q1307:
Fill in the blank: In XML, attributes should be used to store ________ about elements.
A. metadata
B. hierarchical data
C. detailed content
D. multiple values
Correct Answer:
A
Chapter: 116
Q1308:
Which of the following is a correct way to quote XML attribute values?
A. <person gender=male>
B. <person gender="male">
C. <person gender='male'>
D. Both B and C are correct
Correct Answer:
D
Chapter: 116
Q1309:
What should be avoided when using XML attributes?
A. Including metadata
B. Using multiple values
C. Storing simple data
D. Including text
Correct Answer:
B
Chapter: 116
Q1310:
Fill in the blank: XML elements are better suited than attributes for storing ________.
A. metadata
B. complex data
C. simple attributes
D. hierarchical data
Correct Answer:
B
Chapter: 116
Q1311:
How is the following XML attribute correctly written? <gangster name="George "Shotgun" Ziegler">
A. It uses single quotes
B. It uses double quotes
C. It uses an incorrect character entity
D. It uses incorrect syntax
Correct Answer:
B
Chapter: 116
Q1312:
Fill in the blank: When storing a single piece of data about an element, it is better to use an XML ________.
A. attribute
B. element
C. tag
D. structure
Correct Answer:
A
Chapter: 116
Q1313:
Which XML usage example is best for storing metadata?
A. <person dateofbirth="11 Feb 1976">
B. <person><dateofbirth>11 Feb 1976</dateofbirth></person>
C. <person><dateofbirth><date>11</date><month>Feb</month><year>1976</year></dateofbirth></person>
D. <person id="101">
Correct Answer:
D
Chapter: 116
Q1314:
Fill in the blank: XML attributes cannot be used to store ________ structures.
A. tree
B. simple
C. metadata
D. expandable
Correct Answer:
A
Chapter: 117
Q1315:
What is the purpose of XML namespaces?
A. To define element names uniquely
B. To style XML documents
C. To store XML attributes
D. To encode XML documents
Correct Answer:
A
Chapter: 117
Q1316:
What is the correct syntax to define a namespace for a prefix in XML?
A. xmlns:prefix="URI"
B. xmlns:prefix="URL"
C. xmlns:prefix="path"
D. prefix:xmlns="URI"
Correct Answer:
A
Chapter: 117
Q1317:
Fill in the blank: When using XML namespaces, the ________ is used to give the namespace a unique name.
A. namespace URI
B. element name
C. attribute value
D. default namespace
Correct Answer:
A
Chapter: 117
Q1318:
How can name conflicts in XML be avoided when mixing XML documents from different applications?
A. By using prefixes
B. By using the same element names
C. By using different encodings
D. By using default namespaces
Correct Answer:
A
Chapter: 117
Q1319:
What attribute is used to define a namespace for a prefix?
A. xmlns
B. xml
C. xmlns:prefix
D. namespace
Correct Answer:
C
Chapter: 117
Q1320:
Fill in the blank: If a default namespace is defined, all child elements ________.
A. will use the same namespace
B. will use different namespaces
C. must have prefixes
D. will have no namespace
Correct Answer:
A