PHP Quiz

0

PHP Quiz

An MCQ Quiz for PHP Interviewers

1 / 30

What will be the output of the code below?


2 / 30

Which of the following code will print the output of 939?

3 / 30

What will be the output of the code below?


4 / 30

What will be the output of the code below?



5 / 30

_______ represents Unix timestamp for date.

6 / 30

What is the function of the date create() function?

7 / 30

What will be the output of the code below?


8 / 30

What will be the output of the code below?


9 / 30

Which of the following code will output "John lives in Paris."

10 / 30

Which of the following is an example of a random number generator?

11 / 30

What will be the output of the code below?


12 / 30

Which of the operator is used for concatenation assignment?

13 / 30

What will be the output of the code below?


14 / 30

What will be the output of the code below?


15 / 30

We can create an array constant in PHP by using

16 / 30

Which of the following code will print the output "Hello World!"?

17 / 30

In PHP, constants are

18 / 30

What will be the output of the below code?


19 / 30

In PHP, we can output results by

20 / 30

What is the purpose of the keyword "unset"?

21 / 30

Array with named keys are known as

22 / 30

What will be the output of the code below?

";
echo "My apartment is " . $COLOR . "
";
echo "My house is " . $coLOR . "
";
?>


23 / 30

How many variable scopes are there in PHP?

24 / 30

Which of the following code will print output 8?

25 / 30

Keywords, classes, and functions in PHP are

26 / 30

What will be the output of the following code?


27 / 30

PHP script can be placed

28 / 30

What will be the output of the following code?

";
echo "I'm about to learn PHP!
";

?>


29 / 30

What is the correct syntax for PHP hello world program?

30 / 30

The PHP files can be save by ________ extension.

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.