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. This will not show error reporting - it will be turned off.
mysql_close($dbc)
error_reporting (0)
client-side programing
array()
2. To counter htmlentities()
chop()
strip_tags()
ceil()
html_entity_decode()
3. function Function used to create a random number
rand()
urlencode()
echo
ceil()
4. $_POST Data sent using POST found is sent to _______
the period; .
superglobal
predefined variable
==
5. This will show all error reporting except for notice errors.
decimal
error_reporting (E_ALL & -E_NOTICE)
^
$_REQUEST
6. The concatenation assignment operator?
.=
is_numeric()
arsort()
decimal
7. Used to display errors in a particular script - should be placed at top of script.
8. An array of variables passed in the URL
$_GET[]
true
negative numbers
$_POST[]
9. bitwise AND
numbers
index
&
array_merge()
10. To reset an array _______ the array() function to the array
foreach loop
reassign
control structure
rand()
11. Returns a string with backslashes in front of predefined characters
rand()
addslashes()
chr()
$_SESSION[]
12. either hasn't yet been set or is assigned NULL value
bin2hex()
null
$var++ and $var
loops
13. To get over quotation marks while using arrays
curly braces
error_reporting (E_ALL)
==
ASP
14. Used to create a substring (referred to as a token) from a larger string
$_GET[]
error_reporting (E_ALL)
strtok()
Constant
15. The seven main SQL (structured query language) functions are alter - create - delete - _______ - insert - select - update
preg_match()
numbers
drop
$varname[key]
16. To delete a variable or an element of an array
$_POST[]
unset()
chr()
the dollar sign $
17. This error arises from misusing a function.
number_format()
list()
numbers
Warning
18. The name of the #! used to designate the location of the PHP binary
nl2br()
Shebang
int
?>
19. The syntax for connecting to a database
$dbc = mysql_connect(hostname, username, password)
reassign
abs()
Constant
20. ____ or key is referred to for a value within an array.
ceil()
client-side programing
null
index
21. searches the subject for matches to a given pattern replaced with the given replacement text
Object
^
preg_replace()
E_STRICT
22. To sort values of an array without regard to the keys
sort()
open source
error_reporting (E_ALL | E_STRICT)
Object
23. To include files - _______ will give errors and _________ will terminate execution().
include() and require()
client-side programing
ceil()
?>
24. Used to find the amount of words in a string.
XML
str_word_count()
boolean
$varname[key]
25. Use ______ when there are no variables in the string
PHP
single quotes
Hex
predefined
26. print $_SERVER will _____ work if you use the print function on arrays.
Constant
not
html_entity_decode()
date()
27. Returns a character from a specified ASCII value
arsort()
chop()
chr()
curly braces; ${$total}
28. Asynchronous Javascript And XML
int
AJAX
&
Notice
29. To get time data
string
date()
negative numbers
bin2hex()
30. used to round numeric values.
round() Function
error_reporting (E_ALL & -E_NOTICE)
octal
not
31. To iterate over the keys and values of an array
boolean
foreach loop
.=
precedence
32. Alias of rtrim()
E_STRICT
array()
Magic Constant
chop()
33. _____ is a logical operator
XOR
fopen()
drop
Notice
34. This will show all error reporting.
$dbc = mysql_connect(hostname, username, password)
+
asort()
error_reporting (E_ALL)
35. The order of operations.
precedence
drop
single quotes
XML
36. standard notation
array_merge()
DTD
decimal
error_reporting (E_ALL & -E_NOTICE)
37. The three types of loops in PHP are: for - while - ____.
SGML
the dollar sign $
HTML
foreach
38. This fatal error arises from memory allocation problem.
Error
include() and require()
Object
htmlentities()
39. To sort the values while maintaining the correlation between each value and its key
$varname[key]
Object
asort()
XOR
40. $_POST and $_GET are ________ variables.
getrandmax()
foreach loop
predefined
int
41. signed floating-point value
E_STRICT
float
array()
boolean
42. Control structures that break exit
if/elseif/else and switch statements
predefined variable
statement
Object
43. To declare a constant
is_numeric()
define()
$var++ and $var
HTTP
44. addition
control structure
the dollar sign $
+
date()
45. Standard Generalized Markup Language
indexed array
SGML
error_reporting (E_ALL | E_STRICT)
urlencode()
46. The ouput of var_export((bool)"NULL");
true
reassign
mysql_close($dbc)
not
47. The array that stores variables specific to a user's visit
$_SESSION[]
ksort()
POST
AJAX
48. Converts a string of ASCII characters to hexadecimal values
Shebang
bin2hex()
error_reporting (E_ALL & -E_NOTICE)
preg_match()
49. Besides GET and POST ________ can be used to access data but $_POST and $_GET are more precise and therefore preferable.
Notice
$_REQUEST
Magic Constant
$_POST[]
50. Used to encrypt values - it is a one-way encryption method
1
ini_set ('display_errors', 1)
crypt()
string