Logo

Php Questions Set 13:

Quiz Mode

 Which version of PHP introduced the E_STRICT Error level? 

1
2
3
4

Solution:

What does PECL stand for?

1
2
3
4

Solution:

What is the output of the given PHP code?

1
2
3
4

Solution:

Which of the following PHP functions is used to check the PHP configuration settings or your PHP setup?

1
2
3
4

Solution:

The practice of creating objects based on predefined classes is often referred to as _____.

1
2
3
4

Solution:

 In PHP the ______ statement takes all the text/code/markup that exists in the specified file and copies it into the file that uses the include statement. 

1
2
3
4

Solution:

What will be the output of the following PHP code?

 

<?php

   $op2 = "blabla";

   function foo($op1)

   {

     echo $op1;

     echo $op2;

   }

   foo("hello");

?>

1
2
3
4

Solution:

 Which one of the following lines need to be uncommented or added in the php.ini file so as to enable mysqli extension? 

1
2
3
4

Solution:

Why can the Foo() method not be overridden in a child class?

class A {

final function Foo() {

echo "A";

}

}

class B extends A {

function Foo() {

echo "B";

}

}

1
2
3
4

Solution:

What will be the output of the following code?


 <?php

    $var=300;

    $int_options = array("options"=>array ("min_range"=>0, "max_range"=>128));

    if (!filter_var($var, FILTER_VALIDATE_INT, $int_options))

        echo("Integer is not valid");

    else

        echo("Integer is valid");

    ?>

1
2
3
4

Solution: