50% found this document useful (2 votes)
1K views

MIDTERM EXAMINATION - Attempt Review in XML

The document is a review of a midterm examination completed on March 18, 2023 from 6:05 PM to 6:18 PM. The student answered 15 multiple choice questions correctly and received a score of 48 out of 50 or 96%.

Uploaded by

mark gonzales
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
50% found this document useful (2 votes)
1K views

MIDTERM EXAMINATION - Attempt Review in XML

The document is a review of a midterm examination completed on March 18, 2023 from 6:05 PM to 6:18 PM. The student answered 15 multiple choice questions correctly and received a score of 48 out of 50 or 96%.

Uploaded by

mark gonzales
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 30

3/18/23, 6:19 PM MIDTERM EXAMINATION: Attempt review

Home / My courses / UGRD-IT6316-2223T / MIDTERM EXMAINATION / MIDTERM EXAMINATION

Started on Saturday, 18 March 2023, 6:05 PM


State Finished
Completed on Saturday, 18 March 2023, 6:18 PM
Time taken 12 mins 47 secs
Marks 48.00/50.00
Grade 96.00 out of 100.00

trimestralexam.amaesonline.com/2223/mod/quiz/review.php?attempt=149112&cmid=2312&showall=1 1/30
3/18/23, 6:19 PM MIDTERM EXAMINATION: Attempt review

Question 1

Correct

Mark 1.00 out of 1.00

If we perform the following XML DOM statements:


    let authorList = "";

    let size=xmlDoc.getElementsByTagName("author").length;
    for (let x=0; x < size; x=x+3){

        authorList+=xmlDoc.getElementsByTagName("author")[x].childNodes[0].nodeValue;

    }
    document.getElementById("demo").innerHTML=authorList

against the xml codes below, what would be the result?

<books>
 <book genre="educational">

    <title lang="en">Guide to Learn Faster</title>


    <author>Dan Morgan</author>

    <year>1965</year>

 </book>
 <book genre="culture">

    <title lang="en">Within Philippine's Hospitality</title>


    <author>Jake Johnson</author>

    <year>1966</year>
 </book>

 <book genre="computer">

    <title lang="en">Introduction to Programming</title>


    <author>Sam Clover</author>

    <year>1975</year>
 </book>

 <book genre="philosophy">
    <title lang="en">Philosophy of Man</title>

    <author>Jon Mills</author>

    <year>1989</year>
 </book>

</books>

a. Dan MorganJon Mills

b. Dan MorganJake Johnson

c. Dan MorganSam Clover

d. Dan MorganJake JohnsonSam Clove

trimestralexam.amaesonline.com/2223/mod/quiz/review.php?attempt=149112&cmid=2312&showall=1 2/30
3/18/23, 6:19 PM MIDTERM EXAMINATION: Attempt review

Your answer is correct.

Question 2
Correct

Mark 1.00 out of 1.00

Given the following xml code, which element node is considered to be the first child of the <employee> node?
<?xml version="1.0" encoding="UTF-8"?>

<employees>

<employee>
<name>Gerard</name>

<role>Instructor</role>
<Address>Batangas City<Address>

<age>32</age>
</employee>

<employee>

<name>Anthony</name>
<role>Admin</role>

<Address>Cavite City</Address>
<age>25</age>

</employee>

</employees>

a. <employees>

b. <role>

c. <name>

d. <age>

Your answer is correct.

Question 3
Correct

Mark 1.00 out of 1.00

A root node can have a parent node

Select one:
True

False 

trimestralexam.amaesonline.com/2223/mod/quiz/review.php?attempt=149112&cmid=2312&showall=1 3/30
3/18/23, 6:19 PM MIDTERM EXAMINATION: Attempt review

Question 4

Correct

Mark 1.00 out of 1.00

This Xpath Axis selects the parent of the current node

a. Parent-self

b. Current parent

c.  Parent

d. Parent-or-self

Your answer is correct.

trimestralexam.amaesonline.com/2223/mod/quiz/review.php?attempt=149112&cmid=2312&showall=1 4/30
3/18/23, 6:19 PM MIDTERM EXAMINATION: Attempt review

Question 5

Correct

Mark 1.00 out of 1.00

Based from the given xml codes below, what would be the output if we apply the XML DOM statement,
xmlDoc.getElementsByTagName("title")[3].childNodes[0].nodeValue?

