PrepAway - Latest Free Exam Questions & Answers

What is the result of executing this program code?

Consider the following program code:
1.$x = 100;
2.$y = 15;
3.$result = $x % $y;
4.
5.print$result;
What is the result of executing this program code?

PrepAway - Latest Free Exam Questions & Answers

A.
The code will fail at line 3 because % is a unary operator.

B.
The code will output the following:
10E+16

C.
The code will output the following:
10

D.
The code will fail at line 5 because $result is not enclosed by parentheses.


Leave a Reply