Logo

Php Questions Set 54:

Quiz Mode

The correct syntax of a PHP code is ____

1
2
3
4

Solution:

 What will be the output of the following PHP code? 

 

<?php

echo chr(52);

?>

1
2
3
4

Solution:

 What will be the output of the following PHP code?

 

<?php

echo ord ("hi");

?> 

1
2
3
4

Solution:

 The updated MySQL extension released with PHP 5 is typically referred to as _______________ 

1
2
3
4

Solution:

 Which one of the following methods is responsible for sending the query to the database? 

1
2
3
4

Solution:

Which of the following advanced object-oriented programming (OOP) features is/are not supported by PHP?

1
2
3
4

Solution:

 Which feature allows us to call more than one method or function of the class in single instruction? 

1
2
3
4

Solution:

Which one of the following does not describe a validating filter?

1
2
3
4

Solution:

 

In which of the following situations does file-based authentication become inconvenient.

i) small list
ii) large number of user
iii) users are being regularly added
iv) static authentication

1
2
3
4

Solution:

What is the output of the following PHP code?

<?php

$num = "123";

if (!filter_var($num, FILTER_VALIDATE_INT))

echo("Integer is not valid");

else

echo("Integer is valid");

?>

1
2
3
4

Solution: