155
93.9k
Chapter:

50+ XML Solved MCQs

in Advance PHP

These multiple-choice questions (MCQs) are designed to enhance your knowledge and understanding in the following areas: Bachelor of Business Administration in Computer Applications (BBA [CA]) , Master of Science in Software Engineering (MSc SE) .

Chapters

Chapter: XML
1.

-----plays an important role in many different IT systems. Sol:

A. XML
B. HTML
C. UTF-8
D. 1056
Answer» A. XML
2.

-----is often used for distributing data over the Internet Sol:

A. XML
B. HTML
C. UTF-8
D. 1056
Answer» A. XML
3.

The----language has no predefined tags Sol:

A. XML
B. HTML
C. UTF-8
D. 1056
Answer» A. XML
4.

The tags in the example above (like <to> and <from>) are not defined in any----
standard.
Sol:

A. XML
B. HTML
C. UTF-8
D. 1056
Answer» A. XML
5.

----works with predefined tags like <p>,<h1>, <table>, etc. Sol:

A. XML
B. HTML
C. UTF-8
D. 1056
Answer» B. HTML
6.

With----the author must define both the tags and the document structure Sol:

A. XML
B. HTML
C. UTF-8
D. 1056
Answer» A. XML
7.

----not works with predefined tags like <p>,<h1>, <table>, etc. Sol:

A. XML
B. HTML
C. UTF-8
D. 1056
Answer» A. XML
8.

XML stands for-------------. Sol:

A. extensible Markup Language.
B. hyper text mark up language
C. hyper text get up language
D. none of these
Answer» A. extensible Markup Language.
9.

-----is a markup language much like HTML. Sol:

A. XML
B. HTML
C. UTF-8
D. 1056
Answer» A. XML
10.

XML was designed to --------------- Sol:

A. store and transport data
B. design and transport data
C. close and store the data
D. none of these
Answer» A. store and transport data
11.

XML was designed to be------------- Sol:

A. self descriptive
B. descriptive
C. UTF-8
D. 1056
Answer» A. self descriptive
12.

Most XML applications will work as expected even if new data is added. Sol:

A. yes
B. no
C. can not say
D. none of these
Answer» A. yes
13.

-----is the default character encoding for XML documents. Sol:

A. self descriptive
B. descriptive
C. UTF-8
D. 1056
Answer» C. UTF-8
14.

XML documents are formed as-------- Sol:

A. element trees
B. descriptive
C. UTF-8
D. 1056
Answer» A. element trees
15.

An XML tree starts at a--------and branches from the root to
childelements.
Sol:

A. root element
B. descriptive
C. UTF-8
D. 1056
Answer» A. root element
16.

<?xml version="1.0" encoding="UTF-8"?> This line is called the XML----: Sol:

A. prolog
B. descriptive
C. UTF-8
D. 1056
Answer» A. prolog
17.

The XML------is optional. If it exists, it must come first in the document Sol:

A. prolog
B. descriptive
C. UTF-8
D. 1056
Answer» A. prolog
18.

To avoid errors you should specify encoding used, or save your XML
files as------.
Sol:

A. prolog
B. descriptive
C. UTF-8
D. 1056
Answer» C. UTF-8
19.

An------element is everything from (including) the element's start tag to
(including) the element's end tag.
Sol:

A. XML
B. descriptive
C. UTF-8
D. 1056
Answer» A. XML
20.

An---------tag or element can contain text ,attributes ,other elements. Sol:

A. XML
B. descriptive
C. UTF-8
D. 1056
Answer» A. XML
21.

An element with no content is said to be---------- Sol:

A. XML TAG
B. descriptive
C. UTF-8
D. Empty XML elements.
Answer» D. Empty XML elements.
22.

-----------values must always be quoted in xml. Either single or double
quotes can beused.
Sol:

A. attribute
B. element
C. UTF-8
D. Empty XML elements.
Answer» A. attribute
23.

An------document is a basic unit of XML information composed of
elements and other markup in an orderly package.
Sol:

A. XML document
B. descriptive
C. html document
D. Empty XML elements.
Answer» A. XML document
24.

An- - - - - - can contains wide variety of data.For example, database of
numbers, numbers representing molecular structure or a mathematical equation.
Sol:

A. XML document
B. descriptive
C. html document
D. Empty XML elements.
Answer» A. XML document
25.

------is a markup language that looks a lot like HTML Sol:

A. XML
B. descriptive
C. html document
D. Empty XML elements.
Answer» A. XML
26.

XML is very strict when it comes to document structure Sol:

A. yes
B. no
C. can not say
D. none of these
Answer» A. yes
27.

PHP 5's new-----module makes parsing an XML document, Sol:

