XML/XML MCQ Sample Test,Sample questions

Question:
	
	
XML is:

1.a subset of SGML only.

2.a hybrid of document processing and database processing only.

3.a standardized yet customizable way to describe the content of documents only.

4.XML is all of the above.


Question:
	
	
XSLT processors evaluate each statement in the context of the match that has been made. That is, XSLT processors are:

1.context oriented.

2.procedural oriented.

3.object oriented.

4.relational oriented.


Question:
	
Attributes in XML are

1.a way of attaching characteristics or properties to elements of a document

2.child nodes

3.elements in XML

4.None of These


Question:
	
Document type declaration and document type definition are

1.different terms

2.uncertain

3.same

4.can't say


Question:
	
DTD's are

1. Part of Name spaces

2.Document type declaration in XML

3.Ways to create templates for out does type

4.None of these


Question:
	
MSXML is

1.a Microsoft language

2. XML parser that ships with IE 5.0

3. used for interacting with XML

4.Both (b) & (c)


Question:
	
Namespace

1.is a querying language

2.provides the spaces in the names

3.distinguishes one XML vocabulary from another

4.None of These


Question:
	
The words Document Node, Nodelist, Element Node, Named Node Map etc. are

1.Objects

2.Interfaces

3.Elements

4.Attributes


Question:
	
Web links are stored within the page itself and when you wish to "jump" to the page that is linked, we select the hotspot or anchor. This technique is called

1.hypertext

2.hypermedia

3.both (a) and (b)

4.anchoring


Question:
	
What is XML?

1.Like SGML, Extended Markup Language

2.Subset of SGML, Extensible Markup Language

3.Superset of SGML, Extendable Markup Language

4.None of These


Question:
	
XML is a/an

1.declarative language

2.imperative language

3.standard

4.none of these


Question:
	
XSLT is

1.used for session tracking in XML

2.an extensible stylesheet language and is used for formatting

3.an extended stylesheet language is used for formatting

4.none of these


Question:
ADO.NET provides the ability to create and process in-memory databases called:

1.views.

2.relations

3.tables

4.datasets


Question:
An XML component that defines the structure of a document is known as a(n):

1.DOCTYPE.

2.DTD.

3.#PCDATA.

4.HTML Stylesheet.


Question:
Below line of code is used for ?
<?xml version="1.0" encoding="ISO-8859-1"?>

1.DTD Declaration

2.XML Starting Line

3.XML Declaration

4.None of these


Question:
Document Object Model (DOM) is a

1.coding style

2.specification

3.a parser

4.none of these


Question:
DTD Stands for _________.

1.Document Transport Direction

2.Document Transcript Definition

3. Document Type Definition

4.None of these


Question:
Guess which version of XML is used ?
<?xml version="1.0" encoding="ISO-8859-1"?>

1.1st

2.3rd

3.4th

4.2nd


Question:
How DOM differs from SAX?

1.SAX is event driven and requires less space

2.DOM and SAX are packages

3.DOM is not event driven and builds up the whole memory d.

4.None of these


Question:
How many nodes and attributes are there in the document ?
<book category="Web">
  <bname>XML Tutorials</bname>
  <pages>100</pages>
  <price>$300.00</price>
</book>

1.4 Nodes and 1 Attribute

2.3 Nodes and 2 Attributes

3.2 Nodes and 1 Attribute

4. 4 Nodes and 2 Attributes


Question:
Node in XML is

1.any part of the document whether it is elements, attribute or otherwise

2.referred only to the attributes

3.referred to the top element in the document

4.none of these


Question:
Point out the error in following XML document -
<messages>
	<message>Sample Message 1</messge>
	<message>Sample Message 1</messge>
	<message>Sample Message 1</messge>
	<message>Sample Message 1</messge>
	<message>Sample Message 1</messge>
	<message>Sample Message 1</messge>
<messages>

1.No Corresponding Closing Tag

2.No Case Sensitive Tags

3. No Attribute present

4. None of these


Question:
Point out the error in the following xml -
<book category="Web">
  <bname>XML Tutorials</bname>
  <pages>100</pages>
  <price>$300.00</Price>
</book>

1.No Case Sensitive

2. Not having Closing Tag

3.No Nesting of Elements

4. None of these


Question:
Point out the error in the following xml document -
<?xml version="1.0" encoding="ISO-8859-1"?>
<messages>Sample Message<messages>
<messages>Sample Message<messages>
<messages>Sample Message<messages>

1.Does not have Attribute

2.Must have DTD

3. Must have One Root Node

4.None of these


Question:
Point out the errors in the following xml document -
<notes>
<note date=12/11/2007>
  <to>Tove</to>
  <from>Jani</from>
</note>
<note date=12/11/2007>
  <to>Tove</to>
  <from>Jani</from>
</note>
<note date=12/11/2007>
  <to>Tove</to>
  <from>Jani</from>
</note>
</notes>

1.XML Elements Must be Properly Nested

2.XML Documents Must Have a Root Element

3.XML Attributes must be quoted

4. None of these


Question:
Scheme is

1.a global name space

2.read only for all practical purposes

3.template written in XML and can be modified at runtime

4.None of These


Question:
The document that is used by XSLT to indicate how to transform the elements of the XML document to another format is a(n):

1.HTML page.

2.DOCTYPE procedure.

3.stylesheet.

4.stored procedure.


Question:
The tags elements in XML are

1.case-insensitive

2.case-sensitive

3. browser dependent

4.none of these


Question:
W3C supports an XML-based alternative to DTD, called _______.

1.XML Schema

2.HTML DOM

3.XML Parser

4. None of these


Question:
Well formed XML

1.is full of chart's

2.is full of formula's

3.meets certain grammatical rules outlined in the XML 1.0 specification

4.doesn't contain DTD's


Question:
What DOM stands for?

1.Direct Object Model

2.Document Object Modeling

3.Document Object Model

4. Document Output Model


Question:
What is not true about XSLT?

1.XSLT is a declarative transformation language.

2.XSLT uses a set of rules that govern how a document is to be materialized is created.

3.XSLT uses a set of procedures that specify how a document is to be programmed.

4.XSLT is used to transform the input document into another document.


Question:
What standard, protocol or language was generalized to become a standard protocol for sending messages of any type, using any protocol?

1.SOAP

2.SGML

3.SQL

4. ADO


Question:
What XML stands for?

1.Extra Marked Language

2.Extensible Markup Language

3.Extensible Marked Literal

4.Extra Markup Language


Question:
When to use a DOM Parser?

1.You need to know a lot about the structure of a document.

2. You need to move parts of the document around

3.You need to use the information in the document more than once.

4.All of the above.


Question:
When to use a SAX Parser?

1.You can process the XML document in a linear fashion from the top down.

2. You are processing a very large XML document whose DOM tree would consume too much memory.

3. The problem to be solved involves only part of the XML document

4.All of the above.


Question:
Which component of JDOM Parser represents DOM tree?

1.Document

2.Element

3.Attribute

4.Text


Question:
Which of the following creates push button?

1.RESET

2.RADIO

3.INPUT

4.CHECK BOX


Question:
Which of the following is not a function of XML ?

1.Structure Information

2.Style Information

3. Transport Information

4. Store Information


Question:
Which of the following is not a XML storage option ?

1.Native storage as XML data type

2.Mapping between XML and relational storage

3.Small object storage

4.None of the Mentioned


Question:
Which of the following is the communication protocol that sets the standard used by every computer that access web-based information?

1. HTTP

2.XML

3.HTTP

4.DML


Question:
Which of the following is true about XML?

1.XML is technology independent. It can be used by any technology for data storage and transmission purpose.

2. XML uses simple text format. It is human readable and understandable.

3.Using XSD, DTD and XML structure can be validated easily.

4.All of the above.


Question:
Which of the following is true about XPath?

1.XPath is an official recommendation of the World Wide Web Consortium (W3C).

2.It defines a language to find information in an XML file.

3. Both of the above.

4.None of the above.


Question:
Which of the following statement is false if we consider above XML document ?
<?xml version="1.0" encoding="ISO-8859-1"?>
<book>
  <bname>XML Tutorials</bname>
  <pages>100</pages>
  <price>$300.00</price>
</book>

1.Document Syntax is Self Explanatory

2.XML document forms a tree structure

3.XML document can have more than one book

4.It is a document that refers a single book


Question:
Which of the following statements is not true about XML Schemas

1.They are used to define the content and structure of data. b. c.

2.They define a set of symbols and the relationships of those symbols.

3.They are themselves XML documents.

4.They have their own syntax.


Question:
Which of the following XPath expression selects attributes?

1..

2. ..

3.@

4. //


Question:
Which of the following XPath expression selects the parent of the current node?

1..

2...

3../

4.//


Question:
Which of the Node is considered as root node ?
<?xml version="1.0" encoding="ISO-8859-1"?>
<book>
  <bname>XML Tutorials</bname>
  <pages>100</pages>
  <price>$300.00</price>
</book>

1.<pages>

2.<price>

3.<book>

4.<bname>


Question:
White spaces in XML includes

1.Things like space characters, new lines and tabs

2. Only spaces

3.Space between two double quotes

4. None of these


Question:
XML

1.can't be used as a database

2.XML is not a database, it is language

3.can be used as a database

4.None of These


Question:
XML deals with storage and ____________ transport of data.

1.Minify

2.Transport

3.Design

4.Filter


Question:
XML is much more similar like __________.

1.HTML

2.CSS

3.C Programming

4.JavaScript


Question:
XML stands for ______________.

1.Extensible Markup Language

2. Extended Mashup Language

3. Extensible Mashup Language

4. None of these


Question:
XML validated against a __________ is considered as Valid XML.

1.JQUERY

2.PARSER

3.CFG

4.DTD


Question:
XML with correct syntax is "_________" XML.

1.Well Parametarized

2.Well Formed

3.Mature

4.None of these


Question:
XPATH used to

1.Address your documents by specifying a location path

2.Address the server

3.Store the IP address of the server

4.None of these


Question:
XSL is

1.an XML based language to create style sheets

2.extensible solution language

3.a language which is not used in XML

4. extended stylesheet language


Question:
__________ is used to check XML for syntax errors.

1.XML Validator

2. XML Parser

3. XML Browser

4.None of these


More MCQS

  1. XML Mcq Question Set 1
  2. XML Mcq Question Set 2
  3. XML Mcq Question Set 3
  4. XML Mcq Question Set 4
  5. XML Mcq Question Set 5
  6. XML Multiple Choice Questions
  7. XML MCQ
  8. XML MCQ QUESTION 2024
Search
Olete Team
Online Exam TestTop Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on Online Exam Testwebsite is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!