Practice objective questions
for quick revision and examination
preparation. Try answering each question
before revealing the answer.
📚 Web Technologies
📖 Unit 2
🎯 MCQs
Web Technologies MCQs - Unit 2
Web Technologies MCQs - Unit 2
1
XML Schemas consist of:
Aproperties and methods.
Belements and attributes.
Cstructure and data.
Dtables and relationships
Correct Answerelements and attributes
2
To eliminate definition duplication, XML Schemas define:
Aan intersection table.
Bglobal elements.
Ca normalized definition table.
DNone of the above is correct.
Correct Answerglobal elements.
3
The DTD begins with the word:
A#PCDATA
BXML
CDOCTYPE
DHTTPS
Correct AnswerDOCTYPE
4
White spaces in XML includes
AThings like space characters, new lines and tabs
BOnly spaces
CSpace between two double quotes
DNone of these
Correct AnswerSpace between two double quotes
5
XPATH used to
AAddress your documents by specifying a location path
BAddress the server
CStore the IP address of the server
DNone of these
Correct AnswerAddress your documents by specifying a location path
6
The tags elements in XML are
Acase-insensitive
Bcase-sensitive
Cbrowser dependent
Dnone of these
Correct Answercase-sensitive
7
Node in XML is
Aany part of the document whether it is elements, attribute or otherwise
Breferred only to the attributes
Creferred to the top element in the document
Dnone of these
Correct Answerany part of the document whether it is elements, attribute or otherwise
8
What XML stands for?
AExtra Marked Language
BExtensible Markup Language
CExtensible Marked Literal
DExtra Markup Language
Correct AnswerExtensible Markup Language
9
Which component of JDOM Parser represents DOM tree?
ADocument
BElement
CAttribute
DText
Correct AnswerDocument
10
Which of the following XPath expression selects attributes?
A.
B..
C@
D//
Correct Answer@
11
What DOM stands for?
ADirect Object Model
BDocument Object Modeling
CDocument Object Model
DDocument Output Model
Correct AnswerDocument Object Model
12
When to use a DOM Parser?
AYou need to know a lot about the structure of a document.
BYou need to move parts of the document around.
CYou need to use the information in the document more than once.
DAll of the above.
Correct AnswerAll of the above.
13
Which of the following statements is not true about XML Schemas:
AThey are used to define the content and structure of data.
BThey define a set of symbols and the relationships of those symbols.
CThey are themselves XML documents.
DThey have their own syntax.
Correct AnswerThey have their own syntax.
14
Which of the following is true about XML?
AXML is technology independent. It can be used by any technology for data storage and transmission purpose.
BXML uses simple text format. It is human readable and understandable
CUsing XSD, DTD and XML structure can be validated easily.
DAll of the above.
Correct AnswerAll of the above.
15
Which of the following is true about XPath?
AXPath is an official recommendation of the World Wide Web Consortium (W3C).
BIt defines a language to find information in an XML file
CBoth of the above.
DBoth of the above.
Correct AnswerBoth of the above.
16
Which one is a collection of templates and rules ?
AXML
BCSS
CHTML
DXSL
Correct AnswerXSL
17
The document that is used by XSLT to indicate, how to transform the elements of the XML document to another format is
AHTML page
BDOC type procedure
CStyle sheet
DStored procedure
Correct AnswerStyle sheet
18
In XML we can specify the frequency of an element by using the symbols :
A+ * !
B# * !
C+ * ?
D_B ?
Correct Answer+ * ?
19
In XML, DOCTYPE declaration specifies to include a reference to ___________ file.
ADocument type Definition
BDocument type declaration
CDocument transfer definition
DDocument type language
Correct AnswerDocument type Definition
20
Which of the following statements are true with reference to the way of describing XML data ? 1. uses DTD to describe the data 2. XML uses XSL to describe the data 3.XML uses a description node to describe the data