PHP interview questions and answers article for Datatype Integer. This will help you prepare for PHP certificate exam. Use the PHP online quiz test to prepare about PHP basic question about Integers which are generally used in beginner interview process.
This online PHP test include 10 Multi Choice questions related to PHP Integers.
True or False: Integers must be specified by a sign - or +
Correct!
Wrong!
-
Integer can be specified in which of the below notations?
- Decimal (base 10)
- Octal (base 8) (precede with 0/zero)
- Hexadecimal (base 16) (precede the number 0x)
- Binary (base 2) (precede the number 0b)
Correct!
Wrong!
-
True or False: PHP does not support unsigned integers.
Correct!
Wrong!
-
Maximum value of integer data type for 32 bits signed and 64 bit are below:
- 10 billion, 8E18
- 8 billion, 10E18
- 2 billion, 9E18
- 2 billion, 6E18
Correct!
Wrong!
-
Data type integer size can be determined using below constant
- PHP_INT_SIZE
- PHP_INT_MAX
- PHP_INT_MIN
- PHP_SIZE_INT
Correct!
Wrong!
-
Integer overflow or beyond the bounds interpreted as which data type?
Correct!
Wrong!
-
What is output of below code?
var_dump((int) (25/7));
Correct!
Wrong!
-
What is beyond the boundaries of integer for 32-bit?
Correct!
Wrong!
-
What is beyond the boundaries of integer for 64-bit?
Correct!
Wrong!
-
What is output of below code?
(int) "53txt"
Correct!
Wrong!
-

PHP Interview Questions - Datatype: Integer
I got %%score%% of %%total%% right