Sail E0 Webinar

MCQs

Total Questions : 121 | Page 12 of 13 pages
Question 111. In PHP the integer 45 is stored exactly as 45. The floating point number 46.3 could be stored as.
  1.    46
  2.    none of above
  3.    46.3
  4.    46.2999999
 Discuss Question
Answer: Option D. -> 46.2999999
Question 112. What is the output of given statement?Print 17 % 3;
  1.    none of above
  2.    5.67
  3.    2
  4.    5.666667
 Discuss Question
Answer: Option C. -> 2
Question 113. 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.    if_numeric
  3.    is_number()
  4.    is_numeric()
 Discuss Question
Answer: Option D. -> is_numeric()
Question 114. What will be the output of the following PHP code ?$a = '12345';echo 'qwe{$a}rty';
  1.    error
  2.    qwe{$a}rty
  3.    no output
  4.    qwe12345rty
 Discuss Question
Answer: Option B. -> qwe{$a}rty
Question 115. PHP can automatically convert integers to floating point numbers and floating point numbers to integers.
  1.    FALSE
  2.    TRUE
 Discuss Question
Answer: Option B. -> TRUE
Question 116. The result of both the below expressions in PHP will be same:1) 3+4*22) (3+4)*2
  1.    TRUE
  2.    FALSE
 Discuss Question
Answer: Option B. -> FALSE
Question 117. 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 118. 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.    Floating point number
  2.    Integers
  3.    None of above
  4.    String
 Discuss Question
Answer: Option A. -> Floating point number
Question 119. Ceil(-2.1) would be
  1.    -3
  2.    -2
  3.    2
  4.    3
 Discuss Question
Answer: Option B. -> -2
Question 120. 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 libraries2. GMP libraries3. CBMath4. BCMath
  1.    Option 2 and 4
  2.    Option 2 and 3
  3.    Option 1 and 4
  4.    Option 3 and 4
 Discuss Question
Answer: Option A. -> Option 2 and 4

Latest Videos

Latest Test Papers