Priti's Technical Corner

October 1, 2011

Zend PHP 5.3 Practice Question


Below set of questions are just for your zend certification practice.

Question 1.  Which PHP Tags are always avaiable? [Choose 2]
Options
A. <?php ?>
B. <% %>
C. <script language=”php”>
D. <? ?>

Answers: A,C

Question 2. Which of the data types are not scalar data types
Options
A. Boolean
B. Array
C. Resource
D. float

Answer: B,C

Question 3. To check for a certain type of a varaible use ……….. function.
is_type

Question 4.What is wrong with following code
function foo()
{
static $bar = <<<LABEL
Nothing in here…
LABEL;
}

A. There is no error
B. Static varaible initialization with HEREDOC is wrong
C. LABEL keyword can’t be used

AnswerA.

Question 5: print $foo = 4 + “1.2 apples”;
Options
A. 4
B. NULL
C. 5.2
D. 5
Answer  C

Advertisements

Leave a Comment »

No comments yet.

RSS feed for comments on this post. TrackBack URI

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 )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Blog at WordPress.com.

%d bloggers like this: