Sail E0 Webinar

MCQs

Total Questions : 121 | Page 11 of 13 pages
Question 101. What will be the output of the following PHP code ?$var1 = 1;echo $var1 = ++$var1 % 2 + ++$var1;
  1.    2
  2.    1
  3.    3
  4.    0
 Discuss Question
Answer: Option C. -> 3
Question 102. What will be the output of the following PHP code ?$var1 = 3;print $var = ++$var;
  1.    2
  2.    1
  3.    3
  4.    0
 Discuss Question
Answer: Option B. -> 1
Question 103. What will be the output of the following PHP code ?$i = 0;$j = 1;$k = 2;print !(($i + $k) < ($j - $k));
  1.    0
  2.    1
  3.    false
  4.    true
 Discuss Question
Answer: Option B. -> 1
Question 104. What will be the output of the following PHP code ?$a = 5;$b = -7;$c =0;$d = ++$a && ++$b || ++$c;print $d;print $a;
  1.    05
  2.    15
  3.    06
  4.    16
 Discuss Question
Answer: Option D. -> 16
Question 105. What will be the output of the following PHP code ?$var1 = 3;print ++$var++;
  1.    4
  2.    3
  3.    5
  4.    error
 Discuss Question
Answer: Option D. -> error
Question 106. What will be the output of the following PHP code ?$i = 0;$j = 1;$k = 2;print !(( + + $i + $j) > ($j - $k));
  1.    0
  2.    1
  3.    error
  4.    no output
 Discuss Question
Answer: Option D. -> no output
Question 107. What will be the output of the following PHP code ?$a = '4';print + + $a;
  1.    error
  2.    no output
  3.    0
  4.    5
 Discuss Question
Answer: Option D. -> 5
Question 108. What will be the output of the following PHP code ?$a = 'a';print $a * 2;
  1.    0
  2.    error
  3.    2
  4.    192
 Discuss Question
Answer: Option A. -> 0
Question 109. What will be the output of the following PHP code ?$a = 0x6db7;print $a
  1.    0x6dc0
  2.    error
  3.    1797568
  4.    no output
 Discuss Question
Answer: Option C. -> 1797568
Question 110. What will be the output of the following PHP code ?$a = '12345';print "qwe{$a}rty";
  1.    qwe12345rty
  2.    qwe{$a}rty
  3.    error
  4.    no output
 Discuss Question
Answer: Option A. -> qwe12345rty

Latest Videos

Latest Test Papers