R4RIN
Articles
Java 8
MCQS
XML MCQ Quiz Hub
XML Mcq Question Set 4
Choose a topic to test your knowledge and improve your XML skills
1. Attribute standalone="no" should be included in XML declaration if a document.
is linked to an external XSL stylesheet
has external general references
has processing instructions
has an external DTD
2. Which of the following are not correct rule of XML declaration?
The names are always in lower case.
The Parameter names and values are not case-sensitive.
The correct order is: version, encoding and standalone.
none of the above
3. Elements can behave as containers to hold?
Objects
text
attributes
All of the above
4. Each XML document contains _______ element?
Zero
One
Zero and more
One and more
5. Which of the following is correct syntax to write an XML element?
<?element-name attribute1 attribute2>
<?element-name attribute1 attribute2?>
<element-name attribute1 attribute2>
<! element-name attribute1 attribute2>
6. Element with no content is known as?
free element
empty element
vacent element
idle element
7. Which of the following is correct XML Elements Rules?
The only punctuation mark allowed in names are the hyphen (-).
An element name cannot contain any alphanumeric characters.
Start and end tags of an element must be identical.
Names are case insensitive
8. Which of the following is true?
An attribute defines a property of the element.
An element, which is a container, can contain text or elements
The only punctuation mark allowed in names are the hyphen (-), under-score (_) and period (.).
All of the above
9. A validating XML application should be used when?
the design demands that all elements use both start and end tags
missing or out-of-place elements could cause application errors
attribute values cannot refer to external entity references
High performance is an important architectural constraint
10. The syntax for writing the minimum occurrence for an element is?
<xsd:element ref=” note” min=” 0” />
<xsd:elements ref=” note” min=” 0” />
<xsd:elements ref=” note” minOccur=”0” />
<xsd:elements ref=” note” minOccurs=” 0” />
11. Which of the following is used to specify the attribute list of an element?
ATTLIST
?ATTLIST
!ATTLIST
#ATTLIST
12. _____ are part of XML elements.
Document
Attributes
Tags
none of the above
13. An XML attribute is always a ________ pair.
name-value
name-attribute
name-tag
document-value
14. The name value should be in?
double (" ") quotes.
single () quotes.
double (" ") or single () quotes.
none of the above
15. Attributes are used to add a unique ________ to an element
tags
edges
label
flag
16. How many types of enumerated attribute?
2
3
4
5
17. NMTOKEN attribute used for?
It is used to specify the element as unique.
It indicates that the attribute will represent an external entity in the document.
It is similar to CDATA with restrictions on what data can be part of the attribute.
It is similar to CDATA with restrictions on what data can be part of the attribute.
18. IDREFS attribute used for?
It is used to reference all IDs of an element.
It is used to reference an ID that has been named for another element.
It is used to specify the element as unique.
It indicates that the attribute will represent external entities in the document.
19. CDATA attribute is?
StringType
Character data
Both A and B
none of the above
20. Which of the following are the predefined attributes?
xml:lang
xml:space
Both A and B
none of the above
21. Attribute of the document interface in DOM is/are?
doctype
implementation
documentElement
All of the above
22. _____ allow documents to contain instructions for applications.
PI
PA
PD
ps
23. Which of the following is correct syntax of PI?
<?target instructions>
<target instructions?>
<?target instructions?>
<target instructions>
24. Which of the following Identifies the application to which the instruction is directed?
target
Instruction
Both A and B
None of the above
25. A PI can contain any data except the combination?
!>
<!
<?
?>
26. Which of the following valid Pis example?
<?welcome?>
<?welcome to pg = 10 of lfc?>
Both A and B
None of the above
27. What is the full form of DTD?
data type definition
document type definition
double type definition
data type document
28. A character that describes the information for the application to process known as?
target
Instruction
DTD
DTO
29. ____ is the process of converting unicode characters into their equivalent binary representation.
Decoding
Encoding
DTD
DTO
30. How many type of encoding?
2
3
4
5
31. UTF stands for?
UAS Transformation Format
UZS Transformation Format
UCS Transformation Format
UCP Transformation Format
32. For the documents without encoding information, ______ is set by default.
UTF-8
UTF-16
Both A and B
none of the above
33. The number 8 or 16 refers to?
the number of bits
the number of byte
the number of megabits
the number of kilobits
34. Number of possible Characters for 1 Bytes Per Character?
127
128
255
256
35. What is true about 4 bytes per character?
No mapping needs to be done
4 bytes covers all the possible Unicode values
Number of possible character 0xFFFF (65535)
All of the above
36. A mapping is done from the byte value (0-255) and translated through a mapping table referred to as a?
DTO
Code
Page
Code Page
37. In most code pages the first 127 chars are common known as the?
Char set
ASCII
ASCII set
Code Page
38. What will be Representation (hexadecimal) for Encoding UTF-8?
. FE FF
EF BB BF
00 00 FE FF
FF FE 00 00
39. The DTD starts with?
declaration
DOCTYPE delimiter
DTD identifier
none of the above
40. An __________ tells the parser to parse the document from the specified root element.
element
DTD
PI
identifier
41. If the DTD is pointing to external path, it is called?
Internal Subset
DTD identifier
External Subset
none of the above
42. The square brackets [ ] enclose an optional list of entity declarations called?
Internal Subset
DTD identifier
Element Subset
DTD Subset
43. Which of the following is correct rule for internal subset?
The Name in the document type declaration must match the element type of the root element.
. Similar to the DOCTYPE declaration, the element declarations must start with an exclamation mark.
The document type declaration must appear at the start of the document
All of the above
44. In external DTD elements are declared _______ the XML file.
Inside
After DOCTYPE
Before DTD Body
outside
45. We can refer to an external DTD by using?
system identifiers
public identifiers
Both A and B
none of the above
46. Public identifiers can follow any format, however, a commonly used format is called?
PDF
PNG
FPI
JPG
47. In XML?
the internal DTD subset is read before the external DTD
the external DTD subset is read before the internal DTD
there is no external type of DTD
there is no internal type of DTD
48. XML Schema is commonly known as ?
XZD
XAS
XSD
XFD
49. What is true about XML Schema?
It is used to describe and validate the structure and the content of XML data.
XML schema defines the elements, attributes and data types
It is similar to a database schema that describes the data in a database.
All of the above
50. How can be defined within an XSD?
<xs:element name = "x" type = "y"/>
<?xs:element name = "x" type = "y"/>
<xs:element name = "x" type = "y">
</xs:element name = "x" type = "y"/>
51. ______ element is used only in the context of the text.
Complex Type
Simple type
Global Types
All of the above
52. Which of the following are correct predefined simple types?
xs:integer
xs:char
xs:float
xs:bool
53. Attributes have _______ property.
name
type
Both A and B
none of the above
54. Which allows you to specify which child elements an element can contain and to provide some structure within your XML documents?
Complex Type
Simple type
Global Types
All of the above
55. A schema describes?
structure
datatype of XML document
grammer
All of the above
56. Microsoft XML Schema Data Type “ boolean” has values?
True ,False
True ,False, 1,0
1,0
any number other then zero and one
57. Simple type Built into Schema "data" represent a data in?
MM-DD-YY
DD-MM-YYYY
YY-MM-DD
YYYY-MM-DD
58. The XML format has a simpler set of ............ than HTML.
loader rule
parsing rules
generator rule
logical rule
59. All information in XML is .....
Unicode text
multi code
multi text
simple text
60. An entity in XML is a ..........
class
logical information
simple information
flexible information storage unit
Submit