0% found this document useful (0 votes)
41 views19 pages

7.awp-Module - 7 - MCQ

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
41 views19 pages

7.awp-Module - 7 - MCQ

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 19

CENTURION UNIVERSITY OF TECHNOLOGY & MANAGEMENT

ANDHRA PRADESH

EXAMINATION CELL

SUBJECT NAME: ADVANCED WEB PROGRAMMING

SUBJECT CODE: CUTM1030

MODULE NO: 7
S. NO MCQ
1 What does XML stand for?
A YES
eXtensible Markup Language
B eXtra Markup Language

C eXplicit Markup Language

D eXpandable Markup Language

2 What is XML used for?


A Storing and transporting data YES

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?

A A way to uniquely identify elements and YES

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?

A A document that defines the structure YES


and content of an XML document
B
A programming language
C
A data type
D
A programming construct
10 Which of the following is a valid XML

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?

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
12 Which of the following is a valid XML
schema element declaration?

A <xs:element name=”person” YES

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?

A Data Transfer Definition


B Document Type Definition YES
C Data Type Definition
D Document Transfer Definition
14 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
15 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
16 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
17 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 All of the above YES

18
What is the difference between a SYSTEM
and PUBLIC DOCTYPE declaration in XML?

A A SYSTEM DOCTYPE declaration refers to YES


a DTD file on the local system, while a

PUBLIC DOCTYPE declaration refers to a

DTD file on the internet.

B A SYSTEM DOCTYPE declaration refers to


a DTD file on the internet, while a PUBLIC
DOCTYPE declaration refers to a DTD file
on the local system.
C A SYSTEM DOCTYPE declaration is used

for internal documents, while a PUBLIC

DOCTYPE declaration is used for external

documents.

D There is no difference between the two.


19 What is an element in XML?

A A fundamental unit of an XML document YES


that is enclosed in tags

B A programming language construct used


to store data
C A data type used to store XML
documents
D A programming language construct used
to manipulate XML data
20 What is an attribute in XML?

A A name-value pair that provides YES


additional information about an element

B A programming language construct used


to store data
C A data type used to store XML
documents
D A programming language construct used
to manipulate XML data
21
What is an entity in XML?
A A character or string that represents a YES
value in an XML document
B A programming language construct used
to store data
C A data type used to store XML
documents
D A programming language construct used

to manipulate XML data

22 What is an internal DTD in XML?

A A DTD that is included within the XML YES


document itself
B
A DTD that is located on a remote server
C
A DTD that is included in a separate file
D
A DTD that is included within the XML
23
What is an XML Schema?
A A document that defines the structure YES
and content of an XML document

B A programming language

C A data type

D
A programming construct
24
What is the purpose of an XML Schema?

A To define the structure and content of an YES


XML document

To add styles to an XML document


C
To create interactive user interfaces

D
To manage databases

25 Which of the following is a valid XML

Schema element declaration?

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

All of the above


26 Which of the following is a valid XML

Schema attribute declaration?


A YES
<xs:attribute name="age" type="xs:int"/>

<attribute name="age" type="int"/>


C

<xs:attribute name="age" type="int"/>


D

All of the above


27

What is the purpose of the xs: prefix in an


XML Schema?
A To identify elements and attributes as YES
belonging to the XML Schema namespace

To identify elements and attributes as


belonging to the XML namespace
C

To identify elements and attributes as


belonging to a user-defined namespace
D

To identify elements and attributes as


belonging to the XSLT namespace
28 Which of the following is a valid XML

Schema data type?

A xs:string
B

xs:integer
C

xs:float
D YES

All of the above


29 What is the purpose of the xs:restriction

element in an XML Schema?

A To restrict the values that can be YES


assigned to an element or attribute

To define the structure of an element or


attribute
C

To define the content model of an


element or attribute
D

To define a reference to another element


or attribute
30 Which of the following is a valid XML

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

All of the above


31

What is the purpose of the xs:sequence


element in an XML Schema?
A To specify the order in which child YES
elements must appear

To specify that child elements must


appear in any order
C

To specify that child elements are


optional
D

To specify that child elements are


required
32 What is XML used for?

A Storing and transporting data YES

Creating websites
C

Designing user interfaces


D

Managing databases
33

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


34

What is an XML element?


A YES

A piece of data enclosed in tags


B

A programming language
C A data type

D A programming construct
35 What is an XML attribute?

A piece of data enclosed in tags


B

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

What is an XML namespace?


A YES

A way to uniquely identify elements and


attributes
B

A programming language
C

A data type
D

A programming construct
38

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


39

What is an XML schema?


A YES
A document that defines the structure
and content of an XML document
B

A programming language
C

A data type
D

A programming construct
40

Which of the following is a valid XML


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
41 What is the purpose of an XML schema?

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

42 Which of the following is a valid XML

schema element declaration?


A <xs:element name=”person” YES
type=”xs:string” />

B <element name=”person”
type=”string” />
C <xsd:element name=”person”

type=”xsd:string” />

D All of the above

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

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy