Priti's Technical Corner

October 10, 2011

Zend PHP 5.3 certification practice question 3


Question 1. Choose function name which is best suited for returning an item from the argument list.
Options
A. func_get_arg
B. func_num_args
C. get_func_paramter
D. None of above

Question 2. What will be the output
<?php

$stack = array(“orange”, “banana”, “apple”, “raspberry”);
$fruit = array_shift($stack);
print_r($fruit);

?>
A. array(“orange”,”banana”,”apple”)
B. array(“”banana”,”apple”,”raspberry”)
C. Number of parameter passed is incorrect
D. orange

Question 3. ________ function is used to import variables in to the symbol table from an array.

Question 4.what will be the output

<?php

$arr=array(1,2,3,4);
unset($arr);
echo count($arr);

?>
Options:
A. 3
B. 4
C. 0
D. 0,warning message

Question 5. is_float() is a valid php function?.
Options
A. True
B. False

Advertisements

Leave a Comment »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Blog at WordPress.com.

%d bloggers like this: