Skip to content
VUBuddy

CS311 Midterm MCQs 2024 by Miss Mehwish

Introduction to Web Services Development PDF 788 KBUpdated 23 Oct 2026
Midterm past paper CS311 Midterm MCQs 2024 by Miss Mehwish PDF 788 KB
vubuddy.com
Type
Midterm past paper
Course
CS311 Introduction to Web Services Development
Size
PDF 788 KB
Updated
23 Oct 2026
Free download 0 of 3 used today
Download free · 788 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 pages 1, 2, 3 of 13. Download the file for all 13 pages.

CS311

Past Papers for Mids./Finals are also Available

  1. Traversing means through or traveling across the node tree. printing ✅ adding looping spinning
  2. Method can also be used to remove a text node. textChild() removeChild() ✅ updateText()
  3. All nodes have __ parent node/nodes. exactly three exactly one ✅ exactly four
  4. When using properties or methods like childNodes or getElementsByTagName(), a node list is

Function Class Object ✅

  1. Nodes in the node list are accessed with index numbers starting from __. 0 ✅

Q6. Which property of XML document represents the root node?

nodeName nodeValue documentElement ✅ nodeType

  1. If the node type is __, it is an element node. 2 ✅

Q8. Why we used setAttribute() method?

To change an attribute value ✅ To change an element value To change a node value To change a text value

  1. When you want to extract the value of each element. This is called __. " Traversing first and last tree" " Traversing the first tree" " Traversing the last tree" " Traversing the node tree" ✅
  2. Element nodes do not have a __ value. loop text ✅ audio video

Q1. What is the description of the attribute-type NMTOKEN?

  1. The value is a list of other ids
  2. The value is a list of valid XML names
  3. The value is the id of another element

✅ The value is a valid XML name

Q2. XML path is?

✅ The value is a valid XPath expression

Q3. For all XML documents, which of the following is true?

  1. All XML elements must be in lower case

✅ All XML elements must have a closing tag O All XML documents must have a DTD

Q4. In DTD Empty elements are declared with the keyword _________.

  1. IDLE
  2. VOID
  3. NULL

✅ EMPTY

Q5. The ? sign in the example above declares that the child element "message" can occur ____ or ____

  1. three, four
  2. 100, 200

✅ Zero, one O one, two

Q6. Use ________ keyword if you don't have an option for a default value, but still want to force the attribute to be present.

  1. #IMPLIED
  2. #IMPLICIT
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.