Does PHP 5 support exceptions? | PHP MCQs

a. Yes
b. No

Ans: a

Which of the following is a PHP resource? | PHP MCQs

a. Domxml document
b. Odbc link
c. File
d. All of the above

Ans: d

Which of the following are useful for method overloading? | PHP MCQs

a. __call, __get, __set
b. _get,_set,_load
c. __get,__set,__load
d. __overload

Ans: a

You have defined three variables $to, $subject and $body to send an email. Which of the following methods would you use for sending an email? | PHP MCQs

a. mail($to,$subject,$body)
b. sendmail($to,$subject,$body)
c. mail(to,subject,body)
d. sendmail(to,subject,body)

Ans: a

Which of the following is not true regarding XForms? | PHP MCQs

a. PHP provides support for XForm
b. It can be used on PDF documents
c. The data is sent in XML format
d. The action and method parameters are defined in the body
Ans: d

PHP Multiple choice questions | What will be the output of following code?

$a = 10;
echo 'Value of a = $a';
a. Value of a = 10
b. Value of a = $a
c. Undefined
d. Syntax Error

Ans: a

How would you start a session? | PHP MCQs

a. session(start);
b. session();
c. session_start();
d. begin_session();

Ans: c


Blogger news