7.awp-Module - 7 - MCQ
7.awp-Module - 7 - MCQ
ANDHRA PRADESH
EXAMINATION CELL
MODULE NO: 7
S. NO MCQ
1 What does XML stand for?
A YES
eXtensible Markup Language
B eXtra Markup Language
B Creating websites
C Designing user interfaces
D Managing databases
3 Which of the following is a valid XML
document?
A
<person name=”John” age=”30” />
B <person name=”John”
age=”30”></person>
C
<person><name>John</name><age>30</
age></person>
D All of the above YES
4 What is an XML element?
A A piece of data enclosed in tags YES
B A programming language
C A data type
D A programming construct
5 What is an XML attribute?
A A piece of data enclosed in tags
B A programming language
C A data type YES
D A programming construct
6 Which of the following is an example of
an XML attribute?
A <person>John</person>
B <person name=”John”></person> YES
C <person><name>John</name></person>
D <person age=”30”>John</person>
7 What is an XML namespace?
attributes
B A programming language
C A data type
D A programming construct
8 Which of the following is a valid XML
namespace declaration?
A <person
xmlns=”http://www.example.com”></per
son>
B <person
xmlns=”http://www.example.com/”></pe
rson>
C <person
xmlns:ex=”http://www.example.com”></
person>
D YES
All of the above
9 What is an XML schema?
schema declaration?
A <xs:schema
xmlns:xs=”http://www.w3.org/2001/XML
Schema”>
B <schema
xmlns=”http://www.w3.org/2001/XMLSc
hema”>
C <xsd:schema
xmlns:xsd=”http://www.w3.org/2001/XM
LSchema”>
D YES
All of the above
11 What is the purpose of an XML schema?
XML document
D To manage databases
12 Which of the following is a valid XML
schema element declaration?
type=”xs:string” />
B <element name=”person”
type=”string” />
C <xsd:element name=”person”
type=”xsd:string” />
D
All of the above
13 What does DTD stand for in XML?
documents
declaration in XML?
“person.dtd”>
18
What is the difference between a SYSTEM
and PUBLIC DOCTYPE declaration in XML?
documents.
B A programming language
C A data type
D
A programming construct
24
What is the purpose of an XML Schema?
D
To manage databases
A <xs:element name="person"
type="xs:string"/>
B <xs:element YES
name="person">xs:complexTypexs:seque
nce<xs:element name="name"
type="xs:string"/><xs:element
name="age"
type="xs:int"/></xs:sequence></xs:compl
exType></xs:element>
C
<element name="person"
type="string"/>
D
A xs:string
B
xs:integer
C
xs:float
D YES
Schema restriction?
A
<xs:restriction
base="xs:string"><xs:pattern value="[A-Z]
[a-z]*"/></xs:restriction>
B
<xs:restriction
base="xs:int"><xs:maxInclusive
value="100"/></xs:restriction>
C
<xs:restriction
base="xs:float"><xs:minExclusive
value="0.0"/></xs:restriction>
D YES
Creating websites
C
Managing databases
33
B
<person name=”John”
age=”30”></person>
C
<person><name>John</name><age>30</
age></person>
D YES
A programming language
C A data type
D A programming construct
35 What is an XML attribute?
A programming language
C YES
A data type
D
A programming construct
36 Which of the following is an example of
an XML attribute?
A <person>John</person>
B YES
<person name=”John”></person>
C <person><name>John</name></person>
<person age=”30”>John</person>
37
A programming language
C
A data type
D
A programming construct
38
xmlns=”http://www.example.com”></per
son>
B
<person
xmlns=”http://www.example.com/”></pe
rson>
C
<person
xmlns:ex=”http://www.example.com”></
person>
D YES
A programming language
C
A data type
D
A programming construct
40
B
To add styles to an XML document
C
To create interactive user interfaces
D To manage databases
B <element name=”person”
type=”string” />
C <xsd:element name=”person”
type=”xsd:string” />
43
What does DTD stand for in XML?
A
Data Transfer Definition
B YES
Document Type Definition
C
Data Type Definition
D
Document Transfer Definition
44 What is a DTD in XML?
A A set of rules for defining the structure YES
and content of an XML document
B A set of programming constructs for
manipulating XML data
C A data type used to store XML
documents
D A programming language used to create
XML documents
45
What is the purpose of a DTD in XML?
A To define the structure and content of an YES
XML document
B
To add styles to an XML document
C
To create interactive user interfaces
D
To manage databases
46
What is a DOCTYPE declaration in XML?
A A declaration that specifies the type of
document being used
B A declaration that specifies the version of
XML being used
C A declaration that specifies the encoding
of the XML document
D A declaration that specifies the DTD YES
being used
47 Which of the following is a valid DOCTYPE
declaration in XML?
A <!DOCTYPE person SYSTEM
“person.dtd”>
B <!DOCTYPE person PUBLIC
“-//EXAMPLE//DTD Person 1.0//EN”
“person.dtd”>
C
<!DOCTYPE person>
D YES
All of the above
48
What is XML used for?
A YES
Storing and transporting data
B
Creating websites
C
Designing user interfaces
D
Managing databases
49 Which of the following is a valid XML
document?
A
<person name=”John” age=”30” />
B <person name=”John”
age=”30”></person>
C <person><name>John</name><age>30<
/age></person>
D YES
All of the above
50
What is an XML element?
A A piece of data enclosed in tags YES
B
A programming language
C
A data type
D
All tags