moneybookers



Monday, July 12, 2010


Question.21.

What will be the output of the following code?

$a = 10;
echo "Value of a = $a";

a. value of a = 10
b. Value of a = $a
c. Undefind
d. Syntax Error

Solution:

A

Question.22.

Which of the following regualr expressions can be used to check the validity of an email address?

a. ^[^@]+@[^@]+\[^@]+$
b. ^[^@]+@[^@]+[^@]+$
c. $[^@]+@[^@]+\[^@]+^
d. $[^@]+@[^@]+.[^@]+^

Solution:

Question.23.

Which of the following is not represent logical AND operator in PHP?
a. &
b. &&
c. And
d. AND

Solution:
A

Question.24.

Which of the following are file PHP file Upload Related function?

a. upload_file()
b. is_upload_file()
c. move_upload_file()
d. Non of the above

Solution:

D

Question.25.

Does PHP support exceptions?

a. Yes
b. No

Solution:

A

Question.26.

Which of the following functions do you need to implement HTTP Basic Authentication?

a. Authenticate()
b. header()
c. basic_auth()
d. Non of the above

Solution:

D

Question.27.

What will be the output of the following code?

for ($i = 0; $i <>
{if($i == 2)
continoue;
print "$i\n";
}
?>

a. 0
1
2
3
4
5
b. 0
1
2
3
4
c. 2
d. 0
1
2
4
e. non of the above

Solution:

B

Question.28.

What will be the output of the following code?

echo 12 . 6;

a. 12 . 6
b. 126
c. 12.6
d. Error: You cannot add integers through the concatienation operator(.)

Solution:

Question.29.

Which of the following is not supported in PHP5?

a. Type Hinting
b. Reflection
c. Magic Methods
d. Object Cloning

Solution:

Question.30
.

Which of the following are valid PHPdata types?

a. resource
b. null
c. boolean
d. string
e. Both a and c
f. b, c and d
g. All of the above

Solution:

No comments:

Post a Comment