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. Function can you use to format a number with commas
list()
number_format()
Hex
underscores
2. To get time data
ini_set ('display_errors', 1)
preg_match()
<<
date()
3. To sort the values while maintaining the correlation between each value and its key
htmlspecialchars()
the period; .
asort()
substr_count()
4. The prefix for a dynamic variable - also known as a variable variable
.=
the dollar sign $
parentheses
$$
5. print $_SERVER will _____ work if you use the print function on arrays.
?>
count()
not
addslashes()
6. $_POST and $_GET are ________ variables.
$_SESSION[]
preg_match()
!= inequality
predefined
7. An array whose keys are numbers.
the escape character ''
round() Function
indexed array
control structure
8. $_SERVER - $_POST - $_GET - $_COOKIE - $_SESSION - $_ENV; special arrays.
echo
mysql_close($dbc)
superglobal
1
9. EXtensible Markup Language
decimal
mysql_fetch_object()
XML
&
10. a storage location in the computer's memory that has a type & a name and a contents
superglobal
html_entity_decode()
variable
ASP
11. ____ or key is referred to for a value within an array.
empty()
Constant
true
index
12. Converts a string of ASCII characters to hexadecimal values
predefined
bin2hex()
$_REQUEST
wordwrap()
13. bitwise XOR
^
strlen()
define()
$_SESSION[]
14. Used to find the amount of words in a string.
Error
str_word_count()
PHP
double quotes
15. addition
Constant
open source
error_reporting (0)
+
16. To refer to an element in a multidimensional array list the indices in order of _____ to more precise;
$var++ and $var
general
$$
Error
17. To counter htmlentities()
html_entity_decode()
list()
string
mysql_fetch_array()
18. To remove all HTML and PHP tags.
Constant
strip_tags()
general
open source
19. allows you to split strings based on more complex rules
preg_split()
define()
mysql
sort()
20. Used to encrypt values - it is a one-way encryption method
html_entity_decode()
crypt()
function
$var++ and $var
21. any programing language where the script is parsed on the server
&
server-side programing
array_merge()
chop()
22. Leading 0x: 0x13F or 0xA23
$_POST[]
Hex
is_numeric()
foreach
23. An array of variables passed in the URL
nl2br()
curly braces; ${$total}
define()
$_GET[]
24. signed integer
for ($i = 0; $i < count($array); $i++) {statement(s);}
int
^
===
25. Control structures that break exit
$_GET[]
if/elseif/else and switch statements
htmlspecialchars()
statement
26. The order of operations.
getrandmax()
precedence
float
crypt()
27. Function used to round down to the lowest integer
predefined variable
floor()
.=
error_reporting (E_ALL)
28. Asynchronous Javascript And XML
if/elseif/else and switch statements
?>
for ($i = 0; $i < count($array); $i++) {statement(s);}
AJAX
29. Used to convert all HTML tags into their entity versions.
htmlentities()
double quotes
drop
strip_tags()
30. To set up error reporting
function error_reporting()
curly braces
numbers
htmlspecialchars()
31. To close a connection between a database
$array[] = item
foreach loop
mysql_close($dbc)
the dollar sign $
32. signed floating-point value
float
for ($i = 0; $i < count($array); $i++) {statement(s);}
boolean
Parse error
33. An array whose keys are strings; also known as a hash.
<<
WYSIWYG
associative array
round() Function
34. Used to convert certain HTML tags into their entity versions.
AJAX
error_reporting (E_ALL & -E_NOTICE)
htmlspecialchars()
rsort()
35. To sort values of an array without regard to the keys
curly braces; ${$total}
Warning
DTD
sort()
36. To word wrap after a certain amount of characters.
Error
Hex
arsort()
wordwrap()
37. Online applications and resources which are available to the general public with very few restrictions
predefined variable
superglobal
open source
WYSIWYG
38. Hyper Text Transfer Protocol
array()
echo
HTTP
open source
39. Use ______ when a variable contains any amount of variables; in general.
double quotes
curly braces
the escape character ''
is_numeric()
40. To create an array
array()
indexed array
fopen()
predefined
41. returns the number of matches found by a given search string under this format...
the dollar sign $
variable
preg_match()
html_entity_decode()
42. The seven main error reporting constants are: E_NOTICE - E_WARNING - E_PARSE - E_ERROR - E_ALL - _____ - E_DEPRECATED
strip_tags()
E_STRICT
octal
array
43. To iterate over the keys and values of an array
foreach loop
XML
<<
index
44. Besides GET and POST ________ can be used to access data but $_POST and $_GET are more precise and therefore preferable.
$_REQUEST
if/elseif/else and switch statements
DTD
true
45. To refer to an item in an array
float
double quotes
ksort()
$varname[key]
46. 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.
associative array
Array
error_reporting (E_ALL | E_STRICT)
reassign
47. Function used to convert new lines in a variable from a form to <br /> tags so that the data can be formatted correctly.
Constant
preg_replace()
DTD
nl2br()
48. This error refers to a variable with no value.
error_reporting (E_ALL)
Notice
client-side programing
ceil()
49. Search Engine Optimization
Warning
define()
numbers
SEO
50. What You See Is What You Get
curly braces
associative array
WYSIWYG
mysql_fetch_array()