PHP Quiz

The test contains some questions and there is no any time limit..

The test is not a official, it's only a simple way to see how much you know, or don't know, about PHP or how much your experience about php

Its a Test of your php knowledge

Count Your Score

You will get 1 point for each correct answer. At the end of the Quiz, your total score will be displayed.

Following quiz provides Multiple Choice Questions (MCQs) related to PHP. You will have to read all the given answers and click over the correct answer at the end of Page

Start the Quiz

Good luck!

Q 1 - Which of the following gives a string containing PHP script file name in which it is called?

A - $_PHP_SELF

B - $php_errormsg

C - $_COOKIE

D - $_SESSION

Q 5 - Which of the following function creates an array?

A - array()

B - array_change_key_case()

C - array_chunk()

D - array_count_values()

Q 3 - Which of the following type of variables are named and indexed collections of other values?

A - Strings

B - Arrays

C - Objects

D - Resources

Q 4 - Which of the following gives a string containing PHP script file name in which it is called?

A - $_PHP_SELF

B - $php_errormsg

C - $_COOKIE

D - $_SESSION

Q 6 - Which of the following is correct about PHP?

A - PHP is a recursive acronym for "PHP: Hypertext Preprocessor".

B - PHP is a server side scripting language that is embedded in HTML.

C - It is used to manage dynamic content, databases, session tracking, even build entire e-commerce sites.

D - All of the above.

Answer

Q1-Answer : A- Explanation $_PHP_SELF − A string containing PHP script file name in which it is called.

Q2-Answer : A- Explanation array() − Creates an array.

Q3-Answer : B- Explanation Arrays: are named and indexed collections of other values.

Q4-Answer : A- Explanation $_PHP_SELF − A string containing PHP script file name in which it is called.

Q5Answer : C- Explanation Both of the above options are correct.

Q-6 Answer : D- Explanation All of the above options are correct.