XML MCQ: XML Multiple Choice Questions and Answers

XML MCQ with answers and explanations for placement tests and job interviews. These solved XML MCQs are useful for the campus placement for all freshers including Engineering Students, MCA students, Computer and IT Engineers, etc.

Our XML MCQ (XML Multiple Choice Questions ) focuses on various parts of the XML Markup Language and its concept. It will be useful for anyone learning XML Basics, Essentials, and/or Fundamentals. We will regularly update the quiz and most interesting thing is that questions come in a random sequence. So every time you will feel new questions.

You can also check the article on how to create your own XML parser and request using C language.

 

Several XML courses you may have come across during your search for learning the XML language. Our team of experts has carefully analyzed some XML courses for you. You can check the courses, Trial of some courses is free.

 

Guideline of XML MCQ:

This XML MCQ is intended for checking your XML programming knowledge. It takes 1 hour to pass the XML MCQ. If you don’t finish the XML MCQ within the mentioned time, all the unanswered questions will count as wrong. You can miss the questions by clicking the “Next” button and return to the previous questions by the “Previous” button. Every unanswered question will count as wrong. MCQ on XML has features of randomization which feel you a new question set at every attempt.

In this XML MCQ, we have also implemented a feature that not allowed the user to see the next question or finish the XML quiz without attempting the current XML MCQ.

0 votes, 0 avg

You have 40 minutes to take the XML MCQs

Your time has been Over.


XML MCQ

XML MCQ: XML Multiple Choice Questions and Answers

1 / 31

In an XML DTD ATTLIST declaration, which tokenized attribute type is used to specify multiple ID values?

2 / 31

You are working with the following XML code snippet. Which XPath expression produces C-Class?

<cars>
    <car><make>Cadillac</make><model>Escalade</model>
        <price year="2007">20000</price></car>
    <car><make>Ford</make><model>Mustang</model>
        <price year="2008">17000</price></car>
    <car><make>Mercedes</make><model>C-Class</model>
        <price year="2009">24000</price></car>
</cars>

 

3 / 31

How does the XML DOM present an XML document?

4 / 31

You are working with this XML code snippet from the XML document cars.xml. You need to return the information about the cars built after the year 2000. What does your XQuery look like?

<cars>
    <car><make>Cadillac</make><model>Escalade</model><year>2007</year></car>
    <car><make>Cadillac</make><model>Escalade</model><year>2011</year></car>
    <car><make>Ford</make><model>Mustang</model><year>1968</year></car>
    <car><make>Ford</make><model>Mustang</model><year>1998</year></car>
    <car><make>Mercedes</make><model>C-Class</model><year>1999</year></car>
    <car><make>Mercedes</make><model>C-Class</model><year>2009</year></car>
</cars>

 

5 / 31

You are working with the following XSD fragment. What does it say about the <car> element?

<xs:element name="car">
    <xs:complexType>
        <xs:sequence>
            <xs:element name="make" type="xs:string"/>
            <xs:element name="model" type="xs:string"/>
            <xs:element name="year" type="xs:string"/>
        </xs:sequence>
        <xs:anyAttribute/>
    </xs:complexType>
</xs:element>

 

6 / 31

The <xsl:namespace-alias> element is used to replace a namespace in the style sheet with a different namespace in the output. Which XSLT element needs to be its parent node?

7 / 31

What is this code an example of?

<x/>

 

8 / 31

Which statement is not true about XML?

9 / 31

The readyState property holds the status of the XMLHttpRequest. Which is NOT a valid status?

10 / 31

You are working with an XML document that uses an XML schema. How can you extend the document with elements NOT specified by the schema?

11 / 31

Which type of DTD declaration is this code an example of? <!DOCTYPE abc SYSTEM "file/file.dtd">

12 / 31

The purpose of an XML schema is to define the building blocks of an XML document. Which option best describes the building blocks of an XML document?

13 / 31

You are working with the following XML code snippet. What do you need to include in your XSLT code to display Mercedes, Cadillac, Ford?

<cars>
    <car><make>Cadillac</make><model>Escalade</model>
        <price year="2007">20000</price></car>
    <car><make>Ford</make><model>Mustang</model>
        <price year="2008">17000</price></car>
    <car><make>Mercedes</make><model>C-Class</model>
        <price year="2009">24000</price></car>
</cars>

 

14 / 31

XML is a markup language, not a programming language. What makes XML not qualify to be a programming language?

15 / 31

In an XML DTD ATTLIST declaration, which default value is used to indicate that the attribute does not have to be included?

16 / 31

XML provides a framework for specifying markup languages, while HTML is a predefined markup language. What is applicable to XML and not HTML?

17 / 31

An XHTML document type definition (DTD) describes the allowed syntax and grammar of XHTML markup. Which is not one of the formal DTDs used in XHTML 1.0?

18 / 31

You are checking someone else's XML document for errors. You notice that the prolog does not have a closing tag. What do you do?

19 / 31

What is the last step in extending XHTML modules?

20 / 31

When working with Ajax applications, which is faster, XML or JSON?

21 / 31

Which Ajax method is used to exchange data with a server, using a modern browser?

22 / 31

Which DOM node type may NOT have the EntityReference node type as one of its child nodes?

23 / 31

Asynchronous Javascript and XML (Ajax) is technique for creating better, faster, and more interactive web applications. In addition to JavaScript and XML on the back end, which technologies are commonly used to craft AJAX experiences on the front end?

24 / 31

You are working with the following XML code snippet. You have this line in your XSLT code xsl:value-of-select="//car/make"/>. What does it display?

<cars>
    <car>
        <make>Cadillac
            <model>Escalade</model>
            <price year="2007">$20,000</price>
        </make>
    </car>
</cars>

 

25 / 31

The <xsl:with-param> element defines the value of a parameter to be passed into a template. It can be used within which elements?

26 / 31

What is this code an example of?

<x a="x" a="y"></x>

 

27 / 31

A markup language is a _-readable language that _ text so that the computer can _ that text.

28 / 31

What is the correct syntax for comments in XQuery?

29 / 31

Which XHTML syntax rule does NOT apply to XML?

30 / 31

You are working with an XML document that uses an XML schema. How do you specify that an element can appear multiple times inside its parent element?

31 / 31

You need to display the list of cars in the code snippet below in a column format, with a counter column for each row. Which XPath function do you use for the counter?

<cars>
    <car><make>Cadillac</make> <model>Escalade</model> <year>2007</year></car>
    <car><make>Ford</make> <model>Mustang</model> <year>1968</year></car>
    <car><make>Mercedes</make> <model>C-Class</model> <year>1999</year></car>
</cars>

 

Your score is

The average score is 0%

0%

Recommended Articles for you:

Leave a Reply

Your email address will not be published. Required fields are marked *