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 1 – 10 of 51 Questions
Page 1 of 6
Q1
❓ MCQ📘 CS311📑 Lec 12🏷️ 12.1. XML Validation (Well-formed vs Valid XML)Medium🔁⭐💡📄🎓VU🏛️VU
Determine whether the following XML document is well-formed: ```xml Tove Jani Reminder Don't forget me this weekend! ```
  1. A.Yes, the document is well-formed.
  2. B.No, the document is not well-formed because it lacks a single parent root element.
Q2
❓ MCQ📘 CS311📑 Lec 12🏷️ 12.3. DTD Building Blocks (PCDATA, CDATA, Elements, Attributes, Entities)Easy🔁⭐💡📄🎓VU🏛️VU
What does the term CDATA stand for in XML DTDs and document structures?
💻 xml Snippet
<![CDATA[Special Offer & Book Sale]]>
  1. A.Character Data
  2. B.Compiled Data
  3. C.Core Data
  4. D.Custom Data
Q3
❓ MCQ📘 CS311📑 Lec 12🏷️ 12.1. XML Validation (Well-formed vs Valid XML)Easy🔁⭐💡📄🎓VU🏛️VU
Determine whether the following XML document is well-formed: ```xml Tove Jani ```
  1. A.Yes, the document is well-formed.
  2. B.No, because child elements cannot contain attributes.
  3. C.No, because it lacks a body element.
  4. D.No, because the root element cannot be named 'note'.
Q4
❓ MCQ📘 CS311📑 Lec 12🏷️ 12.1. XML Validation (Well-formed vs Valid XML)Easy🔁⭐💡📄🎓VU🏛️VU
What does the term XML Instance Document (or XML Instance) refer to in the context of structured data markup languages?
  1. A.A specific element node instantiated within browser memory during execution.
  2. B.A key-value attribute associated with a DOM tree element.
  3. C.An actual XML document containing data conforming to schema or DTD rules.
  4. D.A temporary processing instruction node evaluated by the XML parser.
Q5
❓ MCQ📘 CS311📑 Lec 12🏷️ 12.1. XML Validation (Well-formed vs Valid XML)Medium🔁⭐💡📄🎓VU🏛️VU
Determine whether the following XML document is well-formed: ```xml Tove ```
💻 xml Snippet
<?xml version="1.0"?>
<to>Tove</to>
  1. A.Yes, the document is well-formed.
  2. B.No, because the root element cannot be named 'to'.
  3. C.No, because it is too short and does not contain enough nested children.
  4. D.No, because it lacks a closing root container above the 'to' element.
Q6
❓ MCQ📘 CS311📑 Lec 12🏷️ 12.9. DTD Attribute Value Types (#REQUIRED, #IMPLIED, #FIXED, Enumerated)Easy🔁⭐💡📄🎓VU🏛️VU
In a Document Type Definition (DTD) attribute list declaration, which keyword must be used if you do not define a default value but still want to force the attribute to be present in the XML element?
💻 xml Snippet
<!ATTLIST person number CDATA #REQUIRED>
  1. A.#IMPLIED
  2. B.#REQUIRED
  3. C.#FIXED
  4. D.CDATA
Q7
❓ MCQ📘 CS311📑 Lec 12🏷️ 12.1. XML Validation (Well-formed vs Valid XML)Medium🔁⭐💡📄🎓VU🏛️VU
Determine whether the following XML document is well-formed: ```xml Tove Jani ```
  1. A.Yes, the document is well-formed.
  2. B.No, because attribute values in XML must always be enclosed in quotes.
Q8
❓ 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 an XML Document Type Definition (DTD)?
💻 xml Snippet
<!ELEMENT note (#PCDATA)>
  1. A.Parsed Character Data
  2. B.Processed Character Data
  3. C.Private Character Data
  4. D.Primary Character Data
Q9
❓ MCQ📘 CS311📑 Lec 12🏷️ 12.2. DTD Subsets (Internal vs External Subsets)Easy🔁⭐💡📄🎓VU🏛️VU
In a Document Type Declaration (DOCTYPE), if the DTD identifier points to an external path or a system URL instead of being declared inline, it is referred to as a(n) _________.
💻 xml Snippet
<!DOCTYPE note SYSTEM "note.dtd">
  1. A.Internal Subset
  2. B.External Subset
  3. C.Dynamic Entity
  4. D.Validation Schema
Q10
❓ MCQ📘 CS311📑 Lec 12🏷️ 12.1. XML Validation (Well-formed vs Valid XML)Easy🔁⭐💡📄🎓VU🏛️VU
Determine whether the following XML document is well-formed: ```xml Tove Jani Reminder Don't forget me this weekend! ```
💻 xml Snippet
<?xml version="1.0"?>
<note>
  <to>Tove</to>
  <from>Jani</from>
  <heading>Reminder</heading>
  <body>Don't forget me this weekend!</body>
</note>
  1. A.Yes, the document is well-formed.
  2. B.No, because the element tags are not written in lowercase.