Variables in Php MCQ

Answer all questions carefully. After submission, you will see a detailed result and answer review.

Question 1
What will be the output of the following PHP code? <pre class="prettyprint"> < ?php int $one = 1; echo "$one"; ?> </pre>
Question 2
What will be the output of the following PHP code? <pre class="prettyprint"> < ?php $on$e = 1; $tw$o = 2; $thre$e = 3; $fou$r = 4; echo "$on$e / $tw$o + $thre$e / $fou$r" ; ?> </pre>
Question 3
What will be the output of the following PHP code? <pre class="prettyprint"> < ?php $on_e = 1; $tw_o = 2; $thre_e = 3; $fou_r = 4; echo "$on_e / $tw_o + $thre_e / $fou_r" ; ?> </pre>
Question 4
What will be the output of the following PHP code? <pre class="prettyprint"> < ?php $hello = "Hello World"; $bye = "Bye"; echo $hello;"$bye"; ?> </pre>
Question 5
What will be the output of the following PHP code? <pre class="prettyprint"> < ?php $On_e = 1; $tw_o = 2; $thre_e = 3; $fou_r = 4; echo "$on_e / $tw_o + $thre_e / $fou_r"; ?> </pre>
Question 6
What will be the output of the following PHP code? <pre class="prettyprint"> < ?php echo $red ; ?> </pre>
Question 7
What will be the output of the following PHP code? <pre class="prettyprint"> < ?php var $one = 1; var $two = 2; echo "$one / $two * $one / $two * $two"; ?> </pre>
Question 8
What will be the output of the following PHP code? <pre class="prettyprint"> < ?php $4four = 4; $3three = 3; $2two = 2; echo "$4four + $3three / $2two - 1"; ?> </pre>
Question 9
What will be the output of the following PHP code? <pre class="prettyprint"> < ?php one = 1; two = 2; three = 3; four = 4; echo "one / two + three / four"; ?> </pre>
Question 10
What will be the output of the following PHP code? <pre class="prettyprint"> < ?php echo "$four4 + $three3 / $two2 - 1"; ?> </pre>