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.
chop()
Parse error
POST
&
2. Operators used to operate and assign
asort()
Hex
HTTP
+= or -= or *= or /=
3. Tag to end a php script
XOR
substr_count()
?>
client-side programing
4. allows you to split strings based on more complex rules
error_reporting (0)
for ($i = 0; $i < count($array); $i++) {statement(s);}
XOR
preg_split()
5. The prefix for a dynamic variable - also known as a variable variable
number_format()
define()
$$
array_merge()
6. Used to display errors in a particular script - should be placed at top of script.
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
7. The name of the #! used to designate the location of the PHP binary
number_format()
SEO
Shebang
strtok()
8. An array of variables passed with <input /> data
PHP
$_POST[]
strip_tags()
bin2hex()
9. 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_reporting (E_ALL | E_STRICT)
$_GET[]
server-side programing
ini_set ('display_errors', 1)
10. Used to find the amount of words in a string.
str_word_count()
===
htmlentities()
sort()
11. Search Engine Optimization
superglobal
is_numeric()
preg_match()
SEO
12. signed integer
int
WYSIWYG
$array[] = item
not
13. standard notation
single quotes
round() Function
WYSIWYG
decimal
14. Function used to round up to the highest integer
abs()
$var++ and $var
SGML
ceil()
15. Hyper Text Transfer Protocol
$_GET[]
HTTP
Object
float
16. To get time data
date()
ini_set ('display_errors', 1)
error_reporting (E_ALL)
strtok()
17. To get over quotation marks while using arrays
preg_split()
curly braces
0
WYSIWYG
18. The output of var_export((float)array());
POST
parentheses
sort()
0
19. Returns a string with backslashes in front of predefined characters
chop()
addslashes()
list()
mysql_fetch_array()
20. To sort by the keys while maintaining the correlation between the key and its value
number_format()
index
str_word_count()
ksort()
21. Used to encrypt values - it is a one-way encryption method
str_ireplace()
crypt()
.=
substr_count()
22. bitwise XOR
^
Error
getrandmax()
XOR
23. bitwise left shift
&
unset()
<<
loops
24. To set up error reporting
not
function error_reporting()
mysql_close($dbc)
DTD
25. container of both data and code
not
$array[] = item
Object
error_reporting (E_ALL)
26. bitwise AND
$varname[key]
list()
floor()
&
27. searches the subject for matches to a given pattern replaced with the given replacement text
preg_replace()
trim()
Shebang
index
28. Besides GET and POST ________ can be used to access data but $_POST and $_GET are more precise and therefore preferable.
Notice
$_REQUEST
HTTP
$_SESSION[]
29. Asynchronous Javascript And XML
.=
error_reporting (E_ALL & -E_NOTICE)
shuffle()
AJAX
30. TRUE or FALSE
boolean
bin2hex()
crypt()
$_GET[]
31. The seven main SQL (structured query language) functions are alter - create - delete - _______ - insert - select - update
drop
preg_split()
$$
Error
32. PHP has two conditional: if and ______.
single quotes
Object
unset()
switch
33. either hasn't yet been set or is assigned NULL value
$_POST[]
mysql
null
boolean
34. print $_SERVER will _____ work if you use the print function on arrays.
arsort()
abs()
strtok()
not
35. Similar to mysql_fetch_array() - but cannot be accessed by integer offset
Hex
HTTP
mysql_fetch_object()
abs()
36. When used the value can be passed safely through the URL (GET).
sort()
array_merge()
ASP
urlencode()
37. Used to check if a variable has any value (including 0 or FALSE or an empty string).
isset()
asort()
curly braces; ${$total}
$_REQUEST
38. The four main error types are:Notice - Warning - ________ and Error.
<<
the period; .
date()
Parse error
39. function Function used to create a random number
+= or -= or *= or /=
null
rand()
substr_count()
40. Function used to convert new lines in a variable from a form to <br /> tags so that the data can be formatted correctly.
ksort()
nl2br()
chop()
===
41. Variable names can begin with __________
asort()
echo
date()
underscores
42. Active Server Pages
ASP
PHP
error_reporting (0)
mysql
43. any programing language where the user must support the language the script is written in
error_reporting (0)
decimal
reassign
client-side programing
44. To determine the amount of elements in an array
SEO
function
count()
urlencode()
45. bitwise right shift
>>
variable
0
defined()
46. To iterate over the keys and values of an array
ksort()
foreach loop
$varname[key]
Parse error
47. To counter htmlentities()
html_entity_decode()
Notice
parentheses
Shebang
48. returns the number of matches found by a given search string under this format...
+= or -= or *= or /=
mysql_fetch_object()
preg_match()
$_GET[]
49. Define(NAME,value)
Constant
single quotes
null
?>
50. Creates a pointer to a file with the declared mode (read - write -etc.).
ini_set ('display_errors', 1)
===
urlencode()
fopen()