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.

Advertisement

Tags: , ,

4 Responses to “Zend PHP 5.3 certification practice question 2”

  1. Sashi Kanth Says:

    I think the answer to the first question is A.
    And all the options for second question look wrong.

    Waiting for answers. :)

  2. Sashi Kanth Says:

    Answer for 5th question can be true…

  3. pritisolanki Says:

    From PHP Manual: __FILE__ return The full path and filename of the file.

  4. Nikhil Says:

    1. A
    2. A
    3.B,C
    4. __NAMESPACE__
    5. false.. $_SERVER['PHP_SELF'] will give you name of the current script.

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 )

Connecting to %s


Follow

Get every new post delivered to your Inbox.