Sail E0 Webinar

MCQs

Total Questions : 131 | Page 7 of 14 pages
Question 61. What will be the output of the following PHP code ?
  1.    7
  2.    9
  3.    0
  4.    Error
 Discuss Question
Answer: Option B. -> 9
Question 62. What will be the output of the following PHP code ?
  1.    3
  2.    4
  3.    6
  4.    Error
 Discuss Question
Answer: Option D. -> Error
Question 63. If you do something to an integer that makes it larger than the maximum allowable integer or smaller than the minimum possible integer, the PHP interpreter converts the result into a . . . . . 
  1.    String
  2.    Floating point number
  3.    Integers
  4.    None of above
 Discuss Question
Answer: Option B. -> Floating point number
Question 64. The result of below two statements will be:
Round(2.5)
Round(-2.5)
  1.    2.5, -2
  2.    2, -2
  3.    3, -3
  4.    3.5, -3.5
 Discuss Question
Answer: Option C. -> 3, -3
Question 65. PHP will automatically convert strings to numbers when it needs to.
  1.    TRUE
  2.    FALSE
 Discuss Question
Answer: Option A. -> TRUE
Question 66. What will be the output of the following PHP code ?
  1.    104
  2.    410
  3.    1400
  4.    4100
 Discuss Question
Answer: Option C. -> 1400
Question 67. What will be the output of the following PHP code ?
  1.    $winner/$looser
  2.    /$looser
  3.    /
  4.    $looser
 Discuss Question
Answer: Option C. -> /
Question 68. What will be the output of the following PHP code ?
  1.    $winner$looser
  2.    $looser
  3.    \
  4.    $looser
 Discuss Question
Answer: Option D. -> $looser
Question 69. What will be the output of the following PHP code ?
  1.    $winner$looser
  2.    $looser
  3.    \
  4.    $looser
 Discuss Question
Answer: Option C. -> \
Question 70. What will be the output of the following PHP code ?
  1.    5
  2.    10
  3.    15
  4.    Error
 Discuss Question
Answer: Option C. -> 15

Latest Videos

Latest Test Papers