NEW
Font size
WorksheetsModule 5 & Module 6
Total questions: 10
Worksheet time: 5mins
PHP server scripts are surrounded by delimiters, which?
<?php...?>
<&>...</&>
<?php>...</?>
<script>...</script>
How do you write "Hello World" in PHP
echo "Hello World";
"Hello World";
Document.Write("Hello World");
All variables in PHP start with which symbol?
$
!
&
How do you get information from a form that is submitted using the "get" method?
$_GET[];
Request.QueryString;
Request.Form;
What is the correct way to add 1 to the $count variable?
$count++;
++count
count++;
$count =+1
Which one of these variables has an illegal name?
$my-Var
$myVar
$my_Var
With SQL, how do you select a column named "FirstName" from a table named "Persons"?
SELECT FirstName FROM Persons
EXTRACT FirstName FROM Persons
SELECT Persons.FirstName
With SQL, how can you insert a new record into the "Persons" table?
INSERT INTO Persons VALUES ('Jimmy', 'Jackson')
INSERT ('Jimmy', 'Jackson') INTO Persons
INSERT VALUES ('Jimmy', 'Jackson') INTO Persons
How can you change "Hansen" into "Nilsen" in the "LastName" column in the Persons table?
UPDATE Persons SET LastName='Nilsen' WHERE LastName='Hansen'
UPDATE Persons SET LastName='Hansen' INTO LastName='Nilsen'
MODIFY Persons SET LastName='Hansen' INTO LastName='Nilsen
MODIFY Persons SET LastName='Nilsen' WHERE LastName='Hansen'
With SQL, how can you delete the records where the "FirstName" is "Peter" in the Persons Table?
DELETE FROM Persons WHERE FirstName = 'Peter'
DELETE FirstName='Peter' FROM Persons
DELETE ROW FirstName='Peter' FROM Persons
