Font size
WorksheetsPHP TEST 2
Total questions: 20
Worksheet time: 17mins
What does PHP stand for?
(a)
PHP server scripts are surrounded by delimiters, which?
How do you write "Hello World" in PHP
(a)
All variables in PHP start with which symbol?
(a)
What is the correct way to end a PHP statement?
(a)
The PHP syntax is most similar to
Java script
PERL and C
Visual Basic
VB Script
In PHP you can use both single quotes ( ' ' ) and double quotes ( " " ) for strings:
True
False
Include files must have the file extension
(a)
the correct HTML element for the largest heading is:
(a)
What is the correct HTML element for inserting a line break?
(a)
Which of the following array represents an array with strings as index?
Numeric Array
Associative Array
Multidimentional Array
CSS Stand for
(a)
loops through a block of code for each element in an array
(a)
executes some code if a condition is true and another code if that condition is false
(a)
Basic PHP Syntax
(a)
What are the two types of array in php
Indexed, sequence
Associative, sequence
Indexed, associative
None
$a=array(10=>"Jimmy",20=>"mummy");
Is an example of
Sequence array
Indexed array
Associative array
None
It is a server programming language and a powerful tool for creating dynamic and interactive web pages.
XAMPP
PHP
HTML
A variable can have a short name (like x or y) or a more descriptive name (age, name, volume_total)
true
false
You can have local variables with the same name in different functions, because local variables are only recognized by the function in which they are declared
true
false
