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 11 โ€“ 20 of 114 Questions
Page 2 of 12
Q11
โ“ MCQ๐Ÿ“˜ CS311๐Ÿ“‘ Lec 11๐Ÿท๏ธ 11.10. XML Attributes and Syntax RulesEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Which of the following statements represents a true structural or grammatical rule of standard XML documents?
  1. A.All of the statements are true.
  2. B.All XML documents must contain exactly one root tag to encapsulate the elements.
  3. C.XML tags are case-sensitive, meaning opening and closing tags must match exactly in case.
  4. D.All XML elements must be properly nested within each other.
Q12
โ“ MCQ๐Ÿ“˜ CS311๐Ÿ“‘ Lec 11๐Ÿท๏ธ 11.10. XML Attributes and Syntax RulesEasy๐Ÿ”โญ๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Which of the following represents an invalid XML element name according to naming standards?
  1. A.``
  2. B.``
  3. C.``
  4. D.All 3 names are incorrect element names.
Q13
โ“ MCQ๐Ÿ“˜ CS311๐Ÿ“‘ Lec 11๐Ÿท๏ธ 11.12. Introduction to XSLT Stylesheets and TemplatesMedium๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
What is the correct processing instruction syntax for linking an external XSLT stylesheet called 'mystyle.xsl' to an XML document?
๐Ÿ’ป xml Snippet
<?xml-stylesheet type="text/xsl" href="mystyle.xsl"?>
  1. A.``
  2. B.``
  3. C.``
  4. D.``
Q14
โ“ MCQ๐Ÿ“˜ CS311๐Ÿ“‘ Lec 11๐Ÿท๏ธ 11.5. Introduction to Document Type Definition (DTD)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Which of the following describes the mechanism used to define the legal building blocks and vocabulary of an XML document?
  1. A.XML uses a Document Type Definition (DTD) to describe the data structure.
  2. B.XML uses Extensible Stylesheet Language (XSL) to describe the data structure.
  3. C.XML uses a dedicated description node to describe the data structure.
  4. D.XML relies on predefined HTML tags to enforce document structure.
Q15
โ“ MCQ๐Ÿ“˜ CS311๐Ÿ“‘ Lec 11๐Ÿท๏ธ 11.10. XML Attributes and Syntax RulesEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Which of the following statements regarding XML syntax rules is true?
  1. A.All the statements are true.
  2. B.All XML documents must contain a single tag pair to define the root element.
  3. C.XML tags are case-sensitive, meaning opening and closing tags must match exactly in case.
  4. D.All XML elements must be properly nested within each other.
Q16
โ“ MCQ๐Ÿ“˜ CS311๐Ÿ“‘ Lec 11๐Ÿท๏ธ 11.9. Empty XML ElementsEasy๐Ÿ”โญ๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
True or False: XML elements are restricted from being empty and must always contain text or nested child nodes.
  1. A.True, elements must always contain some content.
  2. B.False, XML elements can be empty and may be written as `` or as a self-closing `` tag.
Q17
โ“ MCQ๐Ÿ“˜ CS311๐Ÿ“‘ Lec 11๐Ÿท๏ธ 11.2. The Differences Between XML and HTMLEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
True or False: The primary architectural design goal of XML is to eventually replace HTML as the standard formatting language for web browsers.
  1. A.True
  2. B.False
Q18
โ“ MCQ๐Ÿ“˜ CS311๐Ÿ“‘ Lec 11๐Ÿท๏ธ 11.12. Introduction to XSLT Stylesheets and TemplatesEasy๐Ÿ”โญ๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
What does the abbreviation XSL stand for in XML-related styling technologies?
  1. A.eXtra Style Language
  2. B.eXtensible Stylesheet Language
  3. C.eXtensible Style Listing
  4. D.eXpandable Style Language
Q19
โ“ MCQ๐Ÿ“˜ CS311๐Ÿ“‘ Lec 11๐Ÿท๏ธ 11.1. Introduction to XML (Extensible Markup Language)Easy๐Ÿ”โญ๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
What does the abbreviation XML stand for in the context of internet and data interchange protocols?
  1. A.Extensible Markup Language
  2. B.eXtra Modern Link
  3. C.Example Markup Language
  4. D.eXtensible Style Listing
Q20
โ“ MCQ๐Ÿ“˜ CS311๐Ÿ“‘ Lec 11๐Ÿท๏ธ 11.10. XML Attributes and Syntax RulesEasy๐Ÿ”โญ๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
True or False: In XML, attribute values are optional to be wrapped in quotes and can be declared as bare words similar to some HTML formats.
๐Ÿ’ป xml Snippet
<!-- Incorrect XML -->
<a b=x> ... </a>
<!-- Correct XML -->
<a b="x"> ... </a>
  1. A.False, XML attribute values must always be enclosed in quotation marks (either single or double).
  2. B.True, quotes are optional for numeric and single-word attribute values.