Ch 12: Servlet Lifecycle & Request Dispatching

51 Questions51 MCQs0 Short Questions0 Long Questions
๐ŸŽฏ Exam Practice Papers
SEMESTER PASS

CS311 - Introduction to Web Services Development Examination Practice

Timed practice exam simulation for CS311 - Introduction to Web Services Development.

๐Ÿ“˜ VU MID TERM EXAMLectures 1 to 22
โฑ๏ธ 60 Mins

Mid Term Examination

Covers syllabus of Lectures 1 to 22 with 30 high-yield MCQs in a timed exam environment.

๐Ÿ“30 MCQs
โฑ๏ธ60 Minutes
๐Ÿ“— VU FINAL TERM EXAMLectures 23 to 45
โฑ๏ธ 90 Mins

Final Term Examination

Comprehensive semester exam preparation with 45 MCQs covering Lectures 23 to 45 with complete course coverage.

๐Ÿ“45 MCQs
โฑ๏ธ90 Minutes
Showing 41 โ€“ 50 of 51 Questions
Page 5 of 6
Q41
โ“ MCQ๐Ÿ“˜ CS311๐Ÿ“‘ Lec 12๐Ÿท๏ธ 12.3. DTD Building Blocks (PCDATA, CDATA, Elements, Attributes, Entities)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
What does the abbreviation PCDATA stand for in the context of XML Document Type Definitions (DTDs)?
  1. A.private character data
  2. B.parsed and compiled data
  3. C.parsed character data
  4. D.public character data
Q42
โ“ MCQ๐Ÿ“˜ CS311๐Ÿ“‘ Lec 12๐Ÿท๏ธ 12.1. XML Validation (Well-formed vs Valid XML)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Is the following XML document well-formed? ```xml Tove Jani ```
๐Ÿ’ป xml Snippet
<?xml version="1.0"?>
<note>
<to age=29>Tove</to>
<from>Jani</from>
</note>
  1. A.Yes
  2. B.No
Q43
โ“ MCQ๐Ÿ“˜ CS311๐Ÿ“‘ Lec 12๐Ÿท๏ธ 12.4. CDATA vs PCDATA Parsing RulesMedium๐Ÿ”โญ๐Ÿ’ก๐ŸŒŸ๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Which of the following syntaxes is correct for declaring a CDATA section to prevent the XML parser from parsing special characters like '<' or '&'?
  1. A.` Text to be ignored `
  2. B.``
  3. C.` Text to be ignored `
  4. D.``
Q44
โ“ MCQ๐Ÿ“˜ CS311๐Ÿ“‘ Lec 12๐Ÿท๏ธ 12.11. XML Schema (XSD) Introduction and Root ElementEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
What is an XML Instance in XML standards?
  1. A.An individual XML element inside a document
  2. B.A specific XML attribute within a start-tag
  3. C.An XML document that conforms to a specific DTD or XML Schema
  4. D.A runtime Java representation of an XML parser
Q45
โ“ MCQ๐Ÿ“˜ CS311๐Ÿ“‘ Lec 12๐Ÿท๏ธ 12.7. DTD either/or Content ModelsMedium๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
In a Document Type Definition (DTD), how can you declare that element 'x' must contain either element 'a' or element 'b', but strictly not both of them?
๐Ÿ’ป xml Snippet
<!ELEMENT x (a|b)>
  1. A.``
  2. B.``
  3. C.``
  4. D.It is not possible to declare in a DTD that one element contains either 'a' or 'b' but not both.
Q46
โ“ MCQ๐Ÿ“˜ CS311๐Ÿ“‘ Lec 12๐Ÿท๏ธ 12.1. XML Validation (Well-formed vs Valid XML)Medium๐Ÿ”โญ๐Ÿ’ก๐ŸŒŸ๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Which of the following XML fragments is well-formed?
  1. A.`John Smith`
  2. B.``
  3. C.``
  4. D.None of the above fragments are well-formed.
Q47
โ“ MCQ๐Ÿ“˜ CS311๐Ÿ“‘ Lec 12๐Ÿท๏ธ 12.3. DTD Building Blocks (PCDATA, CDATA, Elements, Attributes, Entities)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
What are XML Entities used for in Document Type Definitions (DTDs) and XML processing?
  1. A.Entities define shortcuts to standard attributes.
  2. B.Entities define shortcuts to standard text or special characters.
  3. C.Entities define shortcuts to standard elements.
  4. D.Entities define validation rules for schema datatypes.
Q48
โ“ MCQ๐Ÿ“˜ CS311๐Ÿ“‘ Lec 12๐Ÿท๏ธ 12.1. XML Validation (Well-formed vs Valid XML)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Is the following XML document well-formed? ```xml Tove Jani ```
๐Ÿ’ป xml Snippet
<?xml version="1.0"?>
<note>
<to age="29">Tove</to>
<from>Jani</from>
</note>
  1. A.Yes
  2. B.No
Q49
โ“ MCQ๐Ÿ“˜ CS311๐Ÿ“‘ Lec 12๐Ÿท๏ธ 12.3. DTD Building Blocks (PCDATA, CDATA, Elements, Attributes, Entities)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Within an XML Document Type Definition (DTD), what is the primary purpose and definition of an Entity?
๐Ÿ’ป xml Snippet
<!ENTITY writer "Donald Duck.">
<author>&writer;</author>
  1. A.Entities define shortcuts to standard attributes.
  2. B.Entities define shortcuts to standard text or special characters.
  3. C.Entities define shortcuts to standard elements.
  4. D.Entities define shortcuts to external namespace prefix schemes.
Q50
โ“ MCQ๐Ÿ“˜ CS311๐Ÿ“‘ Lec 12๐Ÿท๏ธ 12.1. XML Validation (Well-formed vs Valid XML)Medium๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Is the following XML document well-formed? ```xml Tove Jani Reminder Don't forget me this weekend! ```
๐Ÿ’ป xml Snippet
<?xml version="1.0"?>
<to>Tove</to>
<from>Jani</from>
<heading>Reminder</heading>
<body>Don't forget me this weekend!</body>
  1. A.Yes, it is well-formed.
  2. B.No, it is not well-formed.