- Type
- Final term past paper
- Course
- CS311 Introduction to Web Services Development
- Size
- PDF 294 KB
- Updated
- 23 Oct 2026
You get 3 free files a day on the website. Add the Chrome extensionSign in with the extension for 30 a day.
Preview text
Text from pages 1, 2, 3 of 21. Download the file for all 21 pages.
CS311 MCQs for Final Term
XML DOM MCQs
What does DOM stand for in XML DOM?
Answer: A) Document Object Model
Which of the following is NOT a method of the XML DOM?
Answer: D) getNodeValue()
In XML DOM, which method is used to create a new element node?
Answer: B) createElement()
Which property of the XML DOM is used to access the root element of an XML document?
Answer: C) documentElement
What is the purpose of the appendChild() method in XML DOM?
Answer: B) To add a new child node
Which method is used to retrieve a list of elements with a specified tag name in XML DOM?
Answer: A) getElementsByTagName()
In XML DOM, what does the nodeValue property return?
Answer: B) The value of the node
Which of the following is a valid XML DOM node type?
Answer: D) All of the above
What does the removeChild() method do in XML DOM?
Answer: B) Removes a specified child node
Which method is used to replace a child node in XML DOM?
Answer: A) replaceChild() Absolutely! Here are some additional multiple-choice questions (MCQs) focused on XML parsing:
XML Parsing MCQs
Which of the following is a common XML parser for Java?
Answer: D) All of the above
What does SAX stand for in XML parsing?
Answer: A) Simple API for XML
Which XML parser reads the entire XML document and constructs a tree representation in memory?
Answer: B) DOM
Which of the following is a streaming XML parser?
Answer: B) SAX
In XML parsing, what is the main advantage of using SAX over DOM?
Answer: A) SAX is faster and uses less memory
Which method is used to parse an XML document in a DOM parser?
Answer: C) parse()
What is the main disadvantage of using DOM for XML parsing?
Answer: B) It is slower and uses more memory
Which of the following is true about StAX parser?
Answer: A) It is a pull parser
Which method in SAX parser is called when the parser encounters the start of an element?
Answer: A) startElement()
In XML parsing, what does the term “well-formed” mean?
Answer: A) The XML document adheres to the XML syntax rules
JAXP MCQs
Q1. What does JAXP stand for?
Answer: B) Java API for XML Processing
Q2. Which of the following is a component of JAXP?
Answer: D) All of the above
Q3. What is the primary purpose of JAXP?
Answer: D) All of the above
Q4. Which JAXP interface is used to create a new instance of a DOM parser?
Answer: A) DocumentBuilderFactory
Q5. Which method in JAXP is used to parse an XML document using a DOM parser?
Answer: C) parse()
Q6. Which JAXP class is used to perform XSLT transformations?
Answer: A) Transformer
Q7. In JAXP, which method is used to create a new instance of a SAX parser?
Answer: C) newInstance()
Q8. Which of the following is NOT a feature of JAXP?
Related CS311 files
All CS311 files →- CS311 Final Term Quiz 3 2025 Final term PDF 1.1 MB
- CS311 Final Term Handwritten Notes by Muhammad Ayaz Final term PDF 5 MB
- CS311 Final Term Solved Quiz 4 Spring 2025 by Introvert Final term PDF 416 KB
- CS311 Final Term Past Papers 2019-2021 Final term PDF 175 KB
- CS311 Highlighted Handouts Highlighted PDF 7.2 MB
- CS311 Solved Quiz 1 by VUBuddy Quiz PDF 355 KB
Get more out of VUBuddy, for free
- Unlimited downloads
- The explanation behind every MCQ answer
- Study offline on slow data
- 30 downloads a day instead of 3
- Sign in and buy Pro Semester here
One Pro Semester membership works in both the extension and the app.