Warning: Undefined array key "options" in /home/bapugrap/public_html/quiz/wp-content/plugins/elementor-pro/modules/theme-builder/widgets/site-logo.php on line 192
PHP Online Quiz Question and Answers - Web and Graphics Quiz

share

PHP Online Quiz Question and Answers

PHP Online Quiz Question and Answers

PHP Online Quiz Question and Answers

PHP Online Quiz Question and Answers

 

Find below MCQ (Multiple Choice) questions and Answers for PHP Online Quiz Question and Answers. Play our PHP Online Quiz Question and Answers and Earn points and check how sharp your skill are in PHP Framework

Welcome to your PHP Online Quiz Question and Answers

Name
Email
Mobile

1.  $str="3dollars";
$a=20;
$a+=$str;
print($a);
?>
Output ?

2. <?php
function zz(& $x)
{
$x=$x+5;
}
?>
$x=10;
zz($x);
echo $x;

3. <?php
echo $_SERVER['REMOTE_ADDR'];
?>

4. <?php
$x=dir(".");
while($y=$x->read())
{
echo $y."
"
}
$y->close();
?>

What is the following output?

5. <?php
$qpt = 'QualityPointTechnologies';
echo preg_match("/^Quality/", $qpt);
?>

Output will be 1

6. <?php
$test="3.5seconds";
settype($test,"double");
settype($test,"integer");
settype($test,"string");
print($test);
?>

The following output will be 3

7. <?php
$x=array(2=>"mouse",7=>"keyboard");
$y=array_keys($x);
echo $y[1];
?>

Guess the correct output

8. $data="98.8degrees";
(double)$data;
(int)$data;
(string)$string;
echo $data;
?>

9. PHP is

10. <?php
$x="101.5degrees";
(double)$x;
(int)$x;
echo (string)$x;
?>

Leave a Reply

Your email address will not be published. Required fields are marked *