Programming - PHP
You Are Here :: Home > Programming > PHP- General Questions
49. |
How would you start a session??
|
A. |
session(start); |
B.
|
session(); |
C.
|
session_start();
|
D.
|
begin_session();
|
|
Answer: Option C
Explanation:
|
50. |
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
|
|
Answer: Option A
Explanation:
|
51. |
Which of the following is not true regarding XForms??
|
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
|
|
Answer: Option D
Explanation:
|
52. |
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??
|
A. |
mail($to,$subject,$body) |
B.
|
sendmail($to,$subject,$body) |
C.
|
mail(to,subject,body)
|
D.
|
sendmail(to,subject,body)
|
|
Answer: Option A
Explanation:
|
53. |
Which of the following are useful for method overloading??
|
A. |
__call, __get, __set |
B.
|
_get,_set,_load |
C.
|
__get,__set,__load
|
D.
|
__overload
|
|
Answer: Option A
Explanation:
|
54. |
Which of the following is a PHP resource??
|
A. |
Domxml document |
B.
|
Odbc link |
C.
|
File
|
D.
|
All of the above
|
|
Answer: Option D
Explanation:
|
« prev
......
next »