Logo

Php Questions Set 5:

Quiz Mode

 What is the maximum number of indexes on MyISAM table?
 

1
2
3
4

Solution:

Which keyword is used to inherit a subclass from a superclass in PHP?

1
2
3
4

Solution:

What does PHP stand for?

1
2
3
4

Solution:

Which PHP function is used to print information about variables in a human-readable way?

1
2
3
4

Solution:

 Which one of the following function checks for the existence of DNS records? 


1
2
3
4

Solution:

  What is the description of Error level E_ERROR? 

1
2
3
4

Solution:

How to disregard repeated error messages that occur within the same file and on the same line?

1
2
3
4

Solution:

What will be the output of the following PHP code?

 

<?php

  function sum($num1, $num2)

  {

     $total = $num1 + $num2;

     echo chr($total);

  }

  $var1 = "sum";

  $var1(5, 44);

?>

1
2
3
4

Solution:

Choose for the following program.



function foo()

{

$args = func_get_args();

foreach ($args as $k => $v)

echo "arg".($k+1).": $v\n"; 

}

}

foo()

foo("Hello")

foo("Hello","World","Bye");

1
2

Solution:

What will be the output of the following PHP code?

<?php

$str = "Hello! My name is Cameron Fox. Coffee?";

$find = array('/is/','/coffee/');

$replace = array('/was/','/tea/');

echo preg_replace($find, $replace, $str);

?>

1
2
3
4

Solution: