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 61 โ€“ 70 of 114 Questions
Page 7 of 12
Q61
โ“ MCQ๐Ÿ“˜ CS311๐Ÿ“‘ Lec 11๐Ÿท๏ธ 11.10. XML Attributes and Syntax RulesEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Which syntactic components of XML elements are placed inside an element's opening tag to provide extra, descriptive metadata or properties about that element?
๐Ÿ’ป xml Snippet
<img src="computer.gif" />
  1. A.Attributes
  2. B.Entities
  3. C.Tags
  4. D.None of the given options
Q62
โ“ MCQ๐Ÿ“˜ CS311๐Ÿ“‘ Lec 11๐Ÿท๏ธ 11.13. XPath, XPointer, XLink, and XQueryMedium๐Ÿ”โญ๐Ÿ’ก๐ŸŒŸ๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Which W3C specification and XML markup language provides standard methods for creating both internal and external hyperlinks within XML documents?
๐Ÿ’ป xml Snippet
<homepage xmlns:xlink="http://www.w3.org/1999/xlink"
          xlink:type="simple" xlink:href="http://www.vu.edu.pk">VU</homepage>
  1. A.XLink (XML Linking Language)
  2. B.XPath (XML Path Language)
  3. C.XQuery (XML Query Language)
  4. D.XPointer (XML Pointer Language)
Q63
โ“ MCQ๐Ÿ“˜ CS311๐Ÿ“‘ Lec 11๐Ÿท๏ธ 11.4. XML Character Replacement Entities (less than, greater than, ampersand, etc.)Easy๐Ÿ”โญ๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
In XML character replacement, which character is represented by the predefined entity reference `<`?
  1. A.`<`
  2. B.`>`
  3. C.`<=`
  4. D.`=>`
Q64
โ“ MCQ๐Ÿ“˜ CS311๐Ÿ“‘ Lec 11๐Ÿท๏ธ 11.4. XML Character Replacement Entities (less than, greater than, ampersand, etc.)Easy๐Ÿ”โญ๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
In XML character replacement, which predefined entity reference represents the single quote (apostrophe) character?
๐Ÿ’ป xml Snippet
<author>&apos;Donald Duck&apos;</author>
  1. A.`'`
  2. B.`"`
  3. C.`>`
  4. D.`<`
Q65
โ“ MCQ๐Ÿ“˜ CS311๐Ÿ“‘ Lec 11๐Ÿท๏ธ 11.10. XML Attributes and Syntax RulesEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Which of the following statements is true regarding W3C XML syntax specifications?
  1. A.All XML documents must have an associated DTD or Schema to be parsed.
  2. B.XML elements must be properly nested, and all tags are strictly case-sensitive.
  3. C.XML tags are case-insensitive, similar to standard HTML tags.
  4. D.XML elements are prohibited from being empty or self-closed.
Q66
โ“ MCQ๐Ÿ“˜ CS311๐Ÿ“‘ Lec 11๐Ÿท๏ธ 11.10. XML Attributes and Syntax RulesEasy๐Ÿ”โญ๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
True or False: In XML documents, all attribute values must always be enclosed in quotation marks.
๐Ÿ’ป xml Snippet
<note date=\"12/11/2002\">
  1. A.False
  2. B.True
Q67
โ“ MCQ๐Ÿ“˜ CS311๐Ÿ“‘ Lec 11๐Ÿท๏ธ 11.10. XML Attributes and Syntax RulesEasyโญ๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Based on standard nesting rules, what is the styled output of the following nested XML text statement when rendered with standard style parameters? ```xml XML ```
๐Ÿ’ป xml Snippet
<b><i> XML </i></b>
  1. A.XML rendered as bold text only
  2. B.XML rendered as italic text only
  3. C.XML rendered as bold and underlined text
  4. D.XML rendered as bold and italic text
Q68
โ“ MCQ๐Ÿ“˜ CS311๐Ÿ“‘ Lec 11๐Ÿท๏ธ 11.10. XML Attributes and Syntax RulesEasy๐Ÿ”โญ๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Consider the following XML statement: ```xml ``` In this statement, what is the name of the attribute?
๐Ÿ’ป xml Snippet
<img src="computer.gif" />
  1. A.src
  2. B.img
  3. C.computer.gif
  4. D.None of the given options
Q69
โ“ MCQ๐Ÿ“˜ CS311๐Ÿ“‘ Lec 11๐Ÿท๏ธ 11.10. XML Attributes and Syntax RulesEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
True or False: The XML standard strictly preserves all whitespace characters (such as blanks, tabs, and newlines) inside element content.
  1. A.False
  2. B.True
Q70
โ“ MCQ๐Ÿ“˜ CS311๐Ÿ“‘ Lec 11๐Ÿท๏ธ 11.10. XML Attributes and Syntax RulesEasy๐Ÿ”โญ๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Which of the following represents the correct syntax to write comments inside an XML document?
๐Ÿ’ป xml Snippet
<!-- This is a valid comment -->
  1. A.``
  2. B.``
  3. C.``
  4. D.``