Sail E0 Webinar

MCQs

Total Questions : 121 | Page 8 of 13 pages
Question 71. What will be the output of the following PHP code ?$a = 12;--$a;echo $a++;
  1.    12
  2.    11
  3.    error
  4.    10
 Discuss Question
Answer: Option B. -> 11
Question 72. What will be the output of the following PHP code ?$a = 10;echo ++$a;echo $a++;echo $a;echo ++$a;
  1.    11121213
  2.    11111212
  3.    11111213
  4.    11111112
 Discuss Question
Answer: Option C. -> 11111213
Question 73. What will be the output of the following PHP code ?$x = "test";$y = "this";$z = "also";$x .= $y .= $z ;echo $x;echo $y;
  1.    testthisalsothisalso
  2.    error at line 4
  3.    testthis
  4.    testthisthisalso
 Discuss Question
Answer: Option A. -> testthisalsothisalso
Question 74. What will be the output of the following PHP code ?$y = 2;$w = 4;$y *= $w /= $y;echo $y, $w;
  1.    80.5
  2.    44
  3.    82
  4.    42
 Discuss Question
Answer: Option D. -> 42
Question 75. What will be the output of the following PHP code ?$x = 1;$y = 2;if (++$x == $y++) {echo "true ", $y, $x;}
  1.    true 22
  2.    true 23
  3.    no output
  4.    true 33
 Discuss Question
Answer: Option B. -> true 23
Question 76. What will be the output of the following PHP code ?echo $x-- != ++$x;
  1.    0
  2.    1
  3.    no output
  4.    error
 Discuss Question
Answer: Option B. -> 1
Question 77. What will be the output of the following PHP code ?$y = 2;if ($y-- == ++$y) {echo $y;}
  1.    1
  2.    3
  3.    2
  4.    no output
 Discuss Question
Answer: Option C. -> 2
Question 78. What will be the output of the following PHP code ?$y = 2;if (--$y ($y != $y++)) {echo $y;}
  1.    1
  2.    0
  3.    no output
  4.    2
 Discuss Question
Answer: Option B. -> 0
Question 79. What will be the output of the following PHP code ?$y = 2;if (--$y == 2 || $y xor --$y) {echo $y;}
  1.    no output
  2.    1
  3.    0
  4.    2
 Discuss Question
Answer: Option C. -> 0
Question 80. What will be the output of the following PHP code ?$y = 2;if (**$y == 4) {echo $y;}
  1.    error at line2
  2.    no output
  3.    2
  4.    4
 Discuss Question
Answer: Option A. -> error at line2

Latest Videos

Latest Test Papers