Test

From: Bruce Razban
Sent on: Tuesday, September 15, 2009 10:10 PM
Dear php-139ers!
 
I am working on getting Php5 Certification.
 
When I took the test, I was somewhat surprised by the following questions. I know that these only show in test and not in actual coding in the real world. But, here we go with the test:
 
1. We have $A and $B and their values are:  A is 3 and B is 5. Then they ask what is $A & $B?   I thought that this is bit-wise "AND" function, but, the answer of 3 did not work. Is there a single & and is it the logical and?
2. On question 1 above, suppose A and B are arrays, then what will A & B be?  (I am relying on my memory for this)
 
3. What if the function of ^ operator?   For example A^B? A and B could be variables, of arrays (Ofcourse with the $ in front of them)?
4. What is the value in decimal of number 12345E10?
5. What is the value in decimal of number 12345E -5?
6. Which of the following statements will work on any installation of PHP?
        <?
        ?>       or,
 
        <? Language=PHP5.2 ....
 
        ?>         //Sorry I am not sure about the exact syntax here.
 
7.  For Array A that contains (2, 3, 4, 5, 6, 7)  what does shift 2 do? What does shift -3 do?
 
8. And a general question:  On the push and pop instruction for an array how do we know which end (left of right) is to be considered?
 
I appreciate it if anyone can answer these.
 
Thanks.
 
-Bruce
 

Our Sponsors

GameSpot.com

GameSpot.com & CBSi provides the facilities our group uses every month.

O'Reilly User Group Program

The O'Reilly User Group Program provides the great books we get monthly.

Other nearby
Meetups
Why these groups?
x

The Meetup Groups shown here are topically similar to The San Francisco PHP Meetup Group.

Groups are more likely to be displayed here if they:

  • have a Meetup scheduled
  • have a high rating
  • have a group photo
  • are "public" and not "private"
  • have shown they are likely to stick around (older than 30 days)

Log in

  • Not registered with us yet?
or

Log in to Meetup with your Facebook account.

Sign up

or

Join this Meetup Group even quicker with your Facebook account.

By clicking the "Sign up using Facebook" or "Sign up" buttons above, you agree to Meetup's Terms of Service