0% found this document useful (0 votes)
487 views

CS311 Midterm Sloved Paper

This document contains a midterm solved paper reference for CS-311 Introduction to Web Services Development. It includes 25 multiple choice questions about XML fundamentals like the definition of XML, how to describe XML data, well-formed XML documents, XML elements and attributes, XML parsers, and the XML DOM. The questions cover topics such as the structure of XML, valid XML syntax and naming conventions, how XML documents are parsed and errors handled, and how XML is used to transfer and display data.

Uploaded by

Nabila Nisar
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)
487 views

CS311 Midterm Sloved Paper

This document contains a midterm solved paper reference for CS-311 Introduction to Web Services Development. It includes 25 multiple choice questions about XML fundamentals like the definition of XML, how to describe XML data, well-formed XML documents, XML elements and attributes, XML parsers, and the XML DOM. The questions cover topics such as the structure of XML, valid XML syntax and naming conventions, how XML documents are parsed and errors handled, and how XML is used to transfer and display data.

Uploaded by

Nabila Nisar
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/ 5

CS-311 Introduction to Web Services Development

Midterm Solved Paper Reference by Shahzad-Usmani

1. What does XML stand for?

·         eXtensible Markup Language


·         eXtra Modern Link
·         Example Markup Language
·         X-Markup Language

2. There is a way of describing XML data, how?

·         XML uses a DTD to describe the data


·         XML uses XSL to describe data
·         XML uses a description node to describe data

3. XML's goal is to replace HTML

·         False
·         True

4. What is the correct syntax of the declaration which defines the XML version?

·         <xml version="1.0" />


·         <?xml version="1.0" />
·         <?xml version="1.0"?>

5. What does DTD stand for?

·         Document Type Definition


·         Dynamic Type Definition
·         Do The Dance
·         Direct Type Definition

6. 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>

·         Yes
·         No

7. 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>

·         Yes
·         No

8. Which statement is true?

·         All the statements are true


·         All XML elements must be properly closed
·         All XML documents must have a DTD
·         All XML elements must be lower case

9. Which statement is true?

·         All the statements are true


·         XML documents must have a root tag
·         XML tags are case sensitive
·         XML elements must be properly nested

10. XML preserves white spaces

·         False
·         True

11. Is this a "well formed" XML document?


<?xml version="1.0"?>
<note>
<to age="29">Tove</to>
<from>Jani</from>
</note>

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

·         No
·         Yes

13. XML elements cannot be empty

·         True
·         False

14. Which is not a correct name for an XML element?


·         <h1>
·         <1dollar>
·         <Note>
·         All 3 names are incorrect

15. Which is not a correct name for an XML element?

·         All 3 names are incorrect


·         <first name>
·         <age>
·         <NAME>

16. Which is not a correct name for an XML element?

·         All 3 names are incorrect


·         <xmldocument>
·         <7eleven>
·         <phone number>

17. XML attribute values must always be enclosed in quotes

·         False
·         True

18. What does XSL stand for?

·         eXtra Style Language


·         eXtensible Stylesheet Language
·         eXtensible Style Listing
·         eXpandable Style Language

19. What is a correct way of referring to a stylesheet called "mystyle.xsl”?

·         <?xml-stylesheet type="text/xsl" href="mystyle.xsl" ?>


·         <link type="text/xsl" href="mystyle.xsl" />
·         <stylesheet type="text/xsl" href="mystyle.xsl" />

20. For the XML parser to ignore a certain section of your XML document, which syntax is
correct?

·         <CDATA> Text to be ignored </CDATA>


·         <xml:CDATA[ Text to be ignored ]>
·         <PCDATA> Text to be ignored </PCDATA>
·         <![CDATA[ Text to be ignored ]]>

21. Which statement is true?

·         Attributes must occur in defined order


·         None of the statements are true
·         Attributes must always be present
·         Both statements are true

22. What are XML entities used for?

·         Entities define shortcuts to standard attributes


·         Entities define shortcuts to standard text or special characters
·         Entities define shortcuts to standard elements

23. Which of the following XML fragments is well-formed?

· <customer id=3456><name>John Smith</name></customer>


· <customer id="3456"><address/><zip code="3456"/></customer>

24. What is an XML instance?

· An XML element
· An XML attribute
· An XML document

25. Which XML DOM object represents a node in the node tree?
· The nodeList object
· The node object
· The document object

Regards:
https://vukiduniya.blogspot.com/

You might also like