WorksheetsWT Slip Test - 1
Total questions: 10
Worksheet time: 5mins
What type of language is PHP
Client Side
Server Side
Browser Side
Web Side
PHP is executed on
The Server
The Browser
The Website
The Machine
Sometimes we only want certain code to execute if a condition is true. How do we test for that?
Loop
If Statement
Integer
Variable
What is a integer?
It's a Whole Number
It's a Decimal Number
It's a True or False Declaration
It's a String of Text
$colours = array("black, blue, Red, Green") - How do I access "Red" ?
$colours[0];
$colours[2];
$colours[1]
$colours[3];
Which one of the following statements is used to create a table?
CREATE TABLE table_name (column_type column_name);
CREATE table_name (column_type column_name);
CREATE TABLE table_name (column_name column_type);
CREATE table_name (column_name column_type);
Which of the following is the correct way to create a function in PHP?
Create myFunction()
New_function myFunction()
function myFunction()
None of the above
Which of the following is the correct way of defining a variable in PHP?
$variable name = value;
$variable_name = value;
$variable_name = value
$variable name as value;
Which of the below symbols is a newline character?
<br>
\n
/n
\r
Which of the following is the correct way to create an array in PHP?
$season = array["summer" , "winter" , "spring" , "autumn"];
$season = array("summer" , "winter" , "spring" , "autumn");
$season =( "summer" , "winter" , "spring" , "autumn");
All of the above
