<?php
class myObject { }
define('myObject::CONSTANT', 'test');
echo myObject::CONSTANT;
?>
Select an option to see the answer and solution.
Practice every MCQ with options. Use Show answers when you want the correct option and solution.
143
Questions
3/8
Page
Pick an option on a question to see the right answer and solution.
<?php
class myObject { }
define('myObject::CONSTANT', 'test');
echo myObject::CONSTANT;
?>
Select an option to see the answer and solution.
<?php
$x = 5;
$y = 10;
x + $y";
echo "$z";
?>
Select an option to see the answer and solution.
<?php
$x = 4;
$y = 3;
$z = 1;
echo "x + z";
?>
Select an option to see the answer and solution.
<?php
$x = 4;
$y = 3
$z = 1;
z + y;
echo "$z";
?>
Select an option to see the answer and solution.
<?php
$x = 3.3;
$y = 2;
echo y;
?>
Select an option to see the answer and solution.
<?php
$x = 10;
$y = 4;
$z = 3;
echo y % $z;
?>
Select an option to see the answer and solution.
<?php
$x = 10;
$y = 4;
$z = 3;
echo (y) + $z);
?>
Select an option to see the answer and solution.
<?php
$x = 30;
$y = 20;
$z = 10;
echo y - z - $y);
?>
Select an option to see the answer and solution.
<?php
$x = 4;
$y = -3;
$z = 11;
echo 4 + z / $x;
?>
Select an option to see the answer and solution.
<?php
$x = 3.5;
$y = 2;
$z = 2;
echo y / $z;
?>
Select an option to see the answer and solution.
<?php
one = 1;
two = 2;
three = 3;
four = 4;
echo "one / two + three / four";
?>
Select an option to see the answer and solution.
<?php
e = 1;
o = 2;
e = 3;
r = 4;
echo "e / o + e / r";
?>
Select an option to see the answer and solution.
<?php
$on_e = 1;
$tw_o = 2;
$thre_e = 3;
$fou_r = 4;
echo tw_o + fou_r;
?>
Select an option to see the answer and solution.
<?php
$On_e = 1;
$tw_o = 2;
$thre_e = 3;
$fou_r = 4;
echo tw_o + fou_r;
?>
Select an option to see the answer and solution.
<?php
echo $red;
?>
Select an option to see the answer and solution.
<?php
$four4 = 4;
$three3 = 3;
$two2 = 2;
echo three3 / $two2 - 1;
?>
Select an option to see the answer and solution.
<?php
$4four = 4;
$3three = 3;
$2two = 2;
echo 3three / $2two - 1;
?>
Select an option to see the answer and solution.
<?php
int $one = 1;
echo "$one";
?>
Select an option to see the answer and solution.
<?php
var $one = 1;
var $two = 2;
echo two * two * $two;
?>
Select an option to see the answer and solution.
<?php
$hello = "Hello World";
$bye = "Bye";
echo bye";
?>
Select an option to see the answer and solution.