129
87.9k

320+ Advance PHP Solved MCQs

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

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.