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 +

TRUE
FALSE

Correct!

Wrong!

Integer can be specified in which of the below notations?

<div class="question_list_op">
<ul>
<li>Decimal (base 10)</li>
<li>Octal (base 8) (precede with 0/zero)</li>
<li>Hexadecimal (base 16) (precede the number 0x)</li>
<li>Binary (base 2) (precede the number 0b)</li>
</ul>
</div>
1
2,3
1,2,3
All of above
None of above

Correct!

Wrong!

True or False: PHP does not support unsigned integers.
TRUE
FALSE

Correct!

Wrong!

Maximum value of integer data type for 32 bits signed and 64 bit are below:

<div class="question_list_op">
<ul>
<li>10 billion, 8E18</li>
<li>8 billion, 10E18</li>
<li>2 billion, 9E18</li>
<li>2 billion, 6E18</li>
</ul>
</div>
1
2
3
4

Correct!

Wrong!

Data type integer size can be determined using below constant

<div class="question_list_op">
<ul>
<li>PHP_INT_SIZE</li>
<li>PHP_INT_MAX</li>
<li>PHP_INT_MIN</li>
<li>PHP_SIZE_INT</li>
</ul>
</div>
2,3
1,2,3
4
2,3,4

Correct!

Wrong!

Integer overflow or beyond the bounds interpreted as which data type?
Integer
Float
Number
Object

Correct!

Wrong!

What is output of below code?

<div class="question_list_op">var_dump((int) (25/7)); </div>
3
4
3.5
None of Above

Correct!

Wrong!

What is beyond the boundaries of integer for 32-bit?
+/-2.15e+9
2^31
2 billion
21474883648
All of Above

Correct!

Wrong!

What is beyond the boundaries of integer for 64-bit?
2^63
+/-9.22e+18
9E18
9223372036854775808
All of Above

Correct!

Wrong!

What is output of below code?

<div class="question_list_op">(int) "53txt"</div>
0
5
33
53

Correct!

Wrong!

Share the quiz to show your results !

Subscribe to see your results

PHP Interview Questions – Datatype: Integer

I got %%score%% of %%total%% right

%%description%%

%%description%%

Loading...