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 91 โ€“ 100 of 114 Questions
Page 10 of 12
Q91
โ“ MCQ๐Ÿ“˜ CS311๐Ÿ“‘ Lec 11๐Ÿท๏ธ 11.10. XML Attributes and Syntax RulesEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
True or False: In XML, white spaces (including blanks, tabs, and line-breaks) are completely preserved within the character data of elements, unlike in HTML.
  1. A.True
  2. B.False
Q92
โ“ MCQ๐Ÿ“˜ CS311๐Ÿ“‘ Lec 11๐Ÿท๏ธ 11.1. Introduction to XML (Extensible Markup Language)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
What is the primary role of XML in modern web service architectures and data exchange environments?
  1. A.It acts as the standard for displaying data on client browsers.
  2. B.It serves as a cross-platform, compiled programming language.
  3. C.It provides a common, platform-independent syntax for automating data exchange between disparate systems.
  4. D.It is used primarily to compile database schemas into binary executable files.
Q93
โ“ 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 styling technologies?
  1. A.eXtra Style Language
  2. B.eXtensible Stylesheet Language
  3. C.eXtensible Style Listing
  4. D.eXpandable Style Language
Q94
โ“ MCQ๐Ÿ“˜ CS311๐Ÿ“‘ Lec 11๐Ÿท๏ธ 11.10. XML Attributes and Syntax RulesMedium๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Which of the following is NOT a correct name for an XML element and why?
  1. A.``
  2. B.``
  3. C.``
  4. D.All 3 names are incorrect
Q95
โ“ MCQ๐Ÿ“˜ CS311๐Ÿ“‘ Lec 11๐Ÿท๏ธ 11.10. XML Attributes and Syntax RulesEasy๐Ÿ”โญ๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Which of the following represents an invalid XML element name?
  1. A.``
  2. B.``
  3. C.``
  4. D.All 3 names are correct element names.
Q96
โ“ MCQ๐Ÿ“˜ CS311๐Ÿ“‘ Lec 11๐Ÿท๏ธ 11.5. Introduction to Document Type Definition (DTD)Hardโญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
When receiving XML documents from a non-trusted agent, what is the best approach to process them regarding structural integrity and verification?
  1. A.Use a SAX parser only.
  2. B.Use a DOM parser only.
  3. C.Both can be used here without any additional validation checks.
  4. D.Both can be used, but validity is an issue here that requires DTD or schema validation.
Q97
โ“ MCQ๐Ÿ“˜ CS311๐Ÿ“‘ Lec 11๐Ÿท๏ธ 11.10. XML Attributes and Syntax RulesMedium๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Which of the following statements is strictly true regarding XML element attributes?
  1. A.Attributes must occur in a strictly defined order inside the start tag.
  2. B.Attributes must always be present on every occurrence of the element.
  3. C.Both statements are true.
  4. D.None of the statements are true.
Q98
โ“ MCQ๐Ÿ“˜ CS311๐Ÿ“‘ Lec 11๐Ÿท๏ธ 11.9. Empty XML ElementsEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
True or False: XML elements cannot be empty and must always contain text or child elements.
  1. A.True
  2. B.False
Q99
โ“ MCQ๐Ÿ“˜ CS311๐Ÿ“‘ Lec 11๐Ÿท๏ธ 11.8. XML Elements, Tree Structures, and RelationshipsMedium๐Ÿ”โญ๐Ÿ’ก๐ŸŒŸ๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Which of the following represents an invalid or incorrect XML element name?
  1. A.``
  2. B.``
  3. C.``
  4. D.All 3 names are incorrect
Q100
โ“ MCQ๐Ÿ“˜ CS311๐Ÿ“‘ Lec 11๐Ÿท๏ธ 11.4. XML Character Replacement Entities (less than, greater than, ampersand, etc.)Easy๐Ÿ”โญ๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
To prevent parsing errors caused by reserved XML syntax characters, which symbol does the predefined entity reference `<` represent?
๐Ÿ’ป xml Snippet
<comparison>a &lt; b</comparison>
  1. A.`< (less-than sign)`
  2. B.`> (greater-than sign)`
  3. C.`& (ampersand)`
  4. D.`" (double quote)`