Sail E0 Webinar

MCQs

Total Questions : 103 | Page 2 of 11 pages
Question 11. What will be the output of the following code?
  1.    Error
  2.    My name is BobBob
  3.    My name is BobMy name is Bob
  4.    My name is Bob Bob
 Discuss Question
Answer: Option C. -> My name is BobMy name is Bob
Question 12. Which of the following PHP statements will output Hello World on the screen?
1. echo (“Hello World”);
2. print (“Hello World”);
3. printf (“Hello World”);
4. sprintf (“Hello World”);
  1.    1 and 2
  2.    1, 2 and 3
  3.    All of the mentioned
  4.    1, 2 and 4
 Discuss Question
Answer: Option B. -> 1, 2 and 3
Question 13. What will be the output of the following PHP code?
  1.    a
  2.    Error
  3.    $var
  4.    r
 Discuss Question
Answer: Option D. -> r
Question 14. What will be the output of the following PHP code?
  1.    1
  2.    Error
  3.    1234
  4.    2
 Discuss Question
Answer: Option C. -> 1234
Question 15. What will be the output of the following PHP code?
  1.    Error
  2.    35 students
  3.    35
  4.    25 students
 Discuss Question
Answer: Option C. -> 35
Question 16. Which of the below statements is equivalent to $add += $add ?
  1.    $add = $add
  2.    $add = $add +$add
  3.    $add = $add + 1
  4.    $add = $add + $add + 1
 Discuss Question
Answer: Option B. -> $add = $add +$add
Question 17. Which statement will output $x on the screen?
  1.    echo “\$x”;
  2.    echo “$$x”;
  3.    echo “/$x”;
  4.    echo “$x;”;
 Discuss Question
Answer: Option A. -> echo “\$x”;
Question 18. What will be the output of the following PHP code?
  1.    get
  2.    true
  3.    false
  4.    clueget
 Discuss Question
Answer: Option D. -> clueget
Question 19. What will be the output of the following PHP code?
  1.    5 === 5
  2.    Error
  3.    1
  4.    False
 Discuss Question
Answer: Option C. -> 1
Question 20. What will be the output of the following code?
  1.    123
  2.    111
  3.    000
  4.    011
 Discuss Question
Answer: Option A. -> 123

Latest Videos

Latest Test Papers