SUBJECTS
|
BROWSE
|
CAREER CENTER
|
POPULAR
|
JOIN
|
LOGIN
Business Skills
|
Soft Skills
|
Basic Literacy
|
Certifications
About
|
Help
|
Privacy
|
Terms
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. To sort the values while maintaining the correlation between each value and its key - in reversed order
arsort()
ASP
octal
>>
2. This error refers to a variable with no value.
function
&
foreach
Notice
3. To sort the values while maintaining the correlation between each value and its key
the dollar sign $
asort()
number_format()
addslashes()
4. identity
!= inequality
===
array()
POST
5. Used to check if a variable has any value (including 0 or FALSE or an empty string).
AJAX
sort()
predefined variable
isset()
6. To create an array
array()
string
true
?>
7. a type with two possible values: true and false
boolean
Array
foreach
client-side programing
8. To get over quotation marks while using arrays
$_SESSION[]
curly braces
Error
associative array
9. $_SERVER is a ________ variable.
ini_set ('display_errors', 1)
predefined
array
loops
10. Asynchronous Javascript And XML
AJAX
Shebang
preg_replace()
htmlentities()
11. The array that stores variables specific to a user's visit
string
$_SESSION[]
$_REQUEST
===
12. standard notation
variable
bin2hex()
Shebang
decimal
13. Predefined constants such as __LINE__ or __FILE__ or __FUNCTION__ or __CLASS__ and __METHOD__
function error_reporting()
Magic Constant
$array[] = item
predefined variable
14. Function that contains the highest value that rand() can have randomly
getrandmax()
XML
array()
curly braces; ${$total}
15. Variable names can begin with __________
underscores
XOR
strip_tags()
mysql_close($dbc)
16. Converts a string of ASCII characters to hexadecimal values
POST
Notice
foreach loop
bin2hex()
17. The ouput of var_export((bool)"NULL");
true
function error_reporting()
octal
$_POST[]
18. Control structures that break exit
mysql_fetch_array()
$varname[key]
if/elseif/else and switch statements
addcslashes()
19. An array whose keys are numbers.
negative numbers
int
switch
indexed array
20. To sort values of an array without regard to the keys
mysql
sort()
$dbc = mysql_connect(hostname, username, password)
string
21. To determine the amount of elements in an array
mysql
substr_count()
array_merge()
count()
22. The concatenation operator?
isset()
HTML
fopen()
the period; .
23. Use _______ for passwords or pages that would not be bookmarked or pages that require security.
preg_replace()
precedence
nl2br()
POST
24. Operators used to operate and assign
abs()
ceil()
predefined
+= or -= or *= or /=
25. A conditional or loop is a ________________.
XOR
control structure
rand()
shuffle()
26. Online applications and resources which are available to the general public with very few restrictions
addslashes()
chop()
1
open source
27. An array of variables passed with <input /> data
Parse error
open source
$_POST[]
null
28. Alias of rtrim()
chop()
sql
array_merge()
XOR
29. The prefix for a dynamic variable - also known as a variable variable
Warning
chop()
predefined
$$
30. The four main error types are:Notice - Warning - ________ and Error.
Parse error
crypt()
preg_replace()
$_SESSION[]
31. container of ordered data elements
double quotes
Array
Parse error
PHP
32. _________ can be used in conditional statements to set precedence
count()
rsort()
parentheses
0
33. To iterate over the values of an array
curly braces; ${$total}
==
substr_count()
for ($i = 0; $i < count($array); $i++) {statement(s);}
34. This fatal error arises from memory allocation problem.
control structure
$varname[key]
Error
nl2br()
35. $_POST and $_GET are ________ variables.
strtok()
numbers
list()
predefined
36. Search Engine Optimization
floor()
SEO
chop()
.=
37. The name of the #! used to designate the location of the PHP binary
E_STRICT
Shebang
preg_split()
unset()
38. The syntax for connecting to a database
$dbc = mysql_connect(hostname, username, password)
function error_reporting()
string
shuffle()
39. To append elements to an array - this will assign item to the next available index; associative arrays get messy.
$_POST[]
Parse error
decimal
$array[] = item
40. To assign keys to the values in an array
SGML
$varname[key]
foreach loop
array()
41. Similar to mysql_fetch_array() - but cannot be accessed by integer offset
mysql_fetch_object()
abs()
the escape character ''
.=
42. A data structure that can hold a number of items of data of the same type eg. a list of names
!= inequality
unset()
array
echo
43. To close a connection between a database
octal
ksort()
mysql_close($dbc)
echo
44. bitwise XOR
shuffle()
strlen()
^
mysql
45. Hyper Text Markup Language
Notice
HTML
mysql_fetch_object()
ini_set ('display_errors', 1)
46. 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}
defined()
ceil()
the escape character ''
47. To counter htmlentities()
predefined
html_entity_decode()
asort()
Parse error
48. Used to find the length of a string
strlen()
string
error_reporting (0)
the period; .
49. To refer to an item in an array
PHP
unset()
associative array
$varname[key]
50. This will show all error reporting except for notice errors.
ksort()
fopen()
error_reporting (E_ALL & -E_NOTICE)
SGML