Search Header Logo
unit 16 XML-lesson 1

unit 16 XML-lesson 1

Assessment

Presentation

Computers

2nd Grade

Practice Problem

Medium

Created by

Nada Almukhlifi

Used 3+ times

FREE Resource

21 Slides • 37 Questions

1

media

2

media

3

media

4

Multiple Choice

What does XML stand for, and what is its main purpose?

1

Extra Modern Language; used to design web pages

2

eXtensible Markup Language; used to store and organize data

3

Example Markup Layout; used to display text on screens

4

External Machine Language; used to program web servers

5

Multiple Choice

Which of the following best describes the main purpose of XML?

1

To display data on a web page

2

To describe and organize data in a human- and machine-readable format

3

To create interactive web applications

4

To style web pages

6

media

7

Multiple Choice

Which of the following best describes the main difference between XML and HTML?

1

XML is used for data storage while HTML is used for data presentation.

2

XML is only used for web pages while HTML is used for databases.

3

XML is case-insensitive while HTML is case-sensitive.

4

XML and HTML serve the same purpose.

8

media

9

media

10

Multiple Choice

Question image

Which of the following is the correct root element in the given XML example?

1

<course>

2

<age>

3

<student>

4

none

11

media

12

Multiple Select

Question image

Select all the data XML example shown.

1

<age>

2

<course>

3

<name>

4

<student>

13

Open Ended

Explain the difference between a root element and a child element in XML, using the provided example.

14

media

15

Fill in the Blanks

16

Multiple Select

Question image

Select all the data elements present in the XML example shown.

1

John Smith

2

<course>

3

18

4

Computer Science

17

media
media

18

Multiple Choice

What are the three main parts of XML?

1

Prolog, Element Attribute

2

Header, Body, Footer

3

Tag, Value, Type

4

Parent, Branch, Content

19

Fill in the Blanks

20

Multiple Select

Which of the following are considered parts of XML?

1

Root

2

Value

3

sub-element

4

Footer

21

media

22

Open Ended

How do XML structure rules affect the way XML documents are created and interpreted?

23

media

24

Multiple Choice

Which of the following XML tag usages is correct?

1

<name>John</name>

2

John</name>

3

<name>John<name>

4

<name>John</n>

25

media

26

Multiple Choice

choose all the incorrect answers

1

<date> 1/1/2025</date>

2

<Date>1/1/2025</DatE>

3

<daTe> 1/1/2025 </daTe>

4

<DatE>1/1/2025</date>

27

Open Ended

Why is it important for XML tags to be case-sensitive?

28

Multiple Select

Select all the rules that are true for XML tags.

1

Tags must have closing tags.

2

Tags are case-sensitive.

3

Tags can be nested.

4

Tags can be left open.

29

media

30

Fill in the Blanks

31

media

32

Multiple Choice

Question image

Which attribute is used to add extra information to an XML element in the example provided?

1

school

2

name

3

age

4

lastName

33

​Well-Formed XML?

​A well-formed XML document is one that follows all the basic syntax rules set by the XML standard.

34

media

35

Multiple Choice

Which of the following are well-formed XML fragments(code)?

1

< myElement myAttribute=someValue/>

2

< myElement myAttribute=’someValue’>

3

< myElement myAttribute="someValue"/>

4

< myElement myAttribute='someValue'/>

36

media
media

​Empty Elements (Self-Closing Tags)

media

37

media

38

Multiple Choice

Which of the following is an example of an empty tag in XML?

1

<student>Ali</student>

2

<student></student>

3

<student />

4

<student> </student>

39

Multiple Choice

What does an empty tag in XML represent?

1

An element that contains no data or child elements

2

A comment inside the XML

3

A tag that repeats automatically

4

An element that stores attributes only

40

Multiple Choice

Which of the following XML lines is well-formed?

1

<image>

2

<image></image>

3

<image />

4

Both B and C

41

Multiple Choice

What is the main difference between <email></email> and <email /> in XML?

1

<email /> contains data, <email></email> does not

2

They are both equivalent and represent empty content

3

<email></email> is incorrect syntax

4

<email /> is used only in HTML, not XML

42

Multiple Choice

Which of the following is not an example of an empty XML tag?

1

<linebreak />

2

<student />

3

<name>Ali</name>

4

<image src="logo.png" />

43

Multiple Choice

How many root elements can we have in XML?

1

1

2

2

3

3

4

0

44

Multiple Choice

Which statement is true?

1

XML tags are case sensitive

2

XML documents must have a root tag

3

XML elementss must be properly closed.

4

All of the above.

45

Multiple Choice

What does XML stand for?

1

eXtra Modern Link

2

eXtensible Markup Language

3

X-Markup Language

4

Example Markup Language

46

Multiple Choice

How to specify the attributes with multiple values?

1

< myElement myAttribute=”value1” myAttribute=”value2”/>

2

< myElement myAttribute=”value1 value2”/>

3

Attributes cannot have multiple values.

4

< myElement myAttribute=”value1, value2”/>

47

Tag Names Must Follow Naming Rules

​Must start with a letter or underscore (_)
Cannot start with a number or symbol
Cannot contain spaces
Avoid using “xml” (any case) as it’s reserved

48

Multiple Choice

Which of the following strings are a correct XML name?

1

my Element

2

#myElement

3

_myElement

49

Multiple Choice

Which of the following XML documents are well-formed?

1

<firstElement>some text goes here <secondElement>another text goes here</secondElement> </firstElement>

2

<firstElement>some text goes here</firstElement> <secondElement> another text goes here</secondElement>

3

<firstElement>some text goes here <secondElement> another text goes here</firstElement> </secondElement>

4

</firstElement>some text goes here </secondElement>another text goes here <firstElement>

50

Multiple Choice

Which special character is NOT used in XML?

1

<

2

>

3

$

4

?

51

media

52

media

53

Multiple Choice

Which of the following is a key difference between XML and HTML?

1

XML is used to store and describe data, while HTML is used to display data.

2

XML tags are predefined, while HTML tags are user-defined.

3

HTML is case-sensitive, while XML is not.

4

HTML focuses on the structure of data, while XML focuses on the layout of web pages.

54

Multiple Choice

Which of the following is true about XML tags?

1

XML tags are predefined

2

XML tags are fixed and cannot be changed

3

XML tags are user-defined

4

XML tags are case-insensitive

55

Multiple Choice

In XML, tags are:

1

Case-insensitive

2

Case-sensitive

3

Optional

4

Not required

56

Multiple Choice

Which of the following can store data for sharing between systems?

1

HTML

2

XML

3

Both HTML and XML

4

CSS

57

Multiple Choice

In an XML document, there must be:

1

Multiple root elements

2

One single root element

3

No root element

4

Optional closing tags

58

Open Ended

Question image

Write an XML representation for the following table, use notepad++ to write it then save it as student.xml... note: must start with the prolog/declaration <?xml version="1.0" encoding="UTF-8"?>

media

Show answer

Auto Play

Slide 1 / 58

SLIDE