XML | Unit 3 | Adv PHP | Multiple Choice Questions With Answer

 









 

UNIT 3 – XML


 

Q.1)-----plays an important role in many different IT systems. 

    

A)XML 

B)HTML 

C) UTF-8 

D)1056 

 

Ans :A 

 

Q.2)-----is often used for distributing data over the Internet 

   

A)XML 

B)HTML 

C) UTF-8   

D)1056 

 

Ans :A 

 

 

  

Q.3)The----language has no predefined tags    

 

A)XML 

 B)HTML 

C) UTF-8 

 D)1056 

 

Ans :A 

 

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

    

A)XML 

B)HTML 

C) UTF-8 

 D)1056 

 

Ans :A 

  

Q.5)----works with predefined tags like <p>,<h1>, <table>, etc. 

  

 

A)XML 

 B)HTML 

C) UTF-8 

 D)1056 

 

Ans :B 

 

Q.6)With----the author must define both the tags and the document structure 

 

 A)XML 

 B)HTML 

C) UTF-8 

 D)1056 

 

Ans :A 

 

Q.7)----not  works with predefined tags like <p>,<h1>, <table>, etc. 

   

A)XML 

B)HTML 

C) UTF-8 

 D)1056 

 

Ans :A 

 

 

Q.8)XML stands for-------------. 

    

 

A) extensible Markup Language. 

 B)hyper text mark up language 

 C)hyper text get up language 

 D) none of  these 

 

Ans :A 

 

 

Q.9)-----is a markup language much like HTML. 

   

A)XML 

 B)HTML

C) UTF-8 

D)1056 

 

Ans :A 

 

 

Q.10)XML was designed to ---------------    

  

A)store and transport data 

 B)design and transport data 

 C)close and store the data  

 D)none of these 

 

Ans :A 

 

 

   

Q.11)XML was designed to be------------- 

  

A)self descriptive 

 B)descriptive 

C) UTF-8 

 D)1056 

 

Ans :A 

 

Q.12)Most XML applications will work as expected even if new data is added. 

 

 

A)yes 

 B)no 

C)can not say 

 D)none of these 

 

Ans :A 

   

Q.13)-----is the default character encoding for XML documents. 

 

A)self descriptive 

 B)descriptive 

C) UTF-8 

 D)1056 

 

Ans :C 

 

 

Q.14)XML documents are formed as-------- 

    

A)element trees 

 B)descriptive 

C) UTF-8 

 D)1056 

 

Ans :A 

 

   Q.15) An XML tree starts at a--------and branches from the root to child elements. 

 

  A)root element 

 B)descriptive 

C) UTF-8 

 D)1056 

 

Ans :A 

 

 

Q.16)<?xml version="1.0" encoding="UTF-8"?> This line is called the XML---- 

   

  A)prolog 

B)descriptive 

C) UTF-8 

 D)1056 

 

Ans :A 

 

Q.17)The XML------is optional. If it exists, it must come first in the document 

 

 A)prolog 

 B)descriptive 

C) UTF-8 

 D)1056 

 

Ans :A 

 

Q.18)To avoid errors  you should specify encoding used, or save your XML files as ------. 

    

  A)prolog 

 B)descriptive 

C) UTF-8 

 D)1056 

 

Ans :C 

 

 

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

  

  A)XML 

 B)descriptive 

C) UTF-8 

 D)1056 

 

Ans :A 

Q.20)An---------tag or element can contain text ,attributes ,other elements. 

 

 A)XML 

 B)descriptive 

C) UTF-8 

 D)1056 

 

Ans :A 

 

 

Q.21)An element with no content is said to be---------- 

 

 A)XML TAG 

 B)descriptive 

C) UTF-8 

D)Empty XML elements. 

 

Ans :D 

 

 

Q.22)-----------values must always be quoted in xml. Either single or double quotes can be used. 

    

 A)attribute  

 B)element 

C) UTF-8 

 D)Empty XML elements. 

 

Ans :A 

 

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

    

 A)XML document 

 B)descriptive 

 C) html document 

 D)Empty XML elements. 

 

Ans :A    

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

 A)XML document 

 B)descriptive 

 C) html document 

 D)Empty XML elements. 

Ans :A 

 

 

Q.25)------is a markup language that looks a lot like HTML 

 A)XML   

 B)descriptive  

C) html document 

D)Empty XML elements. 

 

Ans :A 

 

 

Q.26)XML is very strict when it comes to document structure 

 

 A)yes 

 B)no 

C)can not say 

 D)none of these 

 

Ans :A 

 

 

Q.27)PHP 5's new-----module makes parsing an XML document,     

 

 A)simpleXML  

 B)descriptive 

 C) html document 

 D)Empty XML elements. 

 

Ans :A 

 

Q.28)To create a SimpleXML object from an XML document stored in a string, pass the string to--------returns a SimpleXML object 

 

 A)simpleXML  

 B)simplexml_load_string( ).  C)simplexml_load_file(filenam)   

 D) XML parser. 

 

Ans :B 

