Priti's Technical Corner

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.



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

    Waiting for answers. 🙂

    Comment by Sashi Kanth — October 8, 2011 @ 4:02 pm

  2. Answer for 5th question can be true…

    Comment by Sashi Kanth — October 8, 2011 @ 4:03 pm

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

    Comment by pritisolanki — October 8, 2011 @ 5:16 pm

  4. 1. A
    2. A
    4. __NAMESPACE__
    5. false.. $_SERVER[‘PHP_SELF’] will give you name of the current script.

    Comment by Nikhil — November 11, 2011 @ 6:25 am

  5. 1 A if($__myName)
    2. A. getyype() ?? maybe gettype ?
    3. BC D(

    5 true

    _FILE__ The full path and filename of the file. If used inside an include, the name of the included file is returned. Since PHP 4.0.2, __FILE__ always contains an absolute path with symlinks resolved whereas in older versions it contained relative path under some circumstances.

    Comment by ForceMan — November 8, 2012 @ 2:55 pm

  6. I think that everything posted was very reasonable. However, what about this?
    what if you typed a catchier title? I ain’t saying your information isn’t good,
    however suppose you added something that makes people desire more?
    I mean Zend PHP 5.3 certification practice question 2 PHP FAQs is kinda vanilla.

    You should glance at Yahoo’s front page and watch how they create article headlines to grab viewers to click. You might add a video or a picture or two to grab readers interested about what you’ve written.
    In my opinion, it might make your blog a little

    Comment by Richard — November 26, 2012 @ 11:11 pm

  7. This is my first time go to see at here and i am actually pleassant to read all at single place.

    Comment by NIKE AIR MAX 95 — December 1, 2012 @ 12:40 pm

  8. Thanks Richard and Nike for feedback. It help me in improving this for my reader. Glad you find some time

    Comment by pritisolanki — December 2, 2012 @ 3:05 pm

RSS feed for comments on this post. TrackBack URI

Leave a Reply

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

You are commenting using your 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

Create a free website or blog at

%d bloggers like this: