Fundamentals of Front End Development MCQs with Answers
Practice important Fundamentals of Front End Development MCQs with answers and explanations.
Chapter: 121
Q1361:
Which of the following languages is XPath used in?
A. JavaScript, Java, PHP, Python, C, and C++
B. HTML, CSS, SQL
C. JavaScript, PHP, SQL, Ruby, Swift
D. Python, Java, SQL, Ruby
Correct Answer:
A
Chapter: 121
Q1362:
Fill in the blank: XPath is also used in ________, XPointer, and Xlink.
A. XQuery
B. SQL
C. HTML
D. CSS
Correct Answer:
A
Chapter: 121
Q1363:
What does the XPath expression /bookstore/book[last()] select?
A. The last book element that is a child of the bookstore element
B. The first book element that is a child of the bookstore element
C. All book elements in the bookstore element
D. The last book element of the bookstore element
Correct Answer:
A
Chapter: 121
Q1364:
What does the XPath expression //title[@lang='en'] select?
A. All title elements with a "lang" attribute value of "en"
B. All title elements with a "lang" attribute
C. All title elements in the document
D. All title elements with any attribute
Correct Answer:
A
Chapter: 121
Q1365:
Fill in the blank: The XPath expression /bookstore/book[position()<3] selects the first two book _________.
A. Elements
B. Attributes
C. Nodes
D. Text
Correct Answer:
A
Chapter: 121
Q1366:
What does the XPath expression /bookstore/book[price>35.00]/title select?
A. All title elements of book elements with a price greater than 35.00
B. All book elements with a price greater than 35.00
C. All title elements with a price greater than 35.00
D. All book elements with a price less than 35.00
Correct Answer:
A
Chapter: 122
Q1367:
Fill in the blank: XPath expressions can be used in languages like JavaScript, Java, XML Schema, PHP, ________.
A. Python
B. Ruby
C. Swift
D. HTML
Correct Answer:
A
Chapter: 122
Q1368:
What does the XPath expression /bookstore/book[1] select?
A. The first book element that is a child of the bookstore element
B. The last book element that is a child of the bookstore element
C. All book elements in the bookstore element
D. The first book element with a price greater than 35.00
Correct Answer:
A
Chapter: 122
Q1369:
Fill in the blank: XPath is a major element in the ________ standard.
A. XSLT
B. XQuery
C. XML Schema
D. XLink
Correct Answer:
A
Chapter: 122
Q1370:
What is the result of the XPath expression /bookstore/book[last()-1]?
A. The second to last book element in the bookstore
B. The first book element in the bookstore
C. All book elements in the bookstore element
D. The last book element in the bookstore
Correct Answer:
A
Chapter: 123
Q1371:
What does JSON stand for?
A. JavaScript Object Notation
B. Java Syntax Object
C. JavaScript Open Notation
D. Java Standard Object
Correct Answer:
A
Chapter: 123
Q1372:
Fill in the blank: JSON is language ________.
A. Independent
B. Dependent
C. Specific
D. Restrictive
Correct Answer:
A
Chapter: 123
Q1373:
Which of the following is a characteristic of JSON?
A. JSON uses end tags
B. JSON is not human-readable
C. JSON is hierarchical
D. JSON is language-specific
Correct Answer:
C
Chapter: 123
Q1374:
How can JSON data be converted into native JavaScript objects?
A. By using the JSON.stringify method
B. By using the JSON.parse method
C. By using the JSON.convert method
D. By using the JSON.read method
Correct Answer:
B
Chapter: 123
Q1375:
Which of the following is NOT a difference between JSON and XML?
A. JSON doesn't use end tags
B. JSON is shorter
C. JSON is hierarchical
D. JSON is quicker to read and write
Correct Answer:
C
Chapter: 123
Q1376:
Fill in the blank: JSON format is syntactically identical to the code for creating ________ objects.
A. Java
B. C++
C. JavaScript
D. Python
Correct Answer:
C
Chapter: 123
Q1377:
What is the purpose of the JSON.parse method in JavaScript?
A. To convert JSON data into XML
B. To convert JSON data into native JavaScript objects
C. To convert JSON data into a string
D. To validate JSON data
Correct Answer:
B
Chapter: 123
Q1378:
Which of the following statements is true about JSON and AJAX applications?
A. JSON is slower and more complex than XML
B. JSON is faster and easier than XML
C. JSON cannot be used with AJAX
D. JSON is not suitable for data interchange
Correct Answer:
B
Chapter: 123
Q1379:
Fill in the blank: In AJAX applications, JSON is ________ and easier than XML.
A. Slower
B. Larger
C. Faster
D. More complex
Correct Answer:
C
Chapter: 123
Q1380:
Which of the following steps is involved when using XML in an AJAX application?
A. Fetch a JSON string
B. JSON.Parse the JSON string
C. Use the XML DOM to loop through the document
D. Convert XML to JSON
Correct Answer:
C