PrepAway - Latest Free Exam Questions & Answers

What is the output of this code?

Consider the following program code:
$val = 5;
if ($val++ == 6)
{
print(“True “);
}
else

{
print(“False “);
}
if ($val++ == 6)
{
print(“True “);
}
else
{
print(“False “);
}
What is the output of this code?

PrepAway - Latest Free Exam Questions & Answers

A.
FalseFalse

B.
False True

C.
True False

D.
TrueTrue


Leave a Reply