<books>
 <book genre="educational">

    <title lang="en">Guide to Learn Faster</title>


    <author>Dan Morgan</author>

    <year>1965</year>

 </book>
 <book genre="culture">

    <title lang="en">Within Philippine's Hospitality</title>


    <author>Jake Johnson</author>

    <year>1966</year>
 </book>

 <book genre="computer">

    <title lang="en">Introduction to Programming</title>


    <author>Sam Clover</author>

    <year>1975</year>
 </book>

 <book genre="philosophy">
    <title lang="en">Philosophy of Man</title>

    <author>Jon Mills</author>

    <year>1989</year>
 </book>

</books>

a. Guide to Learn Faster

b. Philosophy of Man

c. Guide to Learn Faster

d. Introduction to Programming

Your answer is correct.

trimestralexam.amaesonline.com/2223/mod/quiz/review.php?attempt=149112&cmid=2312&showall=1 5/30
3/18/23, 6:19 PM MIDTERM EXAMINATION: Attempt review

Question 6

Correct

Mark 1.00 out of 1.00

If we perform the following XML DOM statements:


    let authorList = "";

    let size=xmlDoc.getElementsByTagName("author").length;
    for (let x=0; x < size; x=x+2){

        authorList+=xmlDoc.getElementsByTagName("author")[x].childNodes[0].nodeValue;

    }
    document.getElementById("demo").innerHTML=authorList

against the xml codes below, what would be the result?

<books>
 <book genre="educational">

    <title lang="en">Guide to Learn Faster</title>


    <author>Dan Morgan</author>

    <year>1965</year>

 </book>
 <book genre="culture">

    <title lang="en">Within Philippine's Hospitality</title>


    <author>Jake Johnson</author>

    <year>1966</year>
 </book>

 <book genre="computer">

    <title lang="en">Introduction to Programming</title>


    <author>Sam Clover</author>

    <year>1975</year>
 </book>

 <book genre="philosophy">
    <title lang="en">Philosophy of Man</title>

    <author>Jon Mills</author>

    <year>1989</year>
 </book>

</books>

a. Dan MorganJake JohnsonSam CloverJon Mills

b. Dan MorganJake JohnsonSam Clover

c. Dan MorganSam Clover

d. Dan Morgan

trimestralexam.amaesonline.com/2223/mod/quiz/review.php?attempt=149112&cmid=2312&showall=1 6/30
3/18/23, 6:19 PM MIDTERM EXAMINATION: Attempt review

Your answer is correct.

Question 7
Correct

Mark 1.00 out of 1.00

This XML DOM function returns array of tags that match given tag name

a. getElementsByArray()

b. getElementsByName()

c. getElementsByTag()

d. getElementsByTagName()

Your answer is correct.

Question 8
Correct

Mark 1.00 out of 1.00

In a tree structure, hierarchical information units are called?

a. Branch

b. Sets

c. Nodes

d. None of the above

Your answer is correct.

trimestralexam.amaesonline.com/2223/mod/quiz/review.php?attempt=149112&cmid=2312&showall=1 7/30
3/18/23, 6:19 PM MIDTERM EXAMINATION: Attempt review

Question 9

Correct

Mark 1.00 out of 1.00

This path expression selects the parent of the current node

a. /

b. //

c.  .

d. ..

Your answer is correct.

Question 10
Correct

Mark 1.00 out of 1.00

What type of structure is XML DOM presented?

a. Graph

b.  Tree

c. List

d. Arrays

Your answer is correct.

Question 11
Correct

Mark 1.00 out of 1.00

This Xpath Axis selects everything in the document after the closing tag of the current node

a.  Following

b. Following-sibling

c. Preceding

d.  Preceding-sibling

Your answer is correct.

trimestralexam.amaesonline.com/2223/mod/quiz/review.php?attempt=149112&cmid=2312&showall=1 8/30
3/18/23, 6:19 PM MIDTERM EXAMINATION: Attempt review

Question 12

Correct

Mark 1.00 out of 1.00

This XML DOM function is used for creating attributes for elements

a. newAttribute()

b. appendAttribute()

c. createAttribute()

d. addAttribute()

Your answer is correct.

Question 13
Correct

Mark 1.00 out of 1.00

XML Comments are considered what type of node?

a. Document node

b. Text nodes

c. Element node

d. None of the above

Your answer is correct.

Question 14
Correct

Mark 1.00 out of 1.00

<!-- and ends with --> is an example of what node?

a. Document node

b.  Comment Node

c. Element node

