Quiz on XML Processing in Python
FREE Online Courses: Knowledge Awaits – Click for Free Access!
Time limit: 0
Quiz Summary
0 of 15 Questions completed
Questions:
Information
You have already completed the quiz before. Hence you can not start it again.
Quiz is loading…
You must sign in or sign up to start the quiz.
You must first complete the following:
Results
Quiz complete. Results are being recorded.
Results
0 of 15 Questions answered correctly
Your time:
Time has elapsed
You have reached 0 of 0 point(s), (0)
Earned Point(s): 0 of 0, (0)
0 Essay(s) Pending (Possible Point(s): 0)
Categories
- Not categorized 0%
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- Current
- Review / Skip
- Answered
- Correct
- Incorrect
-
Question 1 of 15
1. Question
- Which of the following is not the module used for XML processing?
CorrectIncorrect -
Question 2 of 15
2. Question
- Which of the following modules store the data in the file in the tree structure?
CorrectIncorrect -
Question 3 of 15
3. Question
- What function is used to parse the string using the SAX module?
CorrectIncorrect -
Question 4 of 15
4. Question
- Which of the following operations are not possible with the ElementTree module?
CorrectIncorrect -
Question 5 of 15
5. Question
- Find the code used to parse using the DOM module?
CorrectIncorrect -
Question 6 of 15
6. Question
- Which function is used to check if the tag has an attribute or not in DOM?
CorrectIncorrect -
Question 7 of 15
7. Question
- Which of the following is the correct code to get the ‘type’ attribute using the DOM module?
CorrectIncorrect -
Question 8 of 15
8. Question
- What is the output of the below code, if ‘tag’ represent the tag ‘Item’ under the root ‘Menu’?
print(tag[1].firstChild.data)
CorrectIncorrect -
Question 9 of 15
9. Question
- Which of the following is the correct code to get the root (‘Menu’) using the parser ’parser’.
CorrectIncorrect -
Question 10 of 15
10. Question
- What is the output of the below code if root represents ‘Menu’?
root[1].tag
CorrectIncorrect -
Question 11 of 15
11. Question
- Which of the following code gives the output as ‘Ruppes’ if root represents Menu?
CorrectIncorrect -
Question 12 of 15
12. Question
- Find the output of the below code.
for x in root.findall(‘Item’):
print(x.find(‘Name’).text,end=’ ‘)
CorrectIncorrect -
Question 13 of 15
13. Question
- Which of the following is the correct code to parse a string using ElementTree given the xml in he form ofstring in the variable ‘str’?
CorrectIncorrect -
Question 14 of 15
14. Question
- What is the output of the below code given the root?
for i in root[2]:
print(i.text)
CorrectIncorrect -
Question 15 of 15
15. Question
- Which of the following codes removes the tag ‘Quantity’ from the item ‘Poori’ given the root ‘Menu’?
CorrectIncorrect