SUBJECTS
|
BROWSE
|
CAREER CENTER
|
POPULAR
|
JOIN
|
LOGIN
Business Skills
|
Soft Skills
|
Basic Literacy
|
Certifications
About
|
Help
|
Privacy
|
Terms
|
Email
Search
Test your basic knowledge |
Php Programming Basics
Start Test
Study First
Subject
:
it-skills
Instructions:
Answer 50 questions in 15 minutes.
If you are not ready to take this test, you can
study here
.
Match each statement with the correct term.
Don't refresh. All questions and answers are randomly picked and ordered every time you load a test.
This is a study tool. The 3 wrong answers for each question are randomly chosen from answers to other questions. So, you might find at times the answers obvious, but you will see it re-enforces your understanding as you take the test each time.
1. standard notation
decimal
reassign
Shebang
switch
2. $_SERVER - $_POST - $_GET - $_COOKIE - $_SESSION - $_ENV; special arrays.
error_reporting (E_ALL & -E_NOTICE)
Hex
boolean
superglobal
3. The concatenation operator?
Error
WYSIWYG
the period; .
boolean
4. To remove all HTML and PHP tags.
echo
$$
strip_tags()
$_REQUEST
5. $_POST and $_GET are ________ variables.
float
predefined
curly braces; ${$total}
define()
6. either hasn't yet been set or is assigned NULL value
urlencode()
strip_tags()
null
variable
7. Document Type Definitions
true
switch
DTD
round() Function
8. Function used to round up to the highest integer
asort()
define()
Warning
ceil()
9. Search Engine Optimization
array
error_reporting (0)
Parse error
SEO
10. Function used to round down to the lowest integer
reassign
strtok()
floor()
numbers
11. Control structures that break exit
sql
the period; .
the dollar sign $
if/elseif/else and switch statements
12. This fatal error arises from memory allocation problem.
round() Function
number_format()
Error
the dollar sign $
13. a line of information that can be stored in a variable or used in a function or statement
predefined variable
client-side programing
bin2hex()
string
14. To sort the values while maintaining the correlation between each value and its key
asort()
variable
addcslashes()
mysql_close($dbc)
15. Control structure that continue exit - they perform specific statements for a determined number of iterations.
loops
curly braces
ini_set ('display_errors', 1)
index
16. Returns a string with backslashes in front of predefined characters
bin2hex()
urlencode()
drop
addslashes()
17. Use _______ for passwords or pages that would not be bookmarked or pages that require security.
+
string
POST
XML
18. To include files - _______ will give errors and _________ will terminate execution().
str_word_count()
$varname[key]
SGML
include() and require()
19. Use ______ when there are no variables in the string
curly braces
single quotes
define()
number_format()
20. container of both data and code
curly braces
error_reporting (E_ALL | E_STRICT)
getrandmax()
Object
21. Variable names can begin with __________
date()
curly braces; ${$total}
underscores
echo
22. TRUE or FALSE
predefined variable
Parse error
boolean
asort()
23. To check if a constant is already declared
ini_set ('display_errors', 1)
defined()
SEO
rsort()
24. The concatenation assignment operator?
.=
XML
===
WYSIWYG
25. Hyper Text Transfer Protocol
loops
HTTP
?>
array()
26. A data structure that can hold a number of items of data of the same type eg. a list of names
number_format()
echo
statement
array
27. signed floating-point value
unset()
ASP
string
float
28. Shorthand used to increment and decrement
chr()
control structure
$var++ and $var
fopen()
29. Function used to find the absolute value of a number or numeric variable
abs()
$$
include() and require()
$dbc = mysql_connect(hostname, username, password)
30. To delete a variable or an element of an array
function error_reporting()
isset()
bin2hex()
unset()
31. To counter htmlentities()
Error
html_entity_decode()
array()
predefined
32. Used to check if a given variable has an "empty" value - no value or 0 or FALSE.
SEO
function error_reporting()
empty()
general
33. To put a dollar sign before a variable like $10 where 10 is the variable's value - you can escape the first dollar sign; $$cost; or you can use __________.
curly braces; ${$total}
+= or -= or *= or /=
$_POST[]
htmlspecialchars()
34. Standard Generalized Markup Language
ksort()
SGML
Magic Constant
<<
35. To get over quotation marks while using arrays
string
defined()
curly braces
$_SESSION[]
36. Active Server Pages
ASP
server-side programing
Constant
rand()
37. The three types of loops in PHP are: for - while - ____.
substr_count()
for ($i = 0; $i < count($array); $i++) {statement(s);}
foreach
$array[] = item
38. An array whose keys are numbers.
error_reporting (E_ALL)
error_reporting (E_ALL | E_STRICT)
indexed array
strtok()
39. To append elements to an array - this will assign item to the next available index; associative arrays get messy.
DTD
boolean
the period; .
$array[] = item
40. any programing language where the script is parsed on the server
$$
preg_split()
server-side programing
error_reporting (E_ALL | E_STRICT)
41. Used to find the length of a string
getrandmax()
string
strlen()
defined()
42. _____ is a logical operator
date()
Constant
str_ireplace()
XOR
43. a storage location in the computer's memory that has a type & a name and a contents
variable
boolean
float
double quotes
44. Function can you use to format a number with commas
E_STRICT
integer
array
number_format()
45. To refer to an item in an array
DTD
variable
$varname[key]
===
46. Used to convert all HTML tags into their entity versions.
rsort()
mysql_fetch_object()
htmlentities()
index
47. Tag to end a php script
mysql_fetch_array()
rsort()
?>
HTML
48. This will show all errors that fall under E_ALL or E_STRICT - the pipe | is used for 'or' so that errors that fall under either will be shown.
null
error_reporting (E_ALL | E_STRICT)
mysql_close($dbc)
===
49. The name of the #! used to designate the location of the PHP binary
predefined
curly braces
Shebang
$$
50. To merge arrays
number_format()
HTML
array_merge()
curly braces; ${$total}