d. Attribute Node

Your answer is correct.

trimestralexam.amaesonline.com/2223/mod/quiz/review.php?attempt=149112&cmid=2312&showall=1 9/30
3/18/23, 6:19 PM MIDTERM EXAMINATION: Attempt review

Question 15

Correct

Mark 1.00 out of 1.00

This XML DOM function creates a new element that can be inserted in the
document

a. . newElement()

b. createElement()

c.  newChild()

d. createChild()

Your answer is correct.

Question 16
Correct

Mark 1.00 out of 1.00

This XML DOM function inserts a new node before the given node

a. insertBefore()

b. before()

c. insBef()

d. insB()

Your answer is correct.

trimestralexam.amaesonline.com/2223/mod/quiz/review.php?attempt=149112&cmid=2312&showall=1 10/30
3/18/23, 6:19 PM MIDTERM EXAMINATION: Attempt review

Question 17

Correct

Mark 1.00 out of 1.00

These are child nodes with the same level and have the same parent

a. Parent nodes

b. Child nodes

c. Sibling nodes

d.  Root nodes

e. Leaf nodes

Your answer is correct.

Question 18
Correct

Mark 1.00 out of 1.00

An XML Document is what type of node?

a. Document node

b. Text nodes

c. Element node

d.  Attribute Nodes

Your answer is correct.

trimestralexam.amaesonline.com/2223/mod/quiz/review.php?attempt=149112&cmid=2312&showall=1 11/30
3/18/23, 6:19 PM MIDTERM EXAMINATION: Attempt review

Question 19

Correct

Mark 1.00 out of 1.00

Where are the elements returned by the function getElementsByTagName() stored in?

a. object

b. array

c. list

d. variable

Your answer is correct.

Question 20
Correct

Mark 1.00 out of 1.00

This XML DOM function inserts an element at the end of a given element’s children

a.  appendChild()

b.  addChild()

c. appendElement()

d. addElement()

Your answer is correct.

trimestralexam.amaesonline.com/2223/mod/quiz/review.php?attempt=149112&cmid=2312&showall=1 12/30
3/18/23, 6:19 PM MIDTERM EXAMINATION: Attempt review

Question 21

Correct

Mark 1.00 out of 1.00

This path expression selects from the root node

a. /

b.  //

c.  .

d. ..

Your answer is correct.

Question 22
Correct

Mark 1.00 out of 1.00

This XML DOM function replaces an existing node inside the parent with a new one.

a. replaceNode ()

b. replaceChild()

c. repNode()

d. repChild()

Your answer is correct.

Question 23
Correct

Mark 1.00 out of 1.00

This path expression selects the current node

a. /

b.  //

c.  .

d. ..

Your answer is correct.

trimestralexam.amaesonline.com/2223/mod/quiz/review.php?attempt=149112&cmid=2312&showall=1 13/30
3/18/23, 6:19 PM MIDTERM EXAMINATION: Attempt review

Question 24

Correct

Mark 1.00 out of 1.00

<person gender="female">, what type of node is gender?

a. Document node

b.  Comment Node

c. Element node

d. Attribute Node

Your answer is correct.

Question 25
Correct

Mark 1.00 out of 1.00

These are nodes that have children

a. Parent nodes

b. Child nodes

c. Sibling nodes

d.  Root nodes

e. Leaf nodes

Your answer is correct.

Question 26
Correct

Mark 1.00 out of 1.00

This XML DOM function references the root document element

a. refDocumentRootElement()

b.  refDocumentElement()

c. documentElement()

d.  document()

Your answer is correct.

trimestralexam.amaesonline.com/2223/mod/quiz/review.php?attempt=149112&cmid=2312&showall=1 14/30
3/18/23, 6:19 PM MIDTERM EXAMINATION: Attempt review

Question 27

Correct

Mark 1.00 out of 1.00

The top node in a tree structure

a. Parent nodes

b. Child nodes

c. Sibling nodes

d. Root nodes

e. Leaf nodes

Your answer is correct.

Question 28
Correct

Mark 1.00 out of 1.00

All of the following are correct statements about XML DOM except

a. It is the foundation of XML which contains as set of standard functions for accessing and manipulating contents in an XML
document

b. It is used to get, update, add, and delete elements in an XML Document

c. XML DOM can only run on specific operating systems and browsers

d. The XML DOM is a W3C standard

Your answer is correct.

