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 21 โ€“ 30 of 114 Questions
Page 3 of 12
Q21
โ“ MCQ๐Ÿ“˜ CS311๐Ÿ“‘ Lec 11๐Ÿท๏ธ 11.5. Introduction to Document Type Definition (DTD)Easy๐Ÿ”โญ๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
In the context of XML schema declarations and document validation rules, what does the abbreviation DTD stand for?
  1. A.Direct Type Definition
  2. B.Document Type Definition
  3. C.Document Type Declaration
Q22
โ“ MCQ๐Ÿ“˜ CS311๐Ÿ“‘ Lec 11๐Ÿท๏ธ 11.5. Introduction to Document Type Definition (DTD)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
What is the primary way of formally describing and verifying the structural layout, valid element tags, and legal vocabulary of an XML document?
๐Ÿ’ป xml Snippet
<!DOCTYPE note SYSTEM "note.dtd">
  1. A.XML uses a Document Type Definition (DTD) to define the legal building blocks and structure of the data.
  2. B.XML uses Extensible Stylesheet Language (XSL) to describe and store structural constraints.
  3. C.XML uses a specialized inline description node to declare valid tags.
  4. D.XML relies on predefined HTML tags to describe the dataset vocabulary.
Q23
โ“ MCQ๐Ÿ“˜ CS311๐Ÿ“‘ Lec 11๐Ÿท๏ธ 11.1. Introduction to XML (Extensible Markup Language)Easy๐Ÿ”โญ๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
What does the abbreviation XML stand for in web and document development standards?
  1. A.eXtensible Markup Language
  2. B.eXtra Modern Link
  3. C.Example Markup Language
  4. D.X-Markup Language
Q24
โ“ MCQ๐Ÿ“˜ CS311๐Ÿ“‘ Lec 11๐Ÿท๏ธ 11.10. XML Attributes and Syntax RulesEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Which of the following statements is true regarding XML document structures and tag syntax rules?
  1. A.XML tags are case-sensitive, meaning opening and closing tags must match exactly in case.
  2. B.XML elements must be properly nested within each other.
  3. C.All XML documents must contain exactly one root element that acts as a parent to all other elements.
  4. D.All the statements are true.
Q25
โ“ MCQ๐Ÿ“˜ CS311๐Ÿ“‘ Lec 11๐Ÿท๏ธ 11.1. Introduction to XML (Extensible Markup Language)Easy๐Ÿ”โญ๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
What does the abbreviation XML stand for in 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
Q26
โ“ MCQ๐Ÿ“˜ CS311๐Ÿ“‘ Lec 11๐Ÿท๏ธ 11.1. Introduction to XML (Extensible Markup Language)Mediumโญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Which of the following statements represents a FALSE claim regarding the capabilities, scope, and structural design of XML?
  1. A.XML is used to describe and represent only structured data.
  2. B.XML can be used and transmitted only over the public Internet.
  3. C.XML is designed to represent only simple, flat data structures.
  4. D.All of the above statements are false.
Q27
โ“ MCQ๐Ÿ“˜ CS311๐Ÿ“‘ Lec 11๐Ÿท๏ธ 11.4. XML Character Replacement Entities (less than, greater than, ampersand, etc.)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Some characters have a special meaning in XML (such as `<` which defines the start of a tag, or `&` which initiates an entity). In order to use these characters as text content, they must be represented by what placeholder components?
๐Ÿ’ป xml Snippet
<message>If temperature &lt; 0, freeze</message>
  1. A.XML Modifiers
  2. B.Entity References (Entities)
  3. C.Namespace Prefixes
  4. D.CDATA tags
Q28
โ“ MCQ๐Ÿ“˜ CS311๐Ÿ“‘ Lec 11๐Ÿท๏ธ 11.2. The Differences Between XML and HTMLEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Which of the following statements is strictly true regarding the structural differences and tag definitions between HTML and XML?
  1. A.Both XML and HTML utilize identical predefined tag vocabularies specified by the W3C.
  2. B.XML is designed to describe and carry structured data using customizable tags, whereas HTML is designed to format and display data using predefined tags.
  3. C.XML relies on browser-side scripting to compile data, while HTML operates completely independently of browser parsing engines.
  4. D.XML and HTML are structurally identical, and XML is intended to eventually replace HTML on the web.
Q29
โ“ MCQ๐Ÿ“˜ CS311๐Ÿ“‘ Lec 11๐Ÿท๏ธ 11.10. XML Attributes and Syntax RulesHard๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Which of the following statements is 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 of these statements are true.
  4. D.None of these statements are true.
Q30
โ“ MCQ๐Ÿ“˜ CS311๐Ÿ“‘ Lec 11๐Ÿท๏ธ 11.10. XML Attributes and Syntax RulesEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
True or False: 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.