wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Progate Technical Drill PHP

Total questions: 15

Worksheet time: 8mins

Name
Class
Date
1.

PHP is a ____________ language?

a)

user-side scripting

b)

client-side scripting

c)

server-side scripting

d)

Both B and C

2.

The term PHP is an acronym for:_______________.

a)

Hypertext Preprocessor

b)

Hypertext multiprocessor

c)

Hypertext markup Preprocessor

d)

Hypertune Preprocessor

3.

Who among this is the founder of php language?

a)

Tim Berners-Lee

b)

Brendan Eich

c)

Guido van Rossum

d)

Rasmus Lerdorf

4.

In which year php was created?

a)

1993

b)

1994

c)

1995

d)

1996

5.

PHP files have a default file extension of_______.

a)

.html

b)

.xml

c)

.php

d)

.hphp

6.

Which of the following is the correct syntax of php?

a)

<?php >

b)

<php >

c)

?php ?

d)

<?php ?>

7.

Which of the following is the latest version of php?

a)

7.1

b)

7.2

c)

7.3

d)

7.4

8.

Which of the below statements is equivalent to $sub -= $sub?

a)

$sub = $sub

b)

$sub = $sub -$sub

c)

$sub = $sub - 1

d)

$sub = $sub - $sub - 1

9.

Which statement will output $lfc on the screen?

a)

echo "$lfc";

b)

echo "$$lfc";

c)

echo "/$lfc";

d)

echo "$lfc;";

10.

Variable names in PHP must start with?

a)

letter

b)

underscore

c)

no numbers

d)

All of the above

11.

Objects are defined as instances of user defined classes that can hold ____________?

a)

values

b)

functions

c)

both values and functions

d)

None of the above

12.

How many types of functions are available in php?

a)

5

b)

4

c)

3

d)

2

13.

Which of the following is not a built-in function in PHP?

a)

print_r()

b)

fopen()

c)

fclosed()

d)

gettype()

14.

Objects are defined as instances of user defined classes that can hold ____________?

a)

values

b)

functions

c)

both values and functions

d)

None of the above

15.

Why trim() function is used in PHP?

a)

to remove whitespaces

b)

to remove lowercase alphabet

c)

to remove uppercase alphabet

d)

to remove underscore