Question: What will be the output of the following PHP code ? A. 0.75 B. 0.25 C. 1.25 D. Error What will be the output of
What will be the output of the following PHP code ?
one = 1;
two = 2;
three = 3;
four = 4;
print "one / two + three / four";
?>
A. 0.75
B. 0.25
C. 1.25
D. Error
What will be the output of the following PHP code ?
print $red ;
?>
A. 0
B. Nothing (also no error)
C. True
D. Error
What will be the output of the following PHP code ?
$on$e = 1;
$tw$o = 2;
$thre$e = 3;
$fou$r = 4;
print "$on$e / $tw$o + $thre$e / $fou$r" ;
?>
A. 0.75
B. 0.05
C. 1.25
D. Error
What will be the output of the following PHP code ?
$4four = 4;
$3three = 3;
$2two = 2;
print "$4four + $3three / $2two - 1";
?>
A. 4.5
B. 7
C. 3.5
D. Error
What will be the output of the following PHP code ?
int $one = 1;
print "$one";
?>
A. 0
B. 1
C. $one
D. Error
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
