Ch 11: Introduction to Java Servlets

114 Questions114 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 51 โ€“ 60 of 114 Questions
Page 6 of 12
Q51
โ“ MCQ๐Ÿ“˜ CS311๐Ÿ“‘ Lec 11๐Ÿท๏ธ 11.9. Empty XML ElementsEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
In XML syntax specifications, an element that does not contain any text, child elements, or nested markers is defined as an empty element. Which of the following options correctly represents the syntax of an empty XML element?
๐Ÿ’ป xml Snippet
<element />
  1. A.Only `` is correct.
  2. B.Only `` is correct.
  3. C.Both `` and `` are correct.
  4. D.`` is the only valid representation.
Q52
โ“ MCQ๐Ÿ“˜ CS311๐Ÿ“‘ Lec 11๐Ÿท๏ธ 11.10. XML Attributes and Syntax RulesEasy๐Ÿ”โญ๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Which of the following statements is strictly true regarding XML elements and DTD rules?
  1. A.All of the statements are true.
  2. B.All XML elements must have a corresponding closing tag.
  3. C.All XML documents are required to contain a DTD.
  4. D.All XML elements must be declared in lowercase letters.
Q53
โ“ MCQ๐Ÿ“˜ CS311๐Ÿ“‘ Lec 11๐Ÿท๏ธ 11.10. XML Attributes and Syntax RulesMedium๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Does the XML standard preserve whitespace characters inside element content, or does it collapse consecutive spaces like HTML?
  1. A.False, XML automatically collapses consecutive whitespaces and newlines.
  2. B.True, XML preserves all whitespace characters (spaces, tabs, and newlines) inside element content.
Q54
โ“ MCQ๐Ÿ“˜ CS311๐Ÿ“‘ Lec 11๐Ÿท๏ธ 11.6. Inline (Internal) vs External DTDsEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
True or False: According to XML validation standards, a Document Type Definition (DTD) must be stored in a separate external file and cannot be declared inside the XML instance document.
  1. A.True, it must be stored in an external file.
  2. B.False, DTDs can be specified inline (internal subset) within the XML document or as an external reference.
Q55
โ“ MCQ๐Ÿ“˜ CS311๐Ÿ“‘ Lec 11๐Ÿท๏ธ 11.12. Introduction to XSLT Stylesheets and TemplatesEasy๐Ÿ”โญ๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
What does the abbreviation XSL stand for in the context of XML stylesheet and transformation standards?
  1. A.eXtra Style Language
  2. B.eXtensible Stylesheet Language
  3. C.eXtensible Style Listing
  4. D.eXpandable Style Language
Q56
โ“ MCQ๐Ÿ“˜ CS311๐Ÿ“‘ Lec 11๐Ÿท๏ธ 11.10. XML Attributes and Syntax RulesEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
True or False: According to XML syntax rules, XML attribute values are strictly required to be enclosed in double quotation marks, and single quotation marks are forbidden.
๐Ÿ’ป xml Snippet
<!-- Both syntaxes are valid -->
<person name="Anna" />
<person name='Anna' />
  1. A.True, double quotes are mandatory.
  2. B.False, XML attribute values can be enclosed in either single (' ') or double (" ") quotation marks.
Q57
โ“ MCQ๐Ÿ“˜ CS311๐Ÿ“‘ Lec 11๐Ÿท๏ธ 11.13. XPath, XPointer, XLink, and XQueryEasyโญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
In the context of XML technology standards, what is the official status and origin of the XPath navigation language?
  1. A.It does not belong to any standard organization.
  2. B.It is a Microsoft-proprietary standard.
  3. C.It is a non-W3C standard.
  4. D.It is an official W3C (World Wide Web Consortium) Standard
Q58
โ“ MCQ๐Ÿ“˜ CS311๐Ÿ“‘ Lec 11๐Ÿท๏ธ 11.9. Empty XML ElementsEasy๐Ÿ”โญ๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
True or False: XML elements are strictly prohibited from being empty, and must always encapsulate text content or nested tags.
๐Ÿ’ป xml Snippet
<element />
  1. A.True
  2. B.False
Q59
โ“ MCQ๐Ÿ“˜ CS311๐Ÿ“‘ Lec 11๐Ÿท๏ธ 11.10. XML Attributes and Syntax RulesEasy๐Ÿ”โญ๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Which of the following is the correct syntax of the XML declaration that defines the XML version inside an XML document?
๐Ÿ’ป xml Snippet
<?xml version="1.0"?>
  1. A.``
  2. B.``
  3. C.``
  4. D.``
Q60
โ“ MCQ๐Ÿ“˜ CS311๐Ÿ“‘ Lec 11๐Ÿท๏ธ 11.10. XML Attributes and Syntax RulesEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
According to the syntax rules of W3C XML specifications, which of the following statements is strictly true for all XML documents?
  1. A.All XML documents must have an associated DTD to be parsed.
  2. B.All XML elements must have a closing tag (or be self-closing).
  3. C.All XML elements and tags must be written in lowercase characters.
  4. D.None of the given options are true.