trimestralexam.amaesonline.com/2223/mod/quiz/review.php?attempt=149112&cmid=2312&showall=1 15/30
3/18/23, 6:19 PM MIDTERM EXAMINATION: Attempt review

Question 29

Correct

Mark 1.00 out of 1.00

Given the following xml code, which element node is considered to be a leaf node?
<?xml version="1.0" encoding="UTF-8"?>

<employees>
<employee>

<name>Gerard</name>

<role>Instructor</role>
<Address>Batangas City<Address>

<age>32</age>
</employee>

<employee>
<name>Anthony</name>

<role>Admin</role>

<Address>Cavite City</Address>
<age>25</age>

</employee>
</employees>

a. <employees>

b. <name>, <role>,<Address><age>

c. <employee>

d. None of the above

Your answer is correct.

trimestralexam.amaesonline.com/2223/mod/quiz/review.php?attempt=149112&cmid=2312&showall=1 16/30
3/18/23, 6:19 PM MIDTERM EXAMINATION: Attempt review

Question 30

Correct

Mark 1.00 out of 1.00

Given the following xml code, which element node is considered to be the last child of the <employee> node?
<?xml version="1.0" encoding="UTF-8"?>

<employees>
<employee>

<name>Gerard</name>

<role>Instructor</role>
<Address>Batangas City<Address>

<age>32</age>
</employee>

<employee>
<name>Anthony</name>

<role>Admin</role>

<Address>Cavite City</Address>
<age>25</age>

</employee>
</employees>

a. <employees>

b. <role>

c. <name>

d. None of the above

Your answer is correct.

trimestralexam.amaesonline.com/2223/mod/quiz/review.php?attempt=149112&cmid=2312&showall=1 17/30
3/18/23, 6:19 PM MIDTERM EXAMINATION: Attempt review

Question 31

Correct

Mark 1.00 out of 1.00

This XML DOM function is used for creating text nodes

a. createText()

b. createTextNode()

c. addTextNode()

d. appendTextNodes()

Your answer is correct.

Question 32
Correct

Mark 1.00 out of 1.00

The xml tag <teachers> is an example of what type of node?

a.  Document node

b. Text nodes

c. Element node

d.  Attribute Nodes

Your answer is correct.

trimestralexam.amaesonline.com/2223/mod/quiz/review.php?attempt=149112&cmid=2312&showall=1 18/30
3/18/23, 6:19 PM MIDTERM EXAMINATION: Attempt review

Question 33

Incorrect

Mark 0.00 out of 1.00

These nodes are inside of a parent node

a.  Parent nodes

b. Child nodes

c. Sibling nodes

d. Root nodes 

e. Leaf nodes

Your answer is incorrect.

Question 34
Correct

Mark 1.00 out of 1.00

This path expression selects nodes in the document from the current node that match the selection no matter where they are

a. /

b. //

c. .

d.  ..

Your answer is correct.

trimestralexam.amaesonline.com/2223/mod/quiz/review.php?attempt=149112&cmid=2312&showall=1 19/30
3/18/23, 6:19 PM MIDTERM EXAMINATION: Attempt review

Question 35

Correct

Mark 1.00 out of 1.00

Given the following xml code, which element node is sibling node?
<?xml version="1.0" encoding="UTF-8"?>

<employees>
<employee>

<name>Gerard</name>

<role>Instructor</role>
<Address>Batangas City<Address>

<age>32</age>
</employee>

<employee>
<name>Anthony</name>

<role>Admin</role>

<Address>Cavite City</Address>
<age>25</age>

</employee>
</employees>

a. <employees>

b.  <name>, <role>,<Address><age>

c. <?xml version="1.0" encoding="UTF-8"?>

d. None of the above

Your answer is correct.

trimestralexam.amaesonline.com/2223/mod/quiz/review.php?attempt=149112&cmid=2312&showall=1 20/30
3/18/23, 6:19 PM MIDTERM EXAMINATION: Attempt review

Question 36

Incorrect

Mark 0.00 out of 1.00

If we perform the following XML DOM statements:


    let authorList = "";

    let size=xmlDoc.getElementsByTagName("author").length;
    for (let x=0; x < size; x=x+4){

        authorList+=xmlDoc.getElementsByTagName("author")[x].childNodes[0].nodeValue;

    }
    document.getElementById("demo").innerHTML=authorList

against the xml codes below, what would be the result?

