Logo

Php Questions Set 67:

Quiz Mode

Which one of the following property scopes is not supported by PHP?

1
2
3
4

Solution:

What does PDO stand for?

1
2
3
4

Solution:

 Which method is used to tweak an object’s cloning behavior? 

1
2
3
4

Solution:

In PHP  the ____ file mode  open a file for read-only. File pointer starts at the beginning of the file 

1
2
3
4

Solution:

 Which one of the following function is capable of reading a file into an array?

1
2
3
4

Solution:

Which function returns the port number of a specified service?

1
2
3
4

Solution:

What is the default number of seconds that cached session pages are made available before the new pages are created? 

1
2
3
4

Solution:

  If the directive session.cookie_lifetime is set to 3600, the cookie will live until ____________

1
2
3
4

Solution:

How do you correctly access a class constant named PI in the mathFunction class?

1
2
3
4

Solution:

 What will be 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: