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.
Tags: Zend 200-530 Practice Questions, Zend certification, Zend PHP 5.3 Preparation Questions
October 8, 2011 at 4:02 pm
I think the answer to the first question is A.
And all the options for second question look wrong.
Waiting for answers.
October 8, 2011 at 4:03 pm
Answer for 5th question can be true…
October 8, 2011 at 5:16 pm
From PHP Manual: __FILE__ return The full path and filename of the file.
November 11, 2011 at 6:25 am
1. A
2. A
3.B,C
4. __NAMESPACE__
5. false.. $_SERVER['PHP_SELF'] will give you name of the current script.