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

October 2, 2011

Zend PHP 5.3 certification practice question 2


Question 1. Choose the valid variable names in PHP.
Options
A. _myName
B. 1_MYNAME
c. @MYNAME
D. My.name

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

Question 3. Choose options which is true for constants
Options
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.
Options
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 »

Blog at WordPress.com.

%d bloggers like this: