XML/XML Mcq Question Set 4 Sample Test,Sample questions

Question:
 An __________ tells the parser to parse the document from the specified root element.

1. element

2.DTD

3. PI

4. identifier


Question:
 In most code pages the first 127 chars are common known as the?

1.Char set

2.ASCII

3.ASCII set

4.Code Page


Question:
 Which of the following are the predefined attributes?

1.xml:lang

2. xml:space

3.Both A and B

4.none of the above


Question:
A character that describes the information for the application to process known as?

1.target

2.Instruction

3. DTD

4.DTO


Question:
A mapping is done from the byte value (0-255) and translated through a mapping table referred to as a?

1.DTO

2.Code

3. Page

4.Code Page


Question:
A PI can contain any data except the combination?

1. !>

2.<!

3.<?

4.?>


Question:
A schema describes?

1. structure

2.datatype of XML document

3.grammer

4.All of the above


Question:
A validating XML application should be used when?

1. the design demands that all elements use both start and end tags

2.missing or out-of-place elements could cause application errors

3.attribute values cannot refer to external entity references

4.High performance is an important architectural constraint


Question:
All information in XML is .....

1.Unicode text

2.multi code

3.multi text

4.simple text


Question:
An entity in XML is a ..........

1. class

2.logical information

3.simple information

4. flexible information storage unit


Question:
An XML attribute is always a ________ pair.

1.name-value

2.name-attribute

3.name-tag

4.document-value


Question:
Attribute of the document interface in DOM is/are?

1.doctype

2. implementation

3. documentElement

4.All of the above


Question:
Attribute standalone="no" should be included in XML declaration if a document.

1. is linked to an external XSL stylesheet

2.has external general references

3.has processing instructions

4. has an external DTD


Question:
Attributes are used to add a unique ________ to an element

1.tags

2.edges

3.label

4.flag


Question:
Attributes have _______ property.

1. name

2.type

3.Both A and B

4.none of the above


Question:
CDATA attribute is?

1. StringType

2.Character data

3.Both A and B

4.none of the above


Question:
Each XML document contains _______ element?

1.Zero

2.One

3. Zero and more

4.One and more


Question:
Element with no content is known as?

1.free element

2.empty element

3.vacent element

4.idle element


Question:
Elements can behave as containers to hold?

1.Objects

2.text

3.attributes

4.All of the above


Question:
For the documents without encoding information, ______ is set by default.

1.UTF-8

2.UTF-16

3.Both A and B

4.none of the above


Question:
How can be defined within an XSD?

1.<xs:element name = "x" type = "y"/>

2.<?xs:element name = "x" type = "y"/>

3.<xs:element name = "x" type = "y">

4. </xs:element name = "x" type = "y"/>


Question:
How many type of encoding?

1.2

2.3

3.4

4.5


Question:
How many types of enumerated attribute?

1.2

2.3

3.4

4.5


Question:
IDREFS attribute used for?

1.It is used to reference all IDs of an element.

2. It is used to reference an ID that has been named for another element.

3.It is used to specify the element as unique.

4. It indicates that the attribute will represent external entities in the document.


Question:
If the DTD is pointing to external path, it is called?

1.Internal Subset

2.DTD identifier

3.External Subset

4.none of the above


Question:
In external DTD elements are declared _______ the XML file.

1. Inside

2. After DOCTYPE

3.Before DTD Body

4. outside


Question:
In XML?

1.the internal DTD subset is read before the external DTD

2.the external DTD subset is read before the internal DTD

3.there is no external type of DTD

4.there is no internal type of DTD


Question:
Microsoft XML Schema Data Type “ boolean” has values?

1. True ,False

2. True ,False, 1,0

3.1,0

4.any number other then zero and one


Question:
NMTOKEN attribute used for?

1.It is used to specify the element as unique.

2.It indicates that the attribute will represent an external entity in the document.

3.It is similar to CDATA with restrictions on what data can be part of the attribute.

4.It is similar to CDATA with restrictions on what data can be part of the attribute.


Question:
Number of possible Characters for 1 Bytes Per Character?

1.127

2.128

3.255

4. 256


Question:
Public identifiers can follow any format, however, a commonly used format is called?

1. PDF

2.PNG

3.FPI

4.JPG


Question:
Simple type Built into Schema "data" represent a data in?

1.MM-DD-YY

2.DD-MM-YYYY

3. YY-MM-DD

4. YYYY-MM-DD


Question:
The DTD starts with?

1.declaration

2.DOCTYPE delimiter

3.DTD identifier

