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. print $_SERVER will _____ work if you use the print function on arrays.
$_GET[]
not
the escape character ''
$dbc = mysql_connect(hostname, username, password)
2. a language in which to make querys to a database with
predefined
XOR
sql
rsort()
3. a positive or negative number
parentheses
variable
integer
switch
4. Asynchronous Javascript And XML
trim()
control structure
AJAX
array()
5. To delete a variable or an element of an array
parentheses
general
mysql_fetch_array()
unset()
6. To counter htmlentities()
define()
wordwrap()
html_entity_decode()
Constant
7. Function used to convert new lines in a variable from a form to <br /> tags so that the data can be formatted correctly.
nl2br()
WYSIWYG
superglobal
Notice
8. does a certain action when called upon
getrandmax()
function
ini_set ('display_errors', 1)
empty()
9. a database which is best supported by PHP
array()
wordwrap()
mysql
<?php
10. To check if a constant is already declared
>>
Shebang
drop
defined()
11. says 'if' this then do this 'else' do this or 'while' this do this
statement
strip_tags()
true
$dbc = mysql_connect(hostname, username, password)
12. Standard Generalized Markup Language
not
null
number_format()
SGML
13. Returns a string with backslashes in front of predefined characters
control structure
drop
addslashes()
string
14. returns the number of matches found by a given search string under this format...
>>
single quotes
preg_match()
getrandmax()
15. equivalence
==
open source
array()
error_reporting (0)
16. Creates a pointer to a file with the declared mode (read - write -etc.).
null
fopen()
the escape character ''
strtok()
17. EXtensible Markup Language
XML
parentheses
associative array
urlencode()
18. Used to find the length of a string
strlen()
array()
$_REQUEST
mysql_fetch_object()
19. any programing language where the user must support the language the script is written in
number_format()
parentheses
preg_split()
client-side programing
20. Uses two arguments: constant name and constant definition
the dollar sign $
define()
XML
numbers
21. Used to convert all HTML tags into their entity versions.
Shebang
htmlentities()
index
decimal
22. $_POST Data sent using POST found is sent to _______
?>
boolean
predefined variable
array()
23. Hypertext Preprocessor - a server-side programing language used to create webpages
wordwrap()
arsort()
PHP
switch
24. bitwise AND
&
html_entity_decode()
string
curly braces; ${$total}
25. To iterate over the values of an array
for ($i = 0; $i < count($array); $i++) {statement(s);}
echo
float
string
26. This will not show error reporting - it will be turned off.
date()
error_reporting (0)
bin2hex()
is_numeric()
27. Control structure that continue exit - they perform specific statements for a determined number of iterations.
loops
curly braces
Magic Constant
+= or -= or *= or /=
28. This will show all error reporting except for notice errors.
predefined
error_reporting (E_ALL & -E_NOTICE)
isset()
rand()
29. Converts a string of ASCII characters to hexadecimal values
POST
echo
$$
bin2hex()
30. Active Server Pages
the period; .
nl2br()
$_POST[]
ASP
31. The syntax for connecting to a database
octal
htmlentities()
Shebang
$dbc = mysql_connect(hostname, username, password)
32. bitwise XOR
sort()
$var++ and $var
$dbc = mysql_connect(hostname, username, password)
^
33. Used to create a substring (referred to as a token) from a larger string
strtok()
ASP
Object
single quotes
34. The prefix for a dynamic variable - also known as a variable variable
SEO
$$
string
^
35. To determine the amount of elements in an array
ksort()
count()
int
AJAX
36. To append elements to an array - this will assign item to the next available index; associative arrays get messy.
$array[] = item
sql
rand()
echo
37. To declare a constant
octal
reassign
define()
include() and require()
38. collection of binary data
string
function
variable
Error
39. Used to convert certain HTML tags into their entity versions.
htmlspecialchars()
preg_replace()
negative numbers
count()
40. To reset an array _______ the array() function to the array
Parse error
strlen()
reassign
<?php
41. Function used to round up to the highest integer
function
the escape character ''
Parse error
ceil()
42. Used to check if a given variable has an "empty" value - no value or 0 or FALSE.
string
curly braces
octal
empty()
43. 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)
reassign
predefined
the period; .
44. Predefined constants such as __LINE__ or __FILE__ or __FUNCTION__ or __CLASS__ and __METHOD__
strlen()
null
Magic Constant
index
45. Tag to begin a php script
underscores
Hex
empty()
<?php
46. PHP has two conditional: if and ______.
switch
Shebang
ASP
>>
47. The order of operations.
associative array
negative numbers
POST
precedence
48. To sort values of an array in reversed order
arsort()
rsort()
control structure
superglobal
49. standard notation
decimal
switch
preg_replace()
html_entity_decode()
50. The name of the #! used to designate the location of the PHP binary
WYSIWYG
Shebang
Hex
Warning