moneybookers



Monday, July 12, 2010

PHP Test And solutions

Question.31.

You have designend a user login form as follows:

User Name:
password:

How can you accesss the username entered by the user in the "Validate.php" webpag?

a. $var= $_POST['usernmae'];
b. $var= $_REQUEST['usernmae'];
c. import_request_variable('P','P_');
$var = $p_username;
d. All of the above

Solution:

Question.32.

which of the following id used to maintain the value of a variable over different pages?
a. static
b. global
c. session_register()
d. Non of the above

Solution:


Question.33.

What will be the output of the following code
echo 30 * 5 . 7
?>

a. 150. 7
b.1507
c. 150.7
d. you can't concatinate integers e. error will occur

Solution:

Question.34.

Variable functions in PHP don't work directly with:
a. echo()
b. isset()
c. print()
d. All of the above

Solution:


Question.35.


Multiple select/load is pssible with:
a. checkbox
b. Select
c. File
d. all of the above

Solution:


Question.36.

Which of thew following is not a correct way of printing text in PHP5?

a.
echo "plain text" ;
?>
b.
echo "plain text"
?>
c.
d. <# echo "plain text" #>

Solution:

C

Question.37.

with reference to the folowing php script:
what will be the output on running the script?
a. Text Line 1Text Line 2
b. Text Line 1 Text Line 2
c. 'Text Line 1'
d. 'Text Line 2' e. error message will b printed.

Solution:

E
Question.38.

What will be the output of the following code? $a = 10 if ($a> 5 OR <15)>

a. false
b. true
c. no output
d. Parser Error


Solution:

No comments:

Post a Comment