Monday 19 March 2012

MCQ For Advance PHP


1. What does XML stand for?
A) eXtra Modern Link
B) X-Markup Language
C) Example Markup Language
D) eXtensible Markup Language

2. XML's goal is to replace HTML
A) True
B) False

3. What is the correct syntax of the declaration which defines the XML version?      
A) <xml version="1.0" />
B) <?xml version="1.0"?>
C) <?xml version="1.0" />
D) None of this

4. What does DTD stand for?
A) Document Type Definition
B) Do The Dance
C) Direct Type Definition
D) Dynamic Type Definition

5. Is this a "well formed" XML document?
<?xml version="1.0"?>
<note>
<to>Tove</to>
<from>Jani</from>
<heading>Reminder</heading>
<body>Don't forget me this weekend!</body>
</note>
A) True
B) False

6. Is this a "well formed" XML document?
<?xml version="1.0"?>
<to>Tove</to>
<from>Jani</from>
<heading>Reminder</heading>
<body>Don't forget me this weekend!</body>
A) True
B) False

7. Which statement is true?
A) XML elements must be properly nested
B) XML documents must have a root tag
C) XML tags are case sensitive
D) All the statements are true

8. XML preserves white spaces
A) True
B) False

9. Is this a "well formed" XML document?
<?xml version="1.0"?>
<note>
<to age=29>Tove</to>
<from>Jani</from>
</note>
A) Yes
B) No

10. XML element can not be empty.
A) True
B) False



Ø       Answer

1)     D
2)     B
3)     B
4)     A
5)     A
6)     B
7)     C
8)     A
9)     B
10)  B

Posted By : Hemangi Zala

No comments:

Post a Comment