NEW
Font size
WorksheetsTDP111 - Introduction to PHP
Total questions: 25
Worksheet time: 13mins
What is the purpose of Web Programming?
a) To install computer programs
b) To create computer parts
c) To talk to computers
d) To design the computer outlook
What does web programming refer to?
a) Writing
b) Markup
c) Coding
d) All of the above
Is PHP a language to talk to computers?
a) Yes
b) No
c) Not Sure
d) I think so
What does PHP stand for?
a) PHP: Hypertext Password
b) PHP: Hypertext Preprocessor
c) PHP: Hype Preprocessor
d) PHP: Hypertexting Preprocessor
Which of these websites uses PHP?
a) YouTube
b) Facebook
c) Instagram
d) All of the above
Which of these is NOT a web programming language?
a) PHP
b) HTML
c) LML
d) Perl 5
What is NOT a feature of PHP?
a) Generate dynamic page content
b) Collect form data
c) Send or receive cookies
d) Code by itself
Why do so many people use PHP?
a) Available on a lot of platforms
b) Hard to use so can provide a challenge
c) Cost price is below RM10 but above RM2
d) Most efficient language
What does a PHP file contain?
a) text
b) HTML
c) Javascript
d) All of the above
Which is the correct PHP tag?
a) <?php … ?>
b) <php … >
c) <?phpp … ?>
d) <!php … !>
In the PHP syntax, what symbol can represent a variable name?
a) ?
b) *
c) //
d) $
Which are PHP Arithmetic Operators?
a) +
b) /
c) *
d) All of the above
Which is an increment operator?
a) +
b) *
c) ++
d) **
Which of these web languages is NOT a front-end language?
a) Javascript
b) HTML
c) CSS
d) PHP
Which of the following is a language for building websites ?
a) C+
b) Bava
c) C++
d) PHP
What are the advantages of PHP?
a) Run fast
b) Code is hidden
c) Interactivity decreased
d) Cheap
Which is NOT a part of a conditional statement?
a) if
b) else if
c) for
d) else
Is PHP the same as Javascript?
a) No
b) Yes
c) Maybe
d) Not sure
What type of arrays are there?
a) Numeric array
b) Associative array
c) Multidimensional array
d) All of the above
Which is not part of a Loop statement?
a) while
b) do….. while
c) loop each….
d) foreach
Which is the best local server for web development?
a) WAMP
b) XAMPP
c) Both also very good
d) Both also not good
What is MySQL ?
a) Data Storage
b) Programming Language
c) Database Management System
d) Server
Which is a common MySQL command?
a) Select
b) Delete
c) Create Table
d) All of the above
What is not an essential component of LAMP stack ?
a) Javascript
b) Apache
c) MySQL
d) PHP
Which is the extension used by MySQL ?
a) MySQLi
b) PHP
c) Javascript
d) CSS