A. simpleXML
B. descriptive
C. html document
D. Empty XML elements.
Answer» A. simpleXML
28.

To create a SimpleXML object from an XML document stored in a string, pass
thestring to---------returns a SimpleXML object
Sol:

A. simpleXML
B. simplexml_load_string( ).
C. simplexml_load_file( filename)
D. XML parser.
Answer» B. simplexml_load_string( ).
29.

You can use function---------------if you have XMLcontent in a file. Sol:

A. simpleXML
B. simplexml_load_string( ).
C. simplexml_load_file( filename)
D. XML parser.
Answer» C. simplexml_load_file( filename)
30.

An-----------is a software library or package that provides interfaces for client
applications to work with an XML document
Sol:

A. simpleXML
B. simplexml_load_string( ).
C. simplexml_load_file( filename)
D. XML parser
Answer» D. XML parser
31.

The ------------is designed to read the XMLand create a way for
programs to use XML.
Sol:

A. simpleXML
B. simplexml_load_string( ).
C. simplexml_load_file( filename)
D. XML parser
Answer» D. XML parser
32.

-----------validates the document and check that the document is well formatted Sol:

A. simpleXML
B. simplexml_load_string( ).
C. simplexml_load_file( filename)
D. XML parser
Answer» D. XML parser
33.

The---------defines a standard for accessing and manipulating documents: Sol:

A. simpleXML
B. simplexml_load_string( ).
C. simplexml_load_file( filename)
D. DOM
Answer» D. DOM
34.

The---------defines a standard way for accessing and manipulating
HTMLdocuments. It presents an HTML document as a tree-structure.
Sol:

A. simpleXML
B. simplexml_load_string( ).
C. simplexml_load_file( filename)
D. HTML DOM
Answer» D. HTML DOM
35.

The--------defines a standard way for accessing and manipulating XMLdocuments. It
presents an XML document as a tree-structure.
Sol:

A. simpleXML
B. simplexml_load_string( ).
C. simplexml_load_file( filename)
D. XML DOM
Answer» D. XML DOM
36.

All XML elements can be accessed through the--------------- Sol:

A. simpleXML
B. simplexml_load_string( ).
C. simplexml_load_file( filename)
D. XML DOM
Answer» D. XML DOM
37.

All------can be accessed through the XML DOM. Sol:

A. simpleXML
B. simplexml_load_string( ).
C. simplexml_load_file( filename)
D. XML element
Answer» D. XML element
38.

UTF-8 is the default character encoding for XML documents. Sol:

A. yes
B. no
C. can not say
D. none of these.
Answer» A. yes
39.

XML documents are formed as element trees. Sol:

A. yes
B. no
C. can not say
D. none of these.
Answer» A. yes
40.

An XML tree starts at a root element and branches from the
root to childelements.
Sol:

A. yes
B. no
C. can not say
D. none of these.
Answer» A. yes
41.

An XML tree starts at a root element and branches from the root
to ------------
Sol:

A. childelements
B. descriptive
C. UTF-8
D. 1056
Answer» A. childelements
42.

An XML tree starts at a----------and branches from the root to
childelements.
Sol:

A. root element
B. descriptive
C. UTF-8
D. 1056
Answer» A. root element
43.

<?xml version="1.0" encoding="UTF-8"?> This line is called the XML prolog: Sol:

A. yes
B. no
C. can not say
D. none of these.
Answer» A. yes
44.

The XML prolog is optional. If it exists, it must come first in the document Sol:

A. yes
B. no
C. can not say
D. none of these.
Answer» A. yes
45.

To avoid errors you should specify encoding used, or save your XML
files asUTF-8.
Sol:

A. yes
B. no
C. can not say
D. none of these.
Answer» A. yes
46.

An XML element is everything from (including) the element's start tag to
(including) the element's end tag.
Sol:

A. yes
B. no
C. can not say
D. none of these
Answer» A. yes
47.

An-----element is everything from (including) the element's start tag to
(including) the element's end tag.
Sol:

A. XML
B. descriptive
C. UTF-8
D. 1056
Answer» A. XML
48.

An xml tag or element can contain text ,attributes ,other elements. Sol:

A. yes
B. no
C. can not say
D. none of these
Answer» A. yes
49.

An xml tag or element can contain-------,other elements. Sol:

A. text,attribute
B. tag
C. data
D. 1056
Answer» A. text,attribute
50.

An element with no content is said to be Empty XML Elements. Sol:

A. yes
B. no
C. can not say
D. none of these
Answer» A. yes

Done Studing? Take A Test.

Great job completing your study session! Now it's time to put your knowledge to the test. Challenge yourself, see how much you've learned, and identify areas for improvement. Don’t worry, this is all part of the journey to mastery. Ready for the next step? Take a quiz to solidify what you've just studied.