Ch 13: Servlet Context & Configuration

44 Questions44 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 44 Questions
Page 4 of 5
Q31
โ“ MCQ๐Ÿ“˜ CS311๐Ÿ“‘ Lec 13๐Ÿท๏ธ 13.13. XML Node Properties (nodeName, nodeValue, nodeType)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Each node in the XML DOM contains several properties and methods. Which of the following is NOT a standard, important node property defined by the W3C DOM specification?
๐Ÿ’ป javascript Snippet
console.log(node.nodeName);  // Valid
console.log(node.nodeValue); // Valid
console.log(node.nodeType);  // Valid
  1. A.nodeName
  2. B.nodeValue
  3. C.nodeType
  4. D.nodeAddress
Q32
โ“ MCQ๐Ÿ“˜ CS311๐Ÿ“‘ Lec 13๐Ÿท๏ธ 13.17. Modifying XML DOM (Append, Replace, and Remove Nodes)Medium๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Which parameter of the XML DOM `replaceData()` method tells the parser how many characters within the target text node should be replaced?
๐Ÿ’ป javascript Snippet
textNode.replaceData(0, 8, "Easy");
  1. A.offset
  2. B.length
  3. C.string
  4. D.None of the given options
Q33
โ“ MCQ๐Ÿ“˜ CS311๐Ÿ“‘ Lec 13๐Ÿท๏ธ 13.5. XML DOM Node Relationships (Parent, Sibling, Child)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Analyze the following XML fragment: ```xml Everyday Italian Giada De Laurentiis 2005 30.00 ``` In this hierarchical tree structure, which option correctly describes the relationship of the `` element?
  1. A.It is the last child of the `` element.
  2. B.It is the first child of the `` element.
  3. C.It is the last child of the `` element.
  4. D.It is a sibling of the `` element.
Q34
โ“ MCQ๐Ÿ“˜ CS311๐Ÿ“‘ Lec 13๐Ÿท๏ธ 13.1. Introduction to XML DOM (Document Object Model)Easyโญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
In modern browser environments, which client-side programming language is standardly used to programmatically access, traverse, and manipulate the methods and properties of DOM node objects?
๐Ÿ’ป javascript Snippet
xmlDoc.getElementsByTagName("title").childNodes.nodeValue = "New Title";
  1. A.C++
  2. B.HTML
  3. C.XML
  4. D.JavaScript
Q35
โ“ MCQ๐Ÿ“˜ CS311๐Ÿ“‘ Lec 13๐Ÿท๏ธ 13.17. Modifying XML DOM (Append, Replace, and Remove Nodes)Medium๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
The XML DOM `replaceData()` method is used to modify characters in a text node. How many parameters does this method accept?
๐Ÿ’ป javascript Snippet
x.replaceData(0, 8, "Easy");
  1. A.1 parameter
  2. B.2 parameters
  3. C.3 parameters
  4. D.4 parameters
Q36
โ“ MCQ๐Ÿ“˜ CS311๐Ÿ“‘ Lec 13๐Ÿท๏ธ 13.13. XML Node Properties (nodeName, nodeValue, nodeType)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
According to the W3C XML DOM specification, which integer constant represents the node type of an Element node?
๐Ÿ’ป javascript Snippet
if (x.nodeType == 1) { /* Element Node */ }
  1. A.0
  2. B.1
  3. C.2
  4. D.3
Q37
โ“ MCQ๐Ÿ“˜ CS311๐Ÿ“‘ Lec 13๐Ÿท๏ธ 13.13. XML Node Properties (nodeName, nodeValue, nodeType)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
In the XML Document Object Model (DOM), which of the following is primarily used to directly retrieve the string value of a specified attribute on an element node?
๐Ÿ’ป javascript Snippet
var txt = xmlDoc.getElementsByTagName("title").getAttribute("lang");
  1. A.getAttribute()
  2. B.nodeValue
  3. C.getAttributeNode()
  4. D.getElementsByTagName()
Q38
โ“ MCQ๐Ÿ“˜ CS311๐Ÿ“‘ Lec 13๐Ÿท๏ธ 13.1. Introduction to XML DOM (Document Object Model)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Due to memory management differences, how does the typical operational speed of an XML DOM parser compare to a SAX parser?
  1. A.Faster
  2. B.Slower
  3. C.Equal
  4. D.None of the given options
Q39
โ“ MCQ๐Ÿ“˜ CS311๐Ÿ“‘ Lec 13๐Ÿท๏ธ 13.1. Introduction to XML DOM (Document Object Model)Hardโญ๐Ÿ’ก๐ŸŒŸ๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Is the following statement true or false? 'When you construct an XML document tree using a DOM-enabled parser, the same vendor's parser must be used to process the XML back, especially when legacy systems are involved.'
  1. A.Not really.
  2. B.Yes, whenever the process is between legacy connectivity this is better.
  3. C.You can use a SAX-enabled parser to fill this gap.
  4. D.This statement is not correct because the W3C DOM is constructed using IDL (Interface Definition Language) to ensure platform and language neutrality.
Q40
โ“ MCQ๐Ÿ“˜ CS311๐Ÿ“‘ Lec 13๐Ÿท๏ธ 13.1. Introduction to XML DOM (Document Object Model)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Which software component reads an XML document sequentially or hierarchically to evaluate its nodes and generate a traversable tree representation?
  1. A.Compiler
  2. B.Interpreter
  3. C.Translator
  4. D.Parser