wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

TDP111 - Introduction to PHP

Total questions: 25

Worksheet time: 13mins

Name
Class
Date
1.

What is the purpose of Web Programming?

a)

a) To install computer programs

b)

b) To create computer parts

c)

c) To talk to computers

d)

d) To design the computer outlook

2.

What does web programming refer to?

a)

a) Writing

b)

b) Markup

c)

c) Coding

d)

d) All of the above

3.

Is PHP a language to talk to computers?

a)

a) Yes

b)

b) No

c)

c) Not Sure

d)

d) I think so

4.

What does PHP stand for?

a)

a) PHP: Hypertext Password

b)

b) PHP: Hypertext Preprocessor

c)

c) PHP: Hype Preprocessor

d)

d) PHP: Hypertexting Preprocessor

5.

Which of these websites uses PHP?

a)

a) YouTube

b)

b) Facebook

c)

c) Instagram

d)

d) All of the above

6.

Which of these is NOT a web programming language?

a)

a) PHP

b)

b) HTML

c)

c) LML

d)

d) Perl 5

7.

What is NOT a feature of PHP?

a)

a) Generate dynamic page content

b)

b) Collect form data

c)

c) Send or receive cookies

d)

d) Code by itself

8.

Why do so many people use PHP?

a)

a) Available on a lot of platforms

b)

b) Hard to use so can provide a challenge

c)

c) Cost price is below RM10 but above RM2

d)

d) Most efficient language

9.

What does a PHP file contain?

a)

a) text

b)

b) HTML

c)

c) Javascript

d)

d) All of the above

10.

Which is the correct PHP tag?

a)

a) <?php … ?>

b)

b) <php … >

c)

c) <?phpp … ?>

d)

d) <!php … !>

11.

In the PHP syntax, what symbol can represent a variable name?

a)

a) ?

b)

b) *

c)

c) //

d)

d) $

12.

Which are PHP Arithmetic Operators?

a)

a) +

b)

b) /

c)

c) *

d)

d) All of the above

13.

Which is an increment operator?

a)

a) +

b)

b) *

c)

c) ++

d)

d) **

14.

Which of these web languages is NOT a front-end language?

a)

a) Javascript

b)

b) HTML

c)

c) CSS

d)

d) PHP

15.

Which of the following is a language for building websites ?

a)

a) C+

b)

b) Bava

c)

c) C++

d)

d) PHP

16.

What are the advantages of PHP?

a)

a) Run fast

b)

b) Code is hidden

c)

c) Interactivity decreased

d)

d) Cheap

17.

Which is NOT a part of a conditional statement?

a)

a) if

b)

b) else if

c)

c) for

d)

d) else

18.

Is PHP the same as Javascript?

a)

a) No

b)

b) Yes

c)

c) Maybe

d)

d) Not sure

19.

What type of arrays are there?

a)

a) Numeric array

b)

b) Associative array

c)

c) Multidimensional array

d)

d) All of the above

20.

Which is not part of a Loop statement?

a)

a) while

b)

b) do….. while

c)

c) loop each….

d)

d) foreach

21.

Which is the best local server for web development?

a)

a) WAMP

b)

b) XAMPP

c)

c) Both also very good

d)

d) Both also not good

22.

What is MySQL ?

a)

a) Data Storage

b)

b) Programming Language

c)

c) Database Management System

d)

d) Server

23.

Which is a common MySQL command?

a)

a) Select

b)

b) Delete

c)

c) Create Table

d)

d) All of the above

24.

What is not an essential component of LAMP stack ?

a)

a) Javascript

b)

b) Apache

c)

c) MySQL

d)

d) PHP

25.

Which is the extension used by MySQL ?

a)

a) MySQLi

b)

b) PHP

c)

c) Javascript

d)

d) CSS