wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Who Wants To Be a Programmer?

Total questions: 10

Worksheet time: 5mins

Name
Class
Date
1.

Apakah kepanjangan dari PHP?

a)

PHP: Hypertext Markup Language

b)

PHP: Cascading Style Sheet

c)

PHP: Hypertext Preprocessor

d)

PHP: Hypertext Processor

2.

Kode program PHP dijalankan pada sisi?

a)

On the client's web browser

b)

On the server where the website is hosted

c)

On the client's CPU

d)

On the Internet

3.

Websites that contain PHP coding have what file extension?

a)

index.html

b)

index.php

c)

index.htmlphp

d)

index.ppt

4.

What is the main reason people use PHP?

a)

The language is flexible and highly dynamic

b)

It looks better than other internet-based languages

c)

It's easy

d)

Because it's free

5.

How is PHP written into a webpage?

a)

Just like other html tags: <php> </php>

b)

Only in a separate file which is linked to the html page

c)

Using curled brackets {php} {/php}

d)

A PHP script starts with <?php and ends with ?>

6.

//comments written like this only span one line

a)

True

b)

False

7.

Each line of PHP code ends in what symbol?

a)

semicolon ;

b)

colon :

c)

square bracket ]

d)

none, there is no symbol

8.

PHP is case sensitive in what way?

a)

It's never case sensitive, don't worry about it.

b)

Only when referring to variables

c)

When referring to classes, functions or variables

d)

All the time!

9.

When concatenating strings, you use what symbol in PHP?

a)

A comma ,

b)

A plus sign +

c)

a hyphen -

d)

a full stop .

10.

What symbol represents the name for a variable?

a)

$variable

b)

#variable

c)

!variable

d)

?variable