• CALL US: +91-8561868421
  • Address: Plont No 67 OM Shiv Colony Jhotwara Jaipur-12

PHP Quiz

(Total Question : 30)

Q.1

What does PHP stand for?

Q.2

Who is the father of PHP?

Q.3

PHP files have a default file extension of.

Q.4

Which of the looping statements is/are supported by PHP?
i) for loop
ii) while loop
iii) do-while loop
iv) foreach loop

Q.5

We can use ___ to comment a single line?

Q.6

Which one of the following PHP functions can be used to build a function that accepts any number of arguments?

Q.7

Which one of the following PHP functions can be used to find files?

Q.8

The filesize() function returns the file size in ___.

Q.9

Which one of the following function is capable of reading a file into a string variable?

Q.10

Which one of the following function outputs the contents of a string variable to the specified resource?

Q.11

PHP?s numerically indexed array begin with position __.

Q.12

Which of the functions is used to sort an array in descending order?

Q.13

Which function will return true if a variable is an array or false if it is not?

Q.14

Which in-built function will add a value to the end of an array?

Q.15

Which function can be used to move the pointer to the previous array position?

Q.16

Which method scope prevents a method from being overridden by a subclass?

Q.17

PHP recognizes constructors by the name.

Q.18

Which version of PHP introduced the instanceof keyword?

Q.19

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

Q.20

Which one of the following is the right way to call a class constant, given that the class is mathFunction?

Q.21

How many error levels are available in PHP?

Q.22

What is the description of Error level E_ERROR?

Q.23

Which character do the error_reporting directive use to represent the logical operator NOT?

Q.24

How many predefined exceptions does SPL provide access to?

Q.25

Which function initializes the constants necessary for using the openlog(), clodelog(), and syslog() functions?

Q.26

How many functions does PHP offer for searching and modifying strings using Perl-compatible regular expressions.

Q.27

Which one of the following functions will convert a string to all uppercase?

Q.28

Which one of the following functions can be used to concatenate array elements to form a single delimited string?

Q.29

Which one of the following functions finds the last occurrence of a string, returning its numerical position?

Q.30

PHP has long supported two regular expression implementations known as ___ and ___.
(i) Perl
(ii) PEAR
(iii) Pearl
(iv) POSIX