Q.29)You can use function---------------if you have XML content in a file. 

 

 A)simpleXML  

 B)simplexml_load_string( ).  C)simplexml_load_file( filename)   

 D) XML parser. 

 

Ans :C 

 

Q.30)An-----------is a software library or package that provides interfaces for client applications to work with an XML document 

 

  A)simpleXML  

 B)simplexml_load_string( ). 

 C)simplexml_load_file(filenam)   

 D) XML parser 

 

Ans :D 

Q.31)The ------------is designed to read the XML and create a way for programs to use XML. 

 

 A)simpleXML  

 B)simplexml_load_string( ). 

 C)simplexml_load_file(filenam)   

  D) XML parser 

 

Ans :D 

 

Q.32)-----------validates the document and check that the document is well formatted 

  A)simpleXML  

 B)simplexml_load_string( ). 

 C)simplexml_load_file( filename)   

   D) XML parser 

 

Ans :D 

Q.33)The---------defines a standard for accessing and manipulating documents 

   

 A)simpleXML  

 B)simplexml_load_string( ). 

 C)simplexml_load_file( filename)   

   D) DOM 

 

Ans :D 

 

Q.34)The---------defines a standard way for accessing and manipulating HTML documents. It presents an HTML document as a tree-structure. 

 A)simpleXML  

 B)simplexml_load_string( ). 

 C)simplexml_load_file( filename)   

  D)HTML  DOM 

 

Ans :D 

 

Q.35)The--------defines a standard way for accessing and manipulating XML documents. It presents an XML document as a tree-structure. 

 A)simpleXML  

 B)simplexml_load_string( ). 

 C)simplexml_load_file( filename)   

 D)XML DOM   

Ans :D 

Q.36)All XML elements can be accessed through the--------------- 

  A)simpleXML  

 B)simplexml_load_string( ). 

 C)simplexml_load_file( filename)   

 D)XML DOM   

Ans :D 

 

 

  

 

Q.37)All------can be accessed through the XML DOM.   

  A)simpleXML  

  B)simplexml_load_string( ). 

 C)simplexml_load_file( filename)   

   D)XML element 

 

Ans :D 

 

Q.38)UTF-8 is the default character encoding for XML documents. 

 

A)yes 

B)no

C)can not say 

 D) none of these. 

 

Ans :A

 

Q.39)XML documents are formed as element trees. 

 

A)yes 

B)no 

C)can not say 

 D) none of these. 

 

Ans :A 

 

 

 

Q.40) An XML tree starts at a root element and branches from the root to child elements.     

A)yes 

B)no 

C)can not say 

 D) none of these. 

 

Ans :A 

 

 

Q.41) An XML tree starts at a root element and branches from the root to ------------     

 A)childelements 

 B)descriptive 

C) UTF-8 

 D)1056 

 

Ans :A 

 

Q.42) An XML tree starts at a----------and branches from the root to child elements.   

   A)root element 

 B)descriptive 

C) UTF-8 

 D)1056 

 

Ans :A

 

Q.43)<?xml version="1.0" encoding="UTF-8"?> This line is called the XML prolog 

 

 A)yes 

B)no 

C)can not say 

 D) none of these. 

 

Ans :A 

 

 

Q.44)The XML prolog is optional. If it exists, it must come first in the document 

 

A)yes 

B)no 

C)can not say 

 D) none of these. 

Ans : A

 

Q.45)To avoid errors  you should specify encoding used, or save your XML files as UTF-8. 

 

A)yes 

B)no 

C)can not say 

D) none of these. 

 

Ans :A 

 

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

A)yes 

B)no 

C)can not say 

 D) none of these 

  Ans : A

 

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

  A)XML 

 B)descriptive 

C) UTF-8 

 D)1056 

 

Ans :A 

 

 

Q.48)An xml  tag or element can contain text ,attributes ,other elements.   

 A)yes 

B)no 

C)can not say 

 D) none of these 

 

Ans :A 

 

 

Q.49)An xml  tag or element can contain-------,other elements.   

  A)text,attribute 

 B)tag  

C)data 

 D)1056 

 

Ans :A 

 

Q.50)An element with no content is said to be  Empty XML Elements. 

 A)yes 

B)no 

C)can not say 

D) none of these 

 

Ans :A 

 

Q.51)---------values must always be quoted in xml. Either single or double quotes can be used.    

 

  A)attribute  

 B)element 

C) UTF-8 

 D)Empty XML elements. 

 

Ans :A 

 

Q.52)An------- is a basic unit of XML information composed of elements and other markup in an orderly package. 

   A)XML document 

 B)descriptive 

 C) html document 

 D)Empty XML elements. 

 

Ans :A 

 

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

 

  A)XML document 

 B)descriptive 

 C) html document 

 D)Empty XML elements. 

Ans :A 

 

Q.54)--------is a markup language that looks a lot like HTML 

 

   A)XML   

 B)descriptive 

C) html document 

 D)Empty XML elements. 

 

Ans :A 

 







Post a Comment

0 Comments