Sail E0 Webinar

MCQs

Total Questions : 131 | Page 13 of 14 pages
Question 121. In order to find if a variable holds an actual number or a string containing characters that can be translated into a number you can use:
  1.    is_num()
  2.    is_number()
  3.    if_numeric
  4.    is_numeric()
 Discuss Question
Answer: Option D. -> is_numeric()
Question 122. The result of both the below expressions in PHP will be same:
1) 3+4*2
2) (3+4)*2
  1.    TRUE
  2.    FALSE
 Discuss Question
Answer: Option B. -> FALSE
Question 123. Numbers in PHP can’t be infinitely large or small, there is some minimum and maximum size. If more larger (or smaller) numbers are needed then . . . . . must be used:
1. GPM libraries
2. GMP libraries
3. CBMath
4. BCMath
  1.    Option 2 and 4
  2.    Option 3 and 4
  3.    Option 1 and 4
  4.    Option 2 and 3
 Discuss Question
Answer: Option A. -> Option 2 and 4
Question 124. Ceil(-2.1) would be
  1.    3
  2.    -3
  3.    -2
  4.    2
 Discuss Question
Answer: Option C. -> -2
Question 125. 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 126. What will be the output of the following PHP code ?
  1.    $winner/$looser
  2.    /$looser
  3.    /
  4.    $looser
 Discuss Question
Answer: Option C. -> /
Question 127. What will be the output of the following PHP code ?
  1.    $winner$looser
  2.    $looser
  3.    \
  4.    $looser
 Discuss Question
Answer: Option C. -> \
Question 128. 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 129. 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 130. 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

Latest Videos

Latest Test Papers