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 31 โ€“ 40 of 114 Questions
Page 4 of 12
Q31
โ“ MCQ๐Ÿ“˜ CS311๐Ÿ“‘ Lec 11๐Ÿท๏ธ 11.2. The Differences Between XML and HTMLEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
XML and HTML were designed with entirely different goals. Which of the following statements is FALSE regarding their design differences?
  1. A.HTML is designed to display data with a focus on how the data looks.
  2. B.XML is designed to carry data with a focus on what the data represents.
  3. C.XML was designed with the primary objective of replacing HTML in web browsers.
  4. D.XML elements and tags are not predefined like those in HTML.
Q32
โ“ 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 XSL stylesheet named 'mystyle.xsl' to an XML document?
๐Ÿ’ป xml Snippet
<?xml-stylesheet type="text/xsl" href="mystyle.xsl" ?>
  1. A.``
  2. B.``
  3. C.``
  4. D.``
Q33
โ“ MCQ๐Ÿ“˜ CS311๐Ÿ“‘ Lec 11๐Ÿท๏ธ 11.10. XML Attributes and Syntax RulesEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Which of the following describes the difference in case-sensitivity rules between XML and HTML element tags?
๐Ÿ’ป xml Snippet
<!-- XML requires matching case -->
<Message>Incorrect</message>
<message>Correct</message>
  1. A.XML tags are case-insensitive like HTML tags.
  2. B.XML tags are case-sensitive, whereas HTML tags are case-insensitive.
  3. C.Both XML and HTML elements are strictly case-sensitive.
  4. D.HTML tags are case-sensitive, whereas XML tags are case-insensitive.
Q34
โ“ MCQ๐Ÿ“˜ CS311๐Ÿ“‘ Lec 11๐Ÿท๏ธ 11.10. XML Attributes and Syntax RulesEasy๐Ÿ”โญ๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Which of the following XML components is used to provide extra, descriptive metadata about elements and is always defined inside the element's start tag?
๐Ÿ’ป xml Snippet
<plants category="flowers" />
  1. A.CDATA
  2. B.PCDATA
  3. C.Attribute
  4. D.Entity
Q35
โ“ MCQ๐Ÿ“˜ CS311๐Ÿ“‘ Lec 11๐Ÿท๏ธ 11.10. XML Attributes and Syntax RulesEasy๐Ÿ”โญ๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
For all XML documents, which of the following statements is strictly true?
  1. A.All XML elements must have a closing tag (or be self-closing).
  2. B.All XML documents must have an associated DTD or an XML Schema.
  3. C.All XML elements must be written in lowercase characters.
  4. D.All of the statements are true.
Q36
โ“ 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 modern web and data exchange standards?
  1. A.eXtensible Markup Language
  2. B.eXtra Modern Link
  3. C.Example Markup Language
  4. D.X-Markup Language
Q37
โ“ MCQ๐Ÿ“˜ CS311๐Ÿ“‘ Lec 11๐Ÿท๏ธ 11.5. Introduction to Document Type Definition (DTD)Easy๐Ÿ”โญ๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
What does the abbreviation DTD stand for in the context of XML validation standards?
  1. A.Document Type Definition
  2. B.Dynamic Type Definition
  3. C.Do The Dance
  4. D.Direct Type Definition
Q38
โ“ MCQ๐Ÿ“˜ CS311๐Ÿ“‘ Lec 11๐Ÿท๏ธ 11.12. Introduction to XSLT Stylesheets and TemplatesMedium๐Ÿ”โญ๐Ÿ’ก๐ŸŒŸ๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Which of the following specifications is NOT a standard component part of the Extensible Stylesheet Language (XSL) technology family?
  1. A.XSLT (a language for transforming XML documents)
  2. B.XPath (a language for navigating in XML documents)
  3. C.XQuery (a language for querying XML documents)
  4. D.XML Schema / XSD (a language for defining structure and constraints)
Q39
โ“ MCQ๐Ÿ“˜ CS311๐Ÿ“‘ Lec 11๐Ÿท๏ธ 11.2. The Differences Between XML and HTMLEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Which of the following markup languages is structurally most similar to XML, as both utilize element tags and hierarchical parent-child boundaries?
๐Ÿ’ป xml Snippet
<!-- XML tag -->
<price>29.99</price>
<!-- HTML tag -->
<p>29.99</p>
  1. A.HTML (HyperText Markup Language)
  2. B.Java
  3. C.SQL (Structured Query Language)
  4. D.JSON (JavaScript Object Notation)
Q40
โ“ MCQ๐Ÿ“˜ CS311๐Ÿ“‘ Lec 11๐Ÿท๏ธ 11.10. XML Attributes and Syntax RulesEasy๐Ÿ”โญ๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
XML tags are strictly case-sensitive. Which of the following represents the correct closing tag for the opening element ``?
๐Ÿ’ป xml Snippet
<Message>This is correct</Message>
  1. A.``
  2. B.``
  3. C.``
  4. D.``