4.none of the above


Question:
The name value should be in?

1. double (" ") quotes.

2. single () quotes.

3.double (" ") or single () quotes.

4.none of the above


Question:
The number 8 or 16 refers to?

1. the number of bits

2.the number of byte

3.the number of megabits

4.the number of kilobits


Question:
The square brackets [ ] enclose an optional list of entity declarations called?

1.Internal Subset

2.DTD identifier

3.Element Subset

4.DTD Subset


Question:
The syntax for writing the minimum occurrence for an element is?

1.<xsd:element ref=” note” min=” 0” />

2.<xsd:elements ref=” note” min=” 0” />

3. <xsd:elements ref=” note” minOccur=”0” />

4. <xsd:elements ref=” note” minOccurs=” 0” />


Question:
The XML format has a simpler set of ............ than HTML.

1. loader rule

2.parsing rules

3.generator rule

4.logical rule


Question:
UTF stands for?

1. UAS Transformation Format

2.UZS Transformation Format

3. UCS Transformation Format

4.UCP Transformation Format


Question:
We can refer to an external DTD by using?

1. system identifiers

2. public identifiers

3.Both A and B

4.none of the above


Question:
What is the full form of DTD?

1. data type definition

2.document type definition

3.double type definition

4. data type document


Question:
What is true about 4 bytes per character?

1.No mapping needs to be done

2.4 bytes covers all the possible Unicode values

3.Number of possible character 0xFFFF (65535)

4.All of the above


Question:
What is true about XML Schema?

1.It is used to describe and validate the structure and the content of XML data.

2.XML schema defines the elements, attributes and data types

3. It is similar to a database schema that describes the data in a database.

4. All of the above


Question:
What will be Representation (hexadecimal) for Encoding UTF-8?

1.. FE FF

2.EF BB BF

3.00 00 FE FF

4.FF FE 00 00


Question:
Which allows you to specify which child elements an element can contain and to provide some structure within your XML documents?

1. Complex Type

2.Simple type

3. Global Types

4.All of the above


Question:
Which of the following are correct predefined simple types?

1.xs:integer

2. xs:char

3.xs:float

4.xs:bool


Question:
Which of the following are not correct rule of XML declaration?

1.The names are always in lower case.

2.The Parameter names and values are not case-sensitive.

3. The correct order is: version, encoding and standalone.

4.none of the above


Question:
Which of the following Identifies the application to which the instruction is directed?

1.target

2.Instruction

3.Both A and B

4. None of the above


Question:
Which of the following is correct rule for internal subset?

1.The Name in the document type declaration must match the element type of the root element.

2.. Similar to the DOCTYPE declaration, the element declarations must start with an exclamation mark.

3.The document type declaration must appear at the start of the document

4.All of the above


Question:
Which of the following is correct syntax of PI?

1.<?target instructions>

2.<target instructions?>

3.<?target instructions?>

4.<target instructions>


Question:
Which of the following is correct syntax to write an XML element?

1.<?element-name attribute1 attribute2>

2.<?element-name attribute1 attribute2?>

3. <element-name attribute1 attribute2>

4.<! element-name attribute1 attribute2>


Question:
Which of the following is correct XML Elements Rules?

1.The only punctuation mark allowed in names are the hyphen (-).

2.An element name cannot contain any alphanumeric characters.

3.Start and end tags of an element must be identical.

4.Names are case insensitive


Question:
Which of the following is true?

1.An attribute defines a property of the element.

2. An element, which is a container, can contain text or elements

3.The only punctuation mark allowed in names are the hyphen (-), under-score (_) and period (.).

4.All of the above


Question:
Which of the following is used to specify the attribute list of an element?

1.ATTLIST

2. ?ATTLIST

3.!ATTLIST

4. #ATTLIST


Question:
Which of the following valid Pis example?

1.<?welcome?>

2.<?welcome to pg = 10 of lfc?>

3.Both A and B

4. None of the above


Question:
XML Schema is commonly known as ?

1. XZD

2.XAS

3.XSD

4.XFD


Question:
____ is the process of converting unicode characters into their equivalent binary representation.

1.Decoding

2.Encoding

3. DTD

4.DTO


Question:
_____ allow documents to contain instructions for applications.

1. PI

2.PA

3. PD

4.ps


Question:
_____ are part of XML elements.

1.Document

2.Attributes

3.Tags

4.none of the above


Question:
______ element is used only in the context of the text.

1.Complex Type

2. Simple type

3.Global Types

4.All of the above


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
Search
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website 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!