wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

PHPQUIZZ

Total questions: 19

Worksheet time: 18mins

Name
Class
Date
1.

What will be the output of the following PHP code?

a)

no output

b)

how are u

c)

hi

d)

error

2.

Which of the following is the default file extension of PHP files?

a)

.html

b)

.xml

c)

.ph

d)

.php

3.

What will be the output of the following PHP program?

a)

CSS

b)

error

c)

1HTML

d)

1CSS

e)

1JavaScript

4.

What will be the output of the following PHP program?

a)

PHP MCQ

b)

No output

c)

PHP Quiz

d)

PHP Quiz PHP MCQ PHP Program

5.

What will be the output of the following PHP program?

a)

error

b)

11

c)

12

d)

10

6.

Which of the following is the correct way to add a comment in PHP code?

a)

All of the mentioned

b)

/* */

c)

//

d)

#

7.

What will be the output of the following PHP code?

a)

error

b)

no output

c)

1000 PHP MCQ

d)

Welcome to Sanfoundry

8.

Which of the following is the correct syntax to write a PHP code?

a)

<? ?>

b)

< php >

c)

<?php ?>

d)

< ? php ?>

9.

What will be the output of the following PHP program?

a)

False

b)

True

c)

no output

d)

error

10.

What will be the output of the following PHP program?

a)

Hello....45 times

b)

Hello....36 times

c)

Hello....40 times

d)

Hello....50 times

11.

What will be the output of the following PHP program?

a)

555555555...infinitely

b)

54321

c)

5

d)

error

12.

What will be the output of the following PHP program?

a)

no output

b)

result is true

c)

result is 1

d)

error

13.

What will be the output of the following PHP program?

a)

Which One

b)

Is The

c)

Correct Answer

d)

I Wonder

14.

What will be the output of the following PHP code?

a)

false

b)

true

c)

no output

d)

error

15.

What will be the output of the following PHP code?

a)

$z

b)

1

c)

8

d)

15

16.

What will be the output of the following PHP code?

a)

11111212

b)

11111213

c)

11121213

d)

11111112

17.

What will be the output of the following PHP code?

a)

12345678910....1920

b)

12345678910....19

c)

20

d)

19

18.

What will be the output of the following PHP code?

a)

true 23

b)

true 32

c)

true 33

d)

no output

19.

What will be the output of the following PHP code?

a)

10

b)

no output

c)

error

d)

infinite loop