Skip to content
VUBuddy

CS311 Final Term Solved Quiz 4 Spring 2025 by Introvert

Introduction to Web Services Development PDF 416 KBUpdated 23 Oct 2026
Final term past paper CS311 Final Term Solved Quiz 4 Spring 2025 by Introvert PDF 416 KB
vubuddy.com
Type
Final term past paper
Course
CS311 Introduction to Web Services Development
Size
PDF 416 KB
Updated
23 Oct 2026
Free download 0 of 3 used today
Download free · 416 KB

You get 3 free files a day on the website. Add the Chrome extension for 30 a day.

Unlimited downloads in the Android app Get it free on Google Play

Preview text

Text from page 2 of 3. Download the file for all 3 pages.

Cs311 quiz 4 solved by introvert

Q1. Why we used setAttribute() method?

  1. To change a node value
  2. To change an element value
  3. To change a text value
  4. To change an attribute value

Correct answer: To change an attribute value

Q2. If the attribute already exists, the setAttribute() method will _______ the existing value.

  1. None of the given
  2. Not overwrite
  3. Duplicate
  4. Overwrite

Correct answer: Overwrite

Q3. Which of the following is much more memory intensive?

  1. DOM
  2. StAX
  3. JAXP
  4. SAX

Correct answer: DOM

Q4. Which of the following method is used to create copy of a specified node?

  1. cloneNode()
  2. duplicateNode()
  3. None of the given
  4. copyNode()

Correct answer: cloneNode()

Q5. Which of the following is used to get the value of an attribute?

  1. getAttribute()
  2. getAttributeNode
  3. nodeValue
  4. getElementsByTagName()

Correct answer: getAttribute()

Q6. Which of the following methods return attribute node?

  1. None of the given options
  2. getElementsByTagName()
  3. getAttributeNode()
  4. getAttribute()

Correct answer: getAttributeNode()

Q7. When a node is removed, ___________________________.

  1. its child nodes navigated to other nodes.
  2. all its child nodes are also removed.
  3. None of the above.
  4. its child nodes are not removed.

Correct answer: all its child nodes are also removed.

Q8. Which method does SAX use for processing XML documents?

  1. DocumentHandler
  2. Event Based
  3. Document
  4. Tree Based

Correct answer: Event Based

Q9. Which of the following nodes can be created by using create CDATASection() method?

  1. CDATA section node
  2. None of the given options
  3. Parent node
  4. Child node

Correct answer: CDATA section node

All CS311 files →
CS311 Introduction to Web Services Development All CS311 handouts, past papers, quizzes and MCQs in one place. Open course page

Get more out of VUBuddy, for free

Android app Free on Google Play
  • Unlimited downloads
  • The explanation behind every MCQ answer
  • Study offline on slow data
Get the Android app
Chrome extension Free on the Chrome Web Store
  • 30 downloads a day instead of 3
  • Sign in and buy Pro Semester here
Add to Chrome

One Pro Semester membership works in both the extension and the app.