0% found this document useful (0 votes)
104 views18 pages

Java Normal Track

This document contains 15 multiple choice questions about XML concepts like DTDs, schemas, data types, and the DOM object model. It provides the questions, possible answers for each, and a thank you message at the end promoting a website.

Uploaded by

anishnirmal
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
104 views18 pages

Java Normal Track

This document contains 15 multiple choice questions about XML concepts like DTDs, schemas, data types, and the DOM object model. It provides the questions, possible answers for each, and a thank you message at the end promoting a website.

Uploaded by

anishnirmal
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 18

XML

10th Sep 2010

JAVA NORMAL TRACK


ALL THE BEST
Question 1

Attribute standalone="no" should be included in XML declaration if a document:

1. is linked to an external XSL stylesheet


2. has external general references
3. has processing instructions
4. has an external DTD

3
Question 2

In XML

(1) the internal DTD subset is read before the external DTD
(2) the external DTD subset is read before the internal DTD
(3) there is no external type of DTD
(4) there is no internal type of DTD

4
Question 3

Disadvantages of DTD are

(i)DTDs are not extensible


(ii)DTDs are not in to support for namespaces
(iii)there is no provision for inheritance from one DTDs to another

(1) (i) is correct


(2) (i),(ii) are correct
(3) (ii),(iii) are correct
(4) (i),(ii),(iii) are correct

5
Question 4

To use the external DTD we have the syntax

(1) <?xml version=”1.0” standalone=”no”?>


<! DOCTYPE DOCUMENT SYSTEM “order.dtd”?>

(2) <?xml version=”1.0” standalone=”yes”?>


<! DOCTYPE DOCUMENT SYSTEM “order.dtd”?>

(3 )<?xml version=”1.0” standalone=”no”?>


<! DOCTYPE DOCUMENT “order.dtd”?>

(4) <?xml version=”1.0” standalone=”yes”?>


<! DOCTYPE DOCUMENT SYSTEM “order.dtd”?>

6
Question 5

To add the attribute named Type to the <customer> tag the syntax will be

(1) <customer attribute Type=”exelent”>


(2) <customer Type attribute =”exelent”>
(3) <customer Type attribute_type=”exelent”>
(4) <customer Type=” exelent” >

7
Question 6

The syntax for parameter entity is

(1) <! ENTITY % NAME DEFINITION>


(2) < ENTITY % NAME DEFINITION>
(3) <! ENTITY $ NAME DEFINITION>
(4) < ENTITY % NAME DEFINITION>

8
Question 7

You can name the schema using the name attribute like

1. <schema attribute=”schema1”>
2. <schema nameattribute=”schema1”>
3. <schema nameattri=”schema1”>
4. <schema name=”schema1”>

9
Question 8

The default model for complex type, in XML schemas for element is

1. textOnly
2. elementOnly
3. no default type
4. both 1 & 2

10
Question 9

Microsoft XML Schema Data types for Hexadecimal digits representating octates

1. UID
2. UXID
3. UUID
4. XXID

11
Question 10

1A schema describes
(i) grammer
(ii) vocabulary
(iii) structure
(iv) datatype of XML document

(1) (i) & (ii) are correct


(2) (i),(iii) ,(iv) are correct
(3) (i),(ii),(iv) are correct
(4) (i),(ii),(iii),(iv) are correct

12
Question 11

Microsoft XML Schema Data Type “ boolean” has values

(1) True ,False


(2) True ,False or 1,0
(3) 1,0
(4) any number other then zero and zero

13
Question 12

Simple type Built into Schema “ data’ represent a data in

(1) MM-DD-YY
(2) Dd-MM-YY
(3) YY-MM-DD
(4) YYYY-MM-DD

14
Question 13

In simple Type Built into XML schema Boolean type holds

(1) True, False


(2) 1,0
(3) both (1) & (2)
(4) True/False and any number except 0

15
Question 14

In simple type built into XML schema type flat has single precision of ________
floating point

(1) 16 bit
(2) 32 bit
(3) 8 bit
(4) 4 bit

16
Question 15

The XML DOM object is

1. Entity
2. Entity Reference
3. Comment Reference
4. Comment Data

17
Thank you

www.hcl.com

You might also like