<books>
 <book genre="educational">

    <title lang="en">Guide to Learn Faster</title>


    <author>Dan Morgan</author>

    <year>1965</year>

 </book>
 <book genre="culture">

    <title lang="en">Within Philippine's Hospitality</title>


    <author>Jake Johnson</author>

    <year>1966</year>
 </book>

 <book genre="computer">

    <title lang="en">Introduction to Programming</title>


    <author>Sam Clover</author>

    <year>1975</year>
 </book>

 <book genre="philosophy">
    <title lang="en">Philosophy of Man</title>

    <author>Jon Mills</author>

    <year>1989</year>
 </book>

</books>

a. Dan MorganJake JohnsonSam CloverJon Mills

b.  Dan MorganJake JohnsonSam Clover

c. Dan MorganJake Johnson 

d. Dan Morgan

trimestralexam.amaesonline.com/2223/mod/quiz/review.php?attempt=149112&cmid=2312&showall=1 21/30
3/18/23, 6:19 PM MIDTERM EXAMINATION: Attempt review

Your answer is incorrect.

Question 37
Correct

Mark 1.00 out of 1.00

Based from the given xml codes below, what would be the output if we apply the XML DOM statement,
xmlDoc.getElementsByTagName("year")[1].childNodes[0].nodeValue?

<books>
 <book genre="educational">

    <title lang="en">Guide to Learn Faster</title>

    <author>Dan Morgan</author>
    <year>1965</year>

 </book>
 <book genre="culture">

    <title lang="en">Within Philippine's Hospitality</title>


    <author>Jake Johnson</author>

    <year>1966</year>

 </book>
 <book genre="computer">

    <title lang="en">Introduction to Programming</title>


    <author>Sam Clover</author>

    <year>1975</year>
 </book>

 <book genre="philosophy">

    <title lang="en">Philosophy of Man</title>


    <author>Jon Mills</author>

    <year>1989</year>
 </book>

</books>

a. 1975

b. 1989

c. 1966

d. 1965

Your answer is correct.

trimestralexam.amaesonline.com/2223/mod/quiz/review.php?attempt=149112&cmid=2312&showall=1 22/30
3/18/23, 6:19 PM MIDTERM EXAMINATION: Attempt review

Question 38

Correct

Mark 1.00 out of 1.00

This Xpath Axis selects all ancestors (parent, grandparent, etc.) of the current node

a. descendant

b. ancestor-or-self

c.  parent

d. ancestor

Your answer is correct.

Question 39
Correct

Mark 1.00 out of 1.00

This is a node without a child

a. Parent nodes

b. Child nodes

c.  Sibling nodes

d. Root nodes

e. Leaf nodes

Your answer is correct.

trimestralexam.amaesonline.com/2223/mod/quiz/review.php?attempt=149112&cmid=2312&showall=1 23/30
3/18/23, 6:19 PM MIDTERM EXAMINATION: Attempt review

Question 40

Correct

Mark 1.00 out of 1.00

This is a standard way of accessing/selecting data in XML

a. XSelect

b. XPath

c.  XAccess

d. None of the Above

Your answer is correct.

Question 41
Correct

Mark 1.00 out of 1.00

This XML DOM function removes an element from the parent

a. deleteChild()

b. nullChild()

c. removeChild()

d. remChild()

Your answer is correct.

Question 42
Correct

Mark 1.00 out of 1.00

This allows us to manipulate xml documents

a. DTD

b. XML DOM

c.  XML Schema Document

d. CDATA

Your answer is correct.

trimestralexam.amaesonline.com/2223/mod/quiz/review.php?attempt=149112&cmid=2312&showall=1 24/30
3/18/23, 6:19 PM MIDTERM EXAMINATION: Attempt review

Question 43

Correct

Mark 1.00 out of 1.00

Based from the given xml codes below, what would be the output if we apply the XML DOM statement,
xmlDoc.getElementsByTagName("author")[2].childNodes[0].nodeValue?

<books>
 <book genre="educational">

    <title lang="en">Guide to Learn Faster</title>


    <author>Dan Morgan</author>

    <year>1965</year>

 </book>
 <book genre="culture">

    <title lang="en">Within Philippine's Hospitality</title>


    <author>Jake Johnson</author>

    <year>1966</year>
 </book>

 <book genre="computer">

    <title lang="en">Introduction to Programming</title>


    <author>Sam Clover</author>

    <year>1975</year>
 </book>

 <book genre="philosophy">
    <title lang="en">Philosophy of Man</title>

    <author>Jon Mills</author>

    <year>1989</year>
 </book>

