PHP Programming Quiz


Play this quiz that will help you to excel in PHP certification exams, placements etc. This PHP programming quiz consist of 10 questions that you need to solve in 10 minutes. We’ve specially designed this quiz so that you can quickly acquaint to the pattern of questions you can be asked in placement drives, certification exams etc. This PHP programming test enables you to assess your knowledge of PHP programming.

Take the Free Practice Test



PHP MCQs

Practice PHP MCQ Questions, which will help you to clear your PHP Programming related concepts and also helps you to prepare for placements, technical rounds, interviews, competitive exams etc.

PHP Quiz

Try Free PHP Quiz, to start a quiz you need to login first, after login you will get start quiz button and then by clicking on that you can start quiz. You will get 10 Minutes to answer all questions.

PHP Quiz

1. Which one of the following functions is used to determine whether a class exists?

exist()
exist_class()
class_exist()
__exist()

2. In PHP, caching is used to ________ page generation time.

maximize
minimize
full
remove

3. The class from which the child class inherits is called
(i) Child class
(ii) Parent class
(iii) Super class
(iv) Base class

Only (i)
(ii), (iii) and (iv)
Only (iii)
(ii) and (iv)

4. Regular expressions are nothing more than a sequence or pattern of characters itself.

TRUE
FALSE
Can be true or false
Can not say

5. In how many ways we can create strings in PHP?

1
2
3
4

6. In which year php was created?

1993
1994
1995
1996

7. A function name is not case-sensitive?

<?php 
  
function funclfc()  
{ 
    echo "This is letsfindcourse"; 
} 
  
// Calling the function 
funclfc(); 
  
?>

This is lfc
This is letsfindcourse
No Output
Error

8. What will be the syntax of defining the class?

class lfc ()
class lfc []
class lfc {}
lfc class{}

9. Operator ++ indicate?

Decrement operator
Increment operator
Modulus Operator
None of the above

10. PHP can create, open, read, write, delete, and close files on the server.

True
False
PHP can only create, open and close files on the server
PHP can read, write and delete files on the server

Results