Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

php3

Total questions: 28

Worksheet time: 28mins

Name
Class
Date
1.

What will be the output of the following PHP code?

a)

hi

b)

hello

c)

error

d)

no output

2.

What will be the output of the following PHP code?

a)

hihellohi1

b)

hi

c)

hihello

d)

hi1

3.

What will be the output of the following PHP code?

a)

hihellohi1

b)

hi

c)

hihello

d)

hello

4.

What will be the output of the following PHP code?

a)

hihellohi1

b)

hi

c)

hihello

d)

hello

5.

What will be the output of the following PHP code?

a)

error

b)

hi

c)

hihello

d)

hello

6.

What will be the output of the following PHP code?

a)

1hello

b)

1hi

c)

1hi1

d)

error

7.

What will be the output of the following PHP code?

a)

hello

b)

hi

c)

no output

d)

error

8.

What will be the output of the following PHP code?

a)

hello

b)

hi

c)

Bonjour

d)

no output

9.

What will be the output of the following PHP code?

a)

infinite loop

b)

hi

c)

no output

d)

error

10.

What will be the output of the following PHP code?

a)

infinite loop

b)

hihello

c)

hello

d)

error

11.

What will be the output of the following PHP code?

a)

hi

b)

hihi

c)

hihihi

d)

hihihihi

12.

What will be the output of the following PHP code?

a)

hi

b)

hihi

c)

hihihi

d)

hihihihi

13.

What will be the output of the following PHP code?

a)

hihi

b)

hihihi

c)

hihihihi

d)

infinite loop

14.

What will be the output of the following PHP code?

a)

0

b)

1

c)

2

d)

3

15.

What will be the output of the following PHP code?

a)

1

b)

2

c)

3

d)

4

16.

What will be the output of the following PHP code?

a)

0

b)

01

c)

1

d)

infinite loop

17.

What will be the output of the following PHP code?

a)

hello

b)

infinite loop

c)

hihello

d)

error

18.

What will be the output of the following PHP code?

a)

0

b)

1

c)

Nothing

d)

error

19.

What will be the output of the following PHP code?

a)

0

b)

5

c)

Nothing

d)

error

20.

What will be the output of the following PHP code?

a)

1010

b)

105

c)

510

d)

error

21.

What will be the output of the following PHP code?

a)

0

b)

5

c)

Nothing

d)

Error

22.

What will be the output of the following PHP code?

a)

105

b)

510

c)

Nothing

d)

error

23.

What will be the output of the following PHP code?

a)

43

b)

943

c)

349

d)

439

24.

What will be the output of the following PHP code?

a)

437

b)

439

c)

349

d)

347

25.

What will be the output of the following PHP code?

a)

7

b)

9

c)

0

d)

error

26.

What will be the output of the following PHP code?

a)

3

b)

4

c)

5

d)

6

e)

error

27.

What will be the output of the following PHP code?

a)

104

b)

410

c)

1040

d)

4100

28.

What will be the output of the following PHP code?

a)

$winner/$looser

b)

/$looser

c)

/

d)

$looser