</books>

a. Dan Morgan

b. Jake Johnson

c. Sam Clover

d. Jon Mills

Your answer is correct.

trimestralexam.amaesonline.com/2223/mod/quiz/review.php?attempt=149112&cmid=2312&showall=1 25/30
3/18/23, 6:19 PM MIDTERM EXAMINATION: Attempt review

Question 44

Correct

Mark 1.00 out of 1.00

This path expression selects all nodes with the name "nodename"

a. /

b.
//

c. .

d. None of the above

Your answer is correct.

trimestralexam.amaesonline.com/2223/mod/quiz/review.php?attempt=149112&cmid=2312&showall=1 26/30
3/18/23, 6:19 PM MIDTERM EXAMINATION: Attempt review

Question 45

Correct

Mark 1.00 out of 1.00

If we perform the following XML DOM statements:


    let authorList = "";

    let size=xmlDoc.getElementsByTagName("author").length;
    for (let x=0; x < size; x++){

        authorList+=xmlDoc.getElementsByTagName("author")[x].childNodes[0].nodeValue;

    }
    document.getElementById("demo").innerHTML=authorList

against the xml codes below, what would be the result?

<books>
 <book genre="educational">

    <title lang="en">Guide to Learn Faster</title>


    <author>Dan Morgan</author>

    <year>1965</year>

 </book>
 <book genre="culture">

    <title lang="en">Within Philippine's Hospitality</title>


    <author>Jake Johnson</author>

    <year>1966</year>
 </book>

 <book genre="computer">

    <title lang="en">Introduction to Programming</title>


    <author>Sam Clover</author>

    <year>1975</year>
 </book>

 <book genre="philosophy">
    <title lang="en">Philosophy of Man</title>

    <author>Jon Mills</author>

    <year>1989</year>
 </book>

</books>

a. Dan MorganJake JohnsonJon MillsSam Clover

b. Dan MorganJake JohnsonSam CloverJon Mills

c. Jon MillsSam Clover

d. Dan MorganJakeJohnson

trimestralexam.amaesonline.com/2223/mod/quiz/review.php?attempt=149112&cmid=2312&showall=1 27/30
3/18/23, 6:19 PM MIDTERM EXAMINATION: Attempt review

Your answer is correct.

Question 46
Correct

Mark 1.00 out of 1.00

Given the following xml code, which element node is considered to be the root node?
<?xml version="1.0" encoding="UTF-8"?>

<employees>

<employee>
<name>Gerard</name>

<role>Instructor</role>
<Address>Batangas City<Address>

<age>32</age>
</employee>

<employee>

<name>Anthony</name>
<role>Admin</role>

<Address>Cavite City</Address>
<age>25</age>

</employee>

</employees>

a. <employees>

b. <employee>

c. <name>, <role>,<Address><age>

d. <?xml version="1.0" encoding="UTF-8"?>

Your answer is correct.

trimestralexam.amaesonline.com/2223/mod/quiz/review.php?attempt=149112&cmid=2312&showall=1 28/30
3/18/23, 6:19 PM MIDTERM EXAMINATION: Attempt review

Question 47

Correct

Mark 1.00 out of 1.00

This Xpath Axis selects all nodes that appear before the current node in the document, except ancestors, attribute nodes and
namespace nodes

a. Following

b. Following-sibling

c. Preceding

d. Preceding-sibling

Your answer is correct.

Question 48
Correct

Mark 1.00 out of 1.00

This returns the parent of a node. It returns null if there is no parent

a. parent

b. returnNull

c. parentNode

d. returnParent

Your answer is correct.

Question 49
Correct

Mark 1.00 out of 1.00

This gets the text data of an Element, Comment, or Text node for the XML DOM

a. CData

b. Data

c. getData

d.  fetchData

Your answer is correct.

trimestralexam.amaesonline.com/2223/mod/quiz/review.php?attempt=149112&cmid=2312&showall=1 29/30
3/18/23, 6:19 PM MIDTERM EXAMINATION: Attempt review

Question 50

Correct

Mark 1.00 out of 1.00

This path expression selects attributes

a. &

b. $

c. @

d. None of the above

Your answer is correct.

◄ Prelim Lab Exam

Jump to...

Midterm Lab Exam ►

trimestralexam.amaesonline.com/2223/mod/quiz/review.php?attempt=149112&cmid=2312&showall=1 30/30

You might also like