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.
A. func_get_arg
B. func_num_args
C. get_func_paramter
D. None of above

Question 2. What will be the output

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

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


echo count($arr);

A. 3
B. 4
C. 0
D. 0,warning message

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

October 2, 2011

Zend PHP 5.3 certification practice question 2

Question 1. Choose the valid variable names in PHP.
A. _myName

Question 2. Mark the valid function which helps to identify the type of variable
A. getyype()
B. is_array()
C. is_double()
D. is_integer()

Question 3. Choose options which is true for constants
A. Constants can have dollar signed if we defined as ‘$’.myname
B. Constants may not be redefined or undefined once they have been set
C. Constants may only evaluate to scalar values.
D. defin()  is used to define the constants

Question 4. ______________ constant return the current namespace.

Question 5.  __FILE__ returns the filename of the current script.
A. True
B. False

Hope you find them interesting.You can post your answers ,rate this post or ask me the answers too. To keep yourself in touch you can subscribe my posts and you will be promptly received the updates in your mailbox.

Older Posts »

Create a free website or blog at

%d bloggers like this: