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. Use _______ for passwords or pages that would not be bookmarked or pages that require security.
POST
$_POST[]
function error_reporting()
sort()
2. The name of the #! used to designate the location of the PHP binary
<?php
isset()
Shebang
sql
3. To get time data
date()
urlencode()
$array[] = item
float
4. any programing language where the script is parsed on the server
rsort()
HTML
server-side programing
is_numeric()
5. Document Type Definitions
DTD
null
floor()
chr()
6. Returns a string with backslashes in front of the specified characters
negative numbers
addcslashes()
null
loops
7. Used to find the amount of words in a string.
reassign
Array
str_word_count()
is_numeric()
8. bitwise right shift
>>
index
ceil()
SGML
9. A data structure that can hold a number of items of data of the same type eg. a list of names
Object
floor()
array
mysql_fetch_object()
10. Standard Generalized Markup Language
mysql_fetch_array()
$array[] = item
SGML
chr()
11. This will show all error reporting.
double quotes
switch
list()
error_reporting (E_ALL)
12. a language in which to make querys to a database with
sql
rand()
mysql
list()
13. This fatal fatal is caused by a semantic mistake: omission of a semicolon or imbalance of quotations or parentheses or braces.
POST
ASP
SEO
Parse error
14. The four main error types are:Notice - Warning - ________ and Error.
GET
Parse error
curly braces
boolean
15. container of ordered data elements
error_reporting (E_ALL & -E_NOTICE)
HTTP
Array
float
16. An array whose keys are strings; also known as a hash.
predefined variable
precedence
array
associative array
17. collection of binary data
string
+= or -= or *= or /=
mysql_fetch_array()
GET
18. When used the value can be passed safely through the URL (GET).
date()
urlencode()
single quotes
variable
19. An array whose keys are numbers.
defined()
indexed array
shuffle()
$$
20. Variable names can begin with __________
underscores
string
htmlentities()
SGML
21. The seven main error reporting constants are: E_NOTICE - E_WARNING - E_PARSE - E_ERROR - E_ALL - _____ - E_DEPRECATED
E_STRICT
for ($i = 0; $i < count($array); $i++) {statement(s);}
+= or -= or *= or /=
loops
22. Use ______ for search engines or catalogued pages or pages that would be bookmarked.
str_ireplace()
$$
GET
is_numeric()
23. To sort by the keys while maintaining the correlation between the key and its value
switch
ksort()
shuffle()
+
24. Function can you use to format a number with commas
strip_tags()
number_format()
predefined variable
isset()
25. What You See Is What You Get
function error_reporting()
Hex
Constant
WYSIWYG
26. To assign array element values to individual variables
==
list()
open source
curly braces
27. Similar to mysql_fetch_array() - but cannot be accessed by integer offset
WYSIWYG
$_GET[]
if/elseif/else and switch statements
mysql_fetch_object()
28. any programing language where the user must support the language the script is written in
asort()
octal
number_format()
client-side programing
29. ___________ can be used with substr() to count backward
$array[] = item
negative numbers
crypt()
&
30. To delete a variable or an element of an array
wordwrap()
defined()
Hex
unset()
31. standard notation
Array
$_POST[]
ASP
decimal
32. $_SERVER - $_POST - $_GET - $_COOKIE - $_SESSION - $_ENV; special arrays.
superglobal
true
chop()
parentheses
33. does a certain action when called upon
mysql_fetch_array()
function
HTTP
include() and require()
34. Use ______ when a variable contains any amount of variables; in general.
mysql_close($dbc)
Error
double quotes
str_ireplace()
35. a type with two possible values: true and false
double quotes
preg_split()
array()
boolean
36. Tag to begin a php script
mysql_fetch_object()
count()
decimal
<?php
37. 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.
Error
chr()
boolean
error_reporting (E_ALL | E_STRICT)
38. Use ______ when there are no variables in the string
array()
single quotes
boolean
string
39. print $_SERVER will _____ work if you use the print function on arrays.
not
indexed array
$array[] = item
wordwrap()
40. To get over quotation marks while using arrays
addcslashes()
loops
curly braces
server-side programing
41. The order of operations.
==
count()
loops
precedence
42. Uses two arguments: constant name and constant definition
parentheses
isset()
define()
number_format()
43. The concatenation operator?
str_ireplace()
0
the period; .
isset()
44. This will not show error reporting - it will be turned off.
===
&
getrandmax()
error_reporting (0)
45. Control structure that continue exit - they perform specific statements for a determined number of iterations.
Array
mysql_fetch_object()
loops
integer
46. The ouput of var_export((bool)"NULL");
htmlentities()
AJAX
==
true
47. To append elements to an array - this will assign item to the next available index; associative arrays get messy.
SEO
$array[] = item
single quotes
getrandmax()
48. An array of variables passed with <input /> data
SGML
chop()
single quotes
$_POST[]
49. either hasn't yet been set or is assigned NULL value
^
null
empty()
$varname[key]
50. function Function used to create a random number
rand()
array()
foreach
empty()