wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

php- basics

Total questions: 10

Worksheet time: 6mins

Name
Class
Date
1.

PHP is a____________side scripting language

a)

server

b)

browser

c)

client

2.

PHP stands for

a)

Hypertext processor

b)

Homepage processor

c)

Hypertext preprocessor

3.

Who is known as father of PHP

a)

Rasmus Lerdorf

b)

Brendan Eich

c)

Hakon Wium Lie

4.

Which of the following is not true?

a)

PHP can be used to develop web applications.

b)

PHP makes a website dynamic

c)

PHP can not be embedded into html.

5.

PHP scripts are enclosed within ___

a)

<php> . . . </php>

b)

<?php . . . ?>

c)

?php . . . ?php

6.

Variables used in php

a)

$a=5;

b)

var a=5;

c)

int a=5;

7.

_______ is a concatenation operator in php

a)

+ (plus)

b)

+=

c)

. (dot)

8.

PHP is a case sensitive

a)

TRUE

b)

FALSE

9.

Find the output

<?php

$x = 5;

{ $x = 10;

echo $x;

}

echo $x;

?>

a)

105

b)

510

c)

1010

10.

find the output

<?php

$x = 1;

$x += 1;


echo $x;

?>

a)

2

b)

1

c)

0