Professional Documents
Culture Documents
| ALL IN SOURCE |
- A.C.M.
- A.C.M.
- A.C.M.
<?php
echo "Hello World 1";
// echo "Hello World 2";
?>
What data type will PHP automatically convert the following integer (a number variable)
variable to:? $aVariable = 99;
Which of the following is the incorrect way to declare a PHP $a Variable;
variable?
All variables in PHP start with a $(dollar) sign? True
What data type will PHP automatically convert the following string (a text variable)
variable to: $aVariable = "Robert";
All text to the right of a single line comment is not ignored? False
The following comparison condition would return TRUE or True
FALSE:(3 <> 6)
The following example $x -= $y; is the same as? $x = $x – $y;
The logical operator || stands for? OR
The following condition will return TRUE or FALSE: !(3 >= 3 || False
8 < 1)
The following condition will return TRUE or FALSE ( (2 >= 2 True
&& 8 < 1) || (11 == 33 || 5 > 3) )
The following condition will return TRUE or FALSE:(7 >= 7 && False
9 < 2)
The logical operator && stands for? AND
The logical operator ! stands for? NOT
If the variable $x = 11; , what will $x equal if it is incremented, 12
that is, if I write $x++; what value will $x contain after it has
been incremented?
The following condition will return TRUE or FALSE: (7 >= 7 False
&& 9 < 2)
True or False - The operator AND, when used to link two True
concept terms (e.g. children and violence) will retrieve only
those records that contain both concept terms
The concatenation operator in PHP? .
Tag is used to group block-elements to format them with CSS. div
Identification. Write your answer on the space provided. +, -, *, arithmetic operators
/, %, are all examples of what category of operators
True or False - The following search statement will exclude False
any records that contain the term "poodle." (dogs OR canines)
NOT cats.
If I wanted to concatenate a word to a string variable I would .
use which symbol?
True or False - Using the operator AND to combine concept False
terms is a good way to increase the number of records
retrieved in a search.
Symbol use as identical ===
True or False - The operator OR, when used to link two or False
concept terms will retrieve fewer records because both terms
need not be present in each article.
- A.C.M.
abcd
No output
Error
Error
- A.C.M.
error
######### [ 9 hash]
Infinite loop
error
- A.C.M.
error
No output
- A.C.M.
{
print$x;
}
?>
What will be the output of the following PHP code ? red
<?php green
$colors=array("red","green","blue","yellow"); blue
foreach($colors as $value) yellow
{
echo "$value<br>";
}
What will be the output of the following PHP code ? After for loop
<?php
for(1;$i==1;$i=2)
print"In for loop ";
print"After loop\n";
?>
What will be the output of the following PHP code ? no output
<?php
$x;
for($x=-3;$x<-5;++$x)
{
print++$x;
}
?>
What will be the output of the following PHP code ? *********
<?php
for($x=1;$x<10;++$x)
{
print"*\t";
}
?>
What will be the output of the following PHP code ? error
< ?php
$i = 0;
for ($i)
{
print$i;
}
?>
What will be the output of the following PHP code ? In for loop In for loop In for
<?php loop In for loop......infinitely
for($i==2;++$i==$i;++$i)
print"In for loop ";
print"After loop\n";
?>
- A.C.M.
Chr(65)
error
- A.C.M.
Cos(0)
Chr(49)
AMA University
- A.C.M.
- A.C.M.
1: 2, 2: 20, 3: 16
Hello World
infinitive
The PHP If Else Statement can execute the code within the if False
and else segments at the same time?
If the variable $x = 10; , what will $x equal if it is incremented, 11
that is, if I write $x++; what value will $x contain after it has
been incremented?
The logical operator && stands for? AND
Syntax Error
- A.C.M.
The PHP If Statement will only execute the code within it's False
curly braces if the if condition is FALSE?
The logical operator || stands for? OR
The logical operator ! stands for? NOT
What is the output of the following code? 4
$a=1;
++$a;
$a*=$a;
echo $a- -;
Hello world
- A.C.M.
Hello YouTube
- A.C.M.
- A.C.M.
30
- A.C.M.
following?
In an SQL SELECT statement querying a single table, the all columns of the table are to
asterisk (*) means that: be returned.
The SQL keyword BETWEEN is used: for ranges.
Which of the following is the correct order of keywords for SELECT, FROM, WHERE
SQL SELECT statements?
Which of the following statement is not true about MySQL it can be used to delete only
DROP command? data but not structure of a table
Acts like a WHERE clause but
The HAVING clause does which of the following? is used for groups rather than
rows.
Which of the following are the five built-in functions provided COUNT, SUM, AVG, MAX,
by SQL? MIN
When three or more AND and OR conditions are combined, it Both IN and NOT IN.
is easier to use the SQL keyword(s):
Which SQL statement is used to insert new data in a INSERT INTO
database?
SELECT NAME FROM
Find the SQL statement below that is equal to the following:
CUSTOMER WHERE STATE
SELECT NAME FROM CUSTOMER WHERE STATE = 'VA';
IN ('VA');
DELETE FROM CUSTOMER
The command to remove rows from a table 'CUSTOMER' is:
WHERE ...
To remove duplicate rows from the results of an SQL SELECT DISTINCT
statement, the ________ qualifier specified must be included
With SQL, how do you select a column named "FirstName" SELECT FirstName FROM
from a table named "Persons"? Persons
Which of the following is the original purpose of SQL? All of the above.
Return those rows from the
What does the following MySQL command do? table author in which the name
SELECT * FROM author WHERE auth_name LIKE 'W%'; of the author starts with the
character 'W
Which SQL statement is used to delete data from a database? DELETE
The SQL statement that queries or reads data from a table is SELECT
________ .
SELECT checks which
Which one of the following denotes the difference between
database is currently selected,
SELECT and USE command?
USE selects a database
has a distinct form that cannot
A subquery in an SQL SELECT statement
be duplicated by a join.
All of the above can be done
MYSQL can be used to:
by MYSQL.
Which one of the following denotes the default mysql date YYYY-MM-DD
format?
a count of number of non-
MySQL COUNT() function returns NULL values of a given
expression
To sort the results of a query use: ORDER BY.
Consider the following snippet code var string1 = "123"; var 123123
- A.C.M.