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. Converts a string of ASCII characters to hexadecimal values
defined()
curly braces; ${$total}
bin2hex()
&
2. Leading 0x: 0x13F or 0xA23
nl2br()
$dbc = mysql_connect(hostname, username, password)
variable
Hex
3. When used the value can be passed safely through the URL (GET).
urlencode()
define()
preg_split()
==
4. Similar to mysql_fetch_array() - but cannot be accessed by integer offset
str_word_count()
single quotes
mysql_fetch_object()
addcslashes()
5. EXtensible Markup Language
variable
XML
HTTP
date()
6. Used to replace a substring with another string - it is not case-sensitive.
str_ireplace()
sql
ASP
htmlspecialchars()
7. Online applications and resources which are available to the general public with very few restrictions
open source
integer
POST
curly braces
8. The output of var_export((float)array());
sql
ceil()
0
&
9. Tag to end a php script
?>
HTTP
0
Parse error
10. To sort the values while maintaining the correlation between each value and its key
null
rsort()
$var++ and $var
asort()
11. bitwise XOR
AJAX
server-side programing
^
abs()
12. $_SERVER is a ________ variable.
integer
define()
predefined
boolean
13. Alias of rtrim()
echo
<?php
chop()
$var++ and $var
14. This error refers to a variable with no value.
ksort()
Notice
ceil()
!= inequality
15. Control structure that continue exit - they perform specific statements for a determined number of iterations.
loops
Hex
error_reporting (E_ALL)
define()
16. A conditional or loop is a ________________.
strip_tags()
is_numeric()
control structure
foreach loop
17. says 'if' this then do this 'else' do this or 'while' this do this
statement
curly braces
HTML
$_SESSION[]
18. a database which is best supported by PHP
array()
mysql
HTML
shuffle()
19. Function used to round down to the lowest integer
array
floor()
list()
true
20. To determine the amount of elements in an array
count()
<<
<?php
Object
21. What You See Is What You Get
WYSIWYG
sql
foreach
error_reporting (E_ALL & -E_NOTICE)
22. _________ can be used in conditional statements to set precedence
general
$$
strip_tags()
parentheses
23. Define(NAME,value)
Constant
XML
str_word_count()
addslashes()
24. Document Type Definitions
precedence
DTD
array_merge()
single quotes
25. Function used to convert new lines in a variable from a form to <br /> tags so that the data can be formatted correctly.
nl2br()
$_POST[]
error_reporting (E_ALL | E_STRICT)
+
26. To assign array element values to individual variables
Warning
integer
SGML
list()
27. print $_SERVER will _____ work if you use the print function on arrays.
&
number_format()
Parse error
not
28. Variable names can begin with __________
error_reporting (0)
underscores
addcslashes()
fopen()
29. Function used to find the absolute value of a number or numeric variable
htmlentities()
htmlspecialchars()
reassign
abs()
30. An array whose keys are strings; also known as a hash.
abs()
associative array
<?php
array()
31. Used to check if a variable has a valid numerical value; strings with numerical values pass.
mysql_fetch_array()
count()
float
is_numeric()
32. does a certain action when called upon
PHP
Error
function
reassign
33. To sort by the keys while maintaining the correlation between the key and its value
bin2hex()
error_reporting (E_ALL | E_STRICT)
precedence
ksort()
34. any programing language where the script is parsed on the server
list()
server-side programing
null
Constant
35. The concatenation operator?
octal
the period; .
Error
string
36. Used to find the amount of words in a string.
server-side programing
string
preg_split()
str_word_count()
37. PHP has two conditional: if and ______.
POST
htmlentities()
switch
^
38. Use ________ to have multiple quotations in one string
indexed array
str_word_count()
the escape character ''
asort()
39. To include files - _______ will give errors and _________ will terminate execution().
POST
include() and require()
Parse error
number_format()
40. This fatal fatal is caused by a semantic mistake: omission of a semicolon or imbalance of quotations or parentheses or braces.
curly braces; ${$total}
predefined
Parse error
not
41. The ouput of var_export((bool)"NULL");
predefined
true
$var++ and $var
variable
42. To word wrap after a certain amount of characters.
negative numbers
wordwrap()
nl2br()
str_ireplace()
43. Used to convert all HTML tags into their entity versions.
str_ireplace()
SEO
htmlentities()
boolean
44. An array of variables passed in the URL
defined()
$_GET[]
date()
count()
45. To get time data
date()
negative numbers
SEO
trim()
46. This will show all error reporting.
^
==
error_reporting (E_ALL)
octal
47. Returns a string with backslashes in front of predefined characters
string
addslashes()
the period; .
ceil()
48. $_POST Data sent using POST found is sent to _______
rsort()
predefined variable
list()
$dbc = mysql_connect(hostname, username, password)
49. To merge arrays
strtok()
superglobal
array_merge()
Object
50. Used to encrypt values - it is a one-way encryption method
crypt()
Object
preg_replace()
chr()