Chapter: Unit 2
101.

GET request is often cacheable while-----request is hardly cacheable. Sol:

A. $_GET
B. $_POST
C. POST
D. GET
Answer» C. POST
102.

------inputs are auto-filling inputs after submitting Sol:

A. $_GET
B. $_POST
C. STICKY
D. GET
Answer» C. STICKY
103.

GET method supports only string data types while-------method supports different data types, such as string, numeric, binary, etc

A. $_GET
B. $_POST
C. POST
D. GET
Answer» C. POST
104.

there are two ways the browser client can send information to the web server . The GET Method & The POST Method

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

Never use GET method if you have password or other sensitive information to be sent to the server.

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

GET can't be used to send binary data, like images or word documents, to the server Sol:

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

The data sent by GET method can be accessed using QUERY_STRING environment variable.

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

The POST method can be used to send ASCII as well as binary data Sol:

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

The PHP provides $_POST associative array to access all the sent information using POST method.

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

PHP $_POST is a PHP super global variable which is used to collect form data after submitting an HTML form with method="post". $_POST is also widely used to pass variables

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

The GET method can retrieve information identified by the request-URl (Uniform Resource Identifier)

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

Use POST when you need the server, which controls URL generation of your resources Sol:

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

The GET method is restricted to send upto------characters only Sol:

A. 1024
B. 1000
C. 255
D. 1056
Answer» A. 1024
Chapter: XML
114.

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

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

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

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

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

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

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
118.

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

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

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
120.

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

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

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.
122.

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

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

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
124.

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

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

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
126.

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

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

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

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

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
129.

<?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
130.

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
131.

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
132.

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
133.

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

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

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.
135.

-----------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
136.

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
137.

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
138.

------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
139.

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
140.

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
141.

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( ).
142.

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)
143.

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
144.

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
145.

-----------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
146.

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
147.

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
148.

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
149.

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
150.

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
151.

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
152.

XML documents are formed as element trees. Sol:

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

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
154.

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
155.

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
156.

<?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
157.

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
158.

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
159.

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
160.

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
161.

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
162.

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

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

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
164.

---------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
165.

An------- 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
166.

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
167.

--------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
Chapter: Ajax with PHP
168.

AJAX stands for --------------------------------.

A. Asynchronous java script and xml
B. Asyanchronous and extented language
C. Asyanchronous and ajax extended
D. none of these
Answer» A. Asynchronous java script and xml
169.

-----is a new technique for creating better, faster, and more interactive webapplications with the help of XML, HTML, CSS and Java Script.

A. Ajax
B. Synchronous
C. synchronous XML
D. Asynchronous JavaScript
Answer» A. Ajax
170.

Conventional web application transmit information to and from the sever using----- requests

A. Ajax
B. Synchronous
C. synchronous XML
D. Asynchronous JavaScript
Answer» B. Synchronous
171.

With-----when submit is pressed, JavaScript will make a request to the server, interpret the results and update the current screen.

A. Ajax
B. Synchronous
C. synchronous XML
D. Asynchronous JavaScript
Answer» A. Ajax
172.

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

A. XML
B. Synchronous
C. synchronous HTML
D. Asynchronous JavaScript
Answer» A. XML
173.

---------------and XML. AJAX is a technique for creating fast and
dynamic web pages.
Sol:

A. Ajax
B. Synchronous
C. synchronous XML
D. Asynchronous JavaScript
Answer» D. Asynchronous JavaScript
174.

Ajax refers to----------------technologies that are widely used for creating dynamic and
asynchronous web content
Sol:

A. Ajax &xml
B. Synchronous &php
C. XML & php
D. JavaScript & xml
Answer» D. JavaScript & xml
175.

While Ajax is not limited to-----------technologies, more often than not they are used
togetherby web applications.
Sol:

A. Ajax &xml
B. Synchronous &php
C. XML & php
D. JavaScript & xml
Answer» D. JavaScript & xml
176.

--------is a technique for creating fast and dynamic web pages.

A. Ajax
B. Synchronous
C. synchronous XML
D. Asynchronous JavaScript
Answer» A. Ajax
177.

AJAX allows web pages to be updated-----------by exchanging small amounts of data
with the server behind the scenes
Sol:

A. Ajax
B. Asynchronous
C. synchronous XML
D. Asynchronous JavaScript
Answer» B. Asynchronous
178.

it is possible for Ajax to update parts of a web page, without reloading the
whole page..
Sol:

