Sail E0 Webinar

MCQs

Total Questions : 131 | Page 4 of 14 pages
Question 31. What will be the output of the following PHP code ?
  1.    true
  2.    false
  3.    1
  4.    error
 Discuss Question
Answer: Option C. -> 1
Question 32. What will be the output of the following PHP code ?
  1.    thiswasabadidea
  2.    this was a bad idea
  3.    nothing
  4.    error
 Discuss Question
Answer: Option A. -> thiswasabadidea
Question 33. What will be the output of the following PHP code ?
  1.    $GREETING
  2.    no output
  3.    PHP is a scripting language
  4.    GREETING
 Discuss Question
Answer: Option B. -> no output
Question 34. What will be the output of the following PHP code ?
  1.    0.01.0
  2.    01
  3.    No output
  4.    ERROR
 Discuss Question
Answer: Option D. -> ERROR
Question 35. What will be the output of the following PHP code ?
  1.    PHP is a scripting language
  2.    __LINE__
  3.    2
  4.    ERROR
 Discuss Question
Answer: Option C. -> 2
Question 36. What will be the output of the following PHP code ?
  1.    IF:42
  2.    No output
  3.    IF:
  4.    ERROR
 Discuss Question
Answer: Option D. -> ERROR
Question 37. What will be the output of the following PHP code ?
  1.    I have a value
  2.    I have a valueI have a value
  3.    ERROR
  4.    I have a valueNEW_GOO_NAME_CONSTANTS
 Discuss Question
Answer: Option B. -> I have a valueI have a value
Question 38. What will be the output of the following PHP code ?
  1.    test
  2.    testtest
  3.    testvalue
  4.    error, constant value cannot be changed
 Discuss Question
Answer: Option C. -> testvalue
Question 39. What will be the output of the following PHP code ?
  1.    test
  2.    error
  3.    myObject::CONSTANT
  4.    no output
 Discuss Question
Answer: Option B. -> error
Question 40. What will be the output of the following PHP code ?
  1.    15
  2.    10 + 5
  3.    $z
  4.    $x + $y
 Discuss Question
Answer: Option B. -> 10 + 5

Latest Videos

Latest Test Papers