PHP Data Types MCQs
PHP Data Types MCQs : This section focuses on "Data Types" in PHP. These Multiple Choice Questions (mcq) should be practiced to improve the PHP skills required for various interviews (campus interview, walk-in interview, company interview), placements, entrance exams and other competitive examinations.
1. How many different data types are available in php?
View Answer
2. How many compound data types are available in php?
View Answer
3. Which one is not a data type in PHP?
View Answer
4. The range of integers must lie between ___________?
View Answer
5. How many value does Boolean data type hold?
View Answer
6. Objects are defined as instances of user defined classes that can hold ____________?
View Answer
7. What will be the output of the following PHP code?
<?php
if(TRUE)
echo "This condition is TRUE";
if(FALSE)
echo "This condition is not TRUE";
?>
View Answer
8. What will be the output of the following PHP code?
<?php
$lfc = NULL;
echo $lfc;
?>
View Answer
9. What will be the output of the following PHP code?
<?php
$x1 = 10.58;
$x2 = 21.18;
$sum = $x1 + $x2;
echo $sum;
?>
View Answer
10. What will be the output of the following PHP code?
<?php
$intArray = array( 10, 20 , 30);
echo "First Element: $intArray[3]
";
?>
View Answer
Also check :