☑ MCQ PRACTICE

Web Technologies Unit 2

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:

A properties and methods.
B elements and attributes.
C structure and data.
D tables and relationships
Correct Answer elements and attributes
2

To eliminate definition duplication, XML Schemas define:

A an intersection table.
B global elements.
C a normalized definition table.
D None of the above is correct.
Correct Answer global elements.
3

The DTD begins with the word:

A #PCDATA
B XML
C DOCTYPE
D HTTPS
Correct Answer DOCTYPE
4

White spaces in XML includes

A Things like space characters, new lines and tabs
B Only spaces
C Space between two double quotes
D None of these
Correct Answer Space between two double quotes
5

XPATH used to

A Address your documents by specifying a location path
B Address the server
C Store the IP address of the server
D None of these
Correct Answer Address your documents by specifying a location path
6

The tags elements in XML are

A case-insensitive
B case-sensitive
C browser dependent
D none of these
Correct Answer case-sensitive
7

Node in XML is

A any part of the document whether it is elements, attribute or otherwise
B referred only to the attributes
C referred to the top element in the document
D none of these
Correct Answer any part of the document whether it is elements, attribute or otherwise
8

What XML stands for?

A Extra Marked Language
B Extensible Markup Language
C Extensible Marked Literal
D Extra Markup Language
Correct Answer Extensible Markup Language
9

Which component of JDOM Parser represents DOM tree?

A Document
B Element
C Attribute
D Text
Correct Answer Document
10

Which of the following XPath expression selects attributes?

A .
B ..
C @
D //
Correct Answer @
11

What DOM stands for?

A Direct Object Model
B Document Object Modeling
C Document Object Model
D Document Output Model
Correct Answer Document Object Model
12

When to use a DOM Parser?

A You need to know a lot about the structure of a document.
B You need to move parts of the document around.
C You need to use the information in the document more than once.
D All of the above.
Correct Answer All of the above.
13

Which of the following statements is not true about XML Schemas:

A They are used to define the content and structure of data.
B They define a set of symbols and the relationships of those symbols.
C They are themselves XML documents.
D They have their own syntax.
Correct Answer They have their own syntax.
14

Which of the following is true about XML?

A XML is technology independent. It can be used by any technology for data storage and transmission purpose.
B XML uses simple text format. It is human readable and understandable
C Using XSD, DTD and XML structure can be validated easily.
D All of the above.
Correct Answer All of the above.
15

Which of the following is true about XPath?

A XPath is an official recommendation of the World Wide Web Consortium (W3C).
B It defines a language to find information in an XML file
C Both of the above.
D Both of the above.
Correct Answer Both of the above.
16

Which one is a collection of templates and rules ?

A XML
B CSS
C HTML
D XSL
Correct Answer XSL
17

The document that is used by XSLT to indicate, how to transform the elements of the XML document to another format is

A HTML page
B DOC type procedure
C Style sheet
D Stored procedure
Correct Answer Style 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.

A Document type Definition
B Document type declaration
C Document transfer definition
D Document type language
Correct Answer Document 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

A 1 only
B 3 only
C 1 and 2
D 1 and 3
Correct Answer 1 and 3
← Back to All MCQs