A. Ajax
B. Synchronous
C. synchronous XML
D. Asynchronous JavaScript
Answer» A. Ajax
179.

----------capabilities can be especially useful when dealing with forms. Sol:

A. jQuery's ajax
B. serialize()
C. Client-side validation
D. ajaxStart
Answer» A. jQuery's ajax
180.

The-------method serializes a form's data into a query string Sol:

A. jQuery's ajax
B. serialize()
C. Client-side validation
D. ajaxStart
Answer» B. serialize()
181.

---------is required for input, valid usernames/emails/phone numbers/etc. Sol:

A. jQuery's ajax
B. serialize()
C. Client-side validation
D. ajaxStart
Answer» C. Client-side validation
182.

-----------events can be disabled for a particular Ajax request by passing
inthe global option
Sol:

A. jQuery's ajax
B. serialize()
C. Global
D. ajaxStart
Answer» C. Global
183.

--------(Global Event):This event is triggered if an Ajax request is started
and no other Ajaxrequests are currently running.
Sol:

A. jQuery's ajax
B. serialize()
C. Client-side validation
D. ajaxStart
Answer» A. jQuery's ajax
184.

------------(Local Event):This event, which is triggered before an Ajax
request is started, allows you tomodify the XMLHttpRequest object.
Sol:

A. jQuery's ajax
B. beforeSend
C. ajax Send
D. ajaxStart
Answer» B. beforeSend
185.

------(Global Event):This global event is also triggered before the request is
run.
Sol:

A. jQuery's ajax
B. beforeSend
C. ajax Send
D. ajaxStart
Answer» C. ajax Send
186.

-----------(Local Event):This event is only called if the request was
successful (no errors from theserver, no errors with the data):
Sol:

A. jQuery's ajax
B. beforeSend
C. ajax Send
D. success
Answer» D. success
187.

---------(Global Event):This event is also only called if the request was
successful.
Sol:

A. jQuery's ajax
B. beforeSend
C. ajax Send
D. ajaxSuccess
Answer» D. ajaxSuccess
188.

----------(Global Event):This global event behaves the same as the local
error event.
Sol:

A. jQuery's ajax
B. beforeSend
C. ajax Send
D. ajaxError
Answer» D. ajaxError
189.

-------------(Local Event):This event is called regardless of if the request
was successful, or not. Youwill always receive a complete callback, even for synchronous requests.
Sol:

A. complete
B. ajaxComplete
C. ajaxStop
D. The ajax()
Answer» A. complete
190.

-------------(Global Event):This event behaves the same as the complete
event and will be triggeredevery time an Ajax request finishes.
Sol:

A. complete
B. ajaxComplete
C. ajaxStop
D. The ajax()
Answer» B. ajaxComplete
191.

(Global Event):This global event is triggered if there are no more Ajax
requests beingprocessed.
Sol:

A. complete
B. ajaxComplete
C. ajaxStop
D. The ajax()
Answer» C. ajaxStop
192.

The--------method is used to perform an AJAX (asynchronous HTTP)
request
Sol:

A. complete
B. ajaxComplete
C. ajaxStop
D. The ajax()
Answer» D. The ajax()
193.

PHP supports the following data types: Sol:

A. string
B. interger
C. float
D. all the above
Answer» D. all the above
194.

PHP divides the operators in the following groups: Sol:

A. increment decrement
B. logical
C. string
D. all the above
Answer» D. all the above
195.

The basic assignment operator in PHP is __________ It means that the left operand
gets set to the value of the assignment expression on the right.
Sol:

A. <>
B. ?
C. ""
D. =
Answer» D. =
196.

the _________ statement is used to perform different actions based on different
conditions
Sol:

A. switch
B. if condition
C. whie loop
D. for loop
Answer» A. switch
197.

In PHP, we have the following loop types: Sol:

A. for each
B. for
C. whie loop
D. all the above
Answer» D. all the above
198.

the _________ statement is used to check the action on each step and perform
different actions based on different conditions
Sol:

A. if else
B. else if ladder
C. whie loop
D. for loop
Answer» B. else if ladder
199.

In PHP, ______in this loop we check show true statement first then check the
condition :
Sol:

A. for each
B. for
C. whie loop
D. do while
Answer» D. do while
200.

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

A. XML
B. Asyanchronous java script
C. Ajax
D. java script
Answer» A. XML
Tags
Question and answers in Advance PHP, Advance PHP multiple choice questions and answers, Advance PHP Important MCQs, Solved MCQs for Advance PHP, Advance PHP MCQs with answers PDF download