Sail E0 Webinar

MCQs

Total Questions : 121 | Page 10 of 13 pages
Question 91. What will be the output of the following PHP code ?$a = 1;$b = 3;$d = $a++ + ++$b;echo $d;
  1.    3
  2.    5
  3.    error
  4.    4
 Discuss Question
Answer: Option B. -> 5
Question 92. What will be the output of the following PHP code ?$i = 10;$j = 0;if ($i || ($j = $i + 10)) {echo "true";}echo $j;
  1.    true0
  2.    20
  3.    true20
  4.    0
 Discuss Question
Answer: Option A. -> true0
Question 93. What will be the output of the following PHP code ?$a = 10;$b = 10;if ($a = 5)$b--;print $a;print $b--;
  1.    59
  2.    58
  3.    108
  4.    109
 Discuss Question
Answer: Option A. -> 59
Question 94. What will be the output of the following PHP code ?$a = 1;$b = 1;$d = 1;print ++$a + ++$a+$a++;print $a++ + ++$b;print ++$d + $d++ + $a++;
  1.    368
  2.    869
  3.    742
  4.    error
 Discuss Question
Answer: Option B. -> 869
Question 95. What will be the output of the following PHP code ?$i = 1;if ($i++ && ($i == 1))printf("Yesn$i");elseprintf("Non$i");
  1.    No 1
  2.    Yes 1
  3.    Yes 2
  4.    No 2
 Discuss Question
Answer: Option D. -> No 2
Question 96. What will be the output of the following PHP code ?$var1 = 1 + ++5;echo $var1;
  1.    6
  2.    error
  3.    no output
  4.    7
 Discuss Question
Answer: Option B. -> error
Question 97. What will be the output of the following PHP code ?$b = 1;$c = 4;$a = 5;$d = $b + $c == $a;print $d;
  1.    5
  2.    1
  3.    0
  4.    10
 Discuss Question
Answer: Option B. -> 1
Question 98. What will be the output of the following PHP code ?$i = 0;$x = $i++;$y = ++$i;print $x;print $y;
  1.    01
  2.    02
  3.    21
  4.    12
 Discuss Question
Answer: Option B. -> 02
Question 99. What will be the output of the following PHP code ?$a = 5;$b = -7;$c =0;$d = ++$a && ++$b || ++$c;print $d;print $a;print $a;
  1.    05
  2.    16
  3.    06
  4.    15
 Discuss Question
Answer: Option A. -> 05
Question 100. What will be the output of the following PHP code ?$var1 = 0;$var1 = ($var1 + 5)++;echo $var1;
  1.    error
  2.    5
  3.    7
  4.    6
 Discuss Question
Answer: Option A. -> error

Latest Videos

Latest Test Papers