PrepAway - Latest Free Exam Questions & Answers

Which operation does this code perform?

Ricardo wrote the following PHP code for his Web site:
if ($y != 13) echo (“You are lucky”);
Which operation does this code perform?

PrepAway - Latest Free Exam Questions & Answers

A.
If $y is less than 13, then the string “You are lucky” is displayed.

B.
The number 13 is displayed whenever the code is run.

C.
The code increments the value of $y by 13.

D.
If $y does not equal 13, then the string “You are lucky” is displayed.


Leave a Reply