PHP number handling

MCQsQuestion.com has 6 Question/Answers about Topic PHP number handling

Mt_rand ( ) function produces a better random value, and is 4 times faster than

Mt_rand ( ) function produces a better random value, and is 4 times faster than
  • A. Assignment function
  • B. Boolean function
  • C. Comparison functions
  • D. rand ( ) function
  • Correct Answer: Option D

Example of random number function is/are

Example of random number function is/are
  • A. strand ( )
  • B. getrandmax ( )
  • C. mt_rand ( )
  • D. All of them
  • Correct Answer: Option D

=== operator is true if its two arguments are exactly

=== operator is true if its two arguments are exactly
  • A. Equal
  • B. Opposite
  • C. Has same type
  • D. Both A and C
  • Correct Answer: Option D

Intval ( ) function is used for

Intval ( ) function is used for
  • A. Converting argument to integers
  • B. Converting arguments to characters
  • C. Converting arguments to strings
  • D. None of them
  • Correct Answer: Option A

Increment operator have two flavors one is postincrement and

Increment operator have two flavors one is postincrement and
  • A. preincrement
  • B. postdecrement
  • C. lastincrement
  • D. None of them
  • Correct Answer: Option A

PHP does automatic conversion of

PHP does automatic conversion of
  • A. Functions
  • B. Numerical types
  • C. Arrays
  • D. None of them
  • Correct Answer: Option B