Sail E0 Webinar

MCQs

Total Questions : 121 | Page 5 of 13 pages
Question 41. What will be the output of the following PHP code ?$x = 30;$y = 20;$z = 10;echo $x + $y - $z / ($z - $y);
  1.    51
  2.    41
  3.    -4
  4.    -5
 Discuss Question
Answer: Option A. -> 51
Question 42. What will be the output of the following PHP code ?$x = 4;$y = -3;$z = 11;echo 4 + $y * $z / $x;
  1.    4.25
  2.    -4.25
  3.    3.25
  4.    -3.25
 Discuss Question
Answer: Option B. -> -4.25
Question 43. What will be the output of the following PHP code ?one = 1;two = 2;three = 3;four = 4;echo "one / two + three / four";
  1.    Error
  2.    0.75
  3.    0.05
  4.    1.25
 Discuss Question
Answer: Option A. -> Error
Question 44. What will be the output of the following PHP code ?$x = 3.5;$y = 2;$z = 2;echo $x / $y / $z;
  1.    0.875
  2.    1.75
  3.    Error
  4.    3.5
 Discuss Question
Answer: Option A. -> 0.875
Question 45. What will be the output of the following PHP code ?$on_e = 1;$tw_o = 2;$thre_e = 3;$fou_r = 4;echo $on_e / $tw_o + $thre_e / $fou_r;
  1.    0.75
  2.    Error
  3.    0.05
  4.    1.25
 Discuss Question
Answer: Option D. -> 1.25
Question 46. What will be the output of the following PHP code ?echo $red;
  1.    Error
  2.    0
  3.    True
  4.    Nothing
 Discuss Question
Answer: Option D. -> Nothing
Question 47. What will be the output of the following PHP code ?var $one = 1;var $two = 2;echo $one / $two * $one / $two * $two;
  1.    Error
  2.    0
  3.    1
  4.    0.5
 Discuss Question
Answer: Option A. -> Error
Question 48. What will be the output of the following PHP code ?$four4 = 4;$three3 = 3;$two2 = 2;echo $four4 + $three3 / $two2 - 1;
  1.    7
  2.    3.5
  3.    4.5
  4.    Error
 Discuss Question
Answer: Option C. -> 4.5
Question 49. What will be the output of the following PHP code ?int $one = 1;echo "$one";
  1.    1
  2.    $one
  3.    Error
  4.    0
 Discuss Question
Answer: Option C. -> Error
Question 50. What will be the output of the following PHP code ?$4four = 4;$3three = 3;$2two = 2;echo $4four + $3three / $2two - 1;
  1.    3.5
  2.    7
  3.    4.5
  4.    Error
 Discuss Question
Answer: Option D. -> Error

Latest Videos

Latest Test Papers