java xml interview questions and answers - skillgun
Given the following xml document.
<Instruction>please, read <b> the Quiz </b> carefully </Instruction>
<Result>5 is the right answer</Result>
Which element has a mixed content?
1. It is standard message format
2. It is open source
3. It is language agnostic
Which of the folllowing describes the above points?
1. A valid XML document is also well-formed.
2. A well-formed XML document is also valid.
Which of the following is trur?
Only 1 is true
Only 2 is true
Both 1 and 2 are true
Which of the following specify that the element can contain any data but it should be well-formed xml data?
<!ELEMENT membership MIXED>
<!ELEMENT membership WELLFORMED>
<!ELEMENT membership ANY>
<!ELEMENT membership ALL>
Which of the following is used to parse the entire XML document and load it into the memory?
XML Information Set
Which of the following API is used to transform the XML document into other formats?
Technology that allows you to navigate to a particular node in XML is called
XSLT stylesheets should be used to convert between database definitions.
<!ELEMENT person (name,address)+>
The above declarartion implies that
person element can have name and address element in any numbers and any order
person element should atleast one name and one address element in any order
person element can have one or more name and one or more address element but all name elements must appear first before address elements
person element can have one or more name and one or more address element but after every name element address element must follow
To add the attribute named Type to the <customer> tag the syntax will be
<customer attribute Type=”excellent”>
<customer Type attribute =”excellent”>
<customer Type attribute_type=”excellent”>
Which of the following style sheets can be applied with XML document?
Which of the following is XML pre-declared entity references in XML?
In <?xml version="1.0"?>
what does the '?' Indicate?
It indicates that XML version is not known
It is used for documentation
It provides information to the application about XML
It indicatres that the document can contain XML and non-XML content
Which one of the following zodiac_sign elements could be valid?
<zodiac_sign type=animal name=Taurus/>
<zodiac_sign "life class"="animal">Cancer<zodiac_sign>
To define an XML vocabulary, an XML developer could use:
3. XML Schema
Which of the following strings are a correct XML name?
XML attribute values must always be enclosed
1. between 2 single quotes
2. between 2 double quotes
3. beginning with a single quote and ending with a double quote or vice versa
4. None of the above
Which one of the following statement is true?
All XML elements must have attributes
XML documents must have a XML Schema or a DTD
All XML elements must be lower case
XML element could have mixed data
XML tag name conflicts are resolved using
using unicode names
Which of the following is case sensitive?
3. Attribute values
4. XML string data
<? Sometext ?> What does this mean?
This is PI tag in XML
This is comment tag in XML
This is the way tag is defined in XML
This is an invlid tag
Back To Top