Logo

Php Questions Set 7:

Quiz Mode

What are the properties of the class in the code below?

1
2
3
4

Solution:

Which version of PHP introduced advanced Object-Oriented Programming (OOP) concepts?

1
2
3
4

Solution:

Which method is used to customize an object's cloning behavior?

1
2
3
4

Solution:

 Which function displays the web page’s most recent modification date?

1
2
3
4

Solution:

Which of the following components must be installed on your computer to run a PHP script?

1
2
3
4

Solution:

 

1. Which directive determines whether PHP scripts on the server can accept file uploads?

1
2
3
4

Solution:

Which PHP function operates similarly to fgets(), except that it also strips any HTML and PHP tags from the input?

1
2
3
4

Solution:

 What will be the output of the following PHP code? 

 

<?php

$fruits = array ("apple", "orange", "banana");

echo (next($fruits)); 

echo (next($fruits));

?>

1
2
3
4

Solution:

Which of the following statements causes PHP to disregard repeated error messages that occur within the same file and on the same line? 

1
2
3
4

Solution:

Which of the following statements is/are true about Constructors in PHP?

i) PHP 4 introduced class constructors.

ii) Constructors can accept parameters.

iii) Constructors can call class methods or other functions.

iv) Class constructors can call on other constructors.

1
2
3
4

Solution: