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. a language in which to make querys to a database with
HTTP
preg_split()
mysql_close($dbc)
sql
2. addition
for ($i = 0; $i < count($array); $i++) {statement(s);}
error_reporting (0)
$varname[key]
+
3. print $_SERVER will _____ work if you use the print function on arrays.
not
foreach
decimal
mysql_close($dbc)
4. ___________ can be used with substr() to count backward
array_merge()
chop()
nl2br()
negative numbers
5. The three types of loops in PHP are: for - while - ____.
number_format()
loops
foreach
str_word_count()
6. To close a connection between a database
if/elseif/else and switch statements
mysql_close($dbc)
&
ksort()
7. The concatenation operator?
abs()
Parse error
the period; .
E_STRICT
8. To sort by the keys while maintaining the correlation between the key and its value
$_REQUEST
Warning
strlen()
ksort()
9. Online applications and resources which are available to the general public with very few restrictions
reassign
predefined
open source
array
10. The output of var_export((float)array(0));
getrandmax()
floor()
1
string
11. _____ is a logical operator
htmlentities()
sort()
XOR
$dbc = mysql_connect(hostname, username, password)
12. $_SERVER is a ________ variable.
the dollar sign $
loops
predefined
substr_count()
13. Active Server Pages
$varname[key]
ASP
htmlentities()
mysql_close($dbc)
14. To set up error reporting
function error_reporting()
asort()
define()
rand()
15. Hyper Text Markup Language
array_merge()
html_entity_decode()
curly braces; ${$total}
HTML
16. container of both data and code
empty()
+= or -= or *= or /=
GET
Object
17. An array of variables passed with <input /> data
function error_reporting()
$_POST[]
predefined
str_word_count()
18. Predefined constants such as __LINE__ or __FILE__ or __FUNCTION__ or __CLASS__ and __METHOD__
Magic Constant
sort()
Parse error
define()
19. equivalence
define()
string
E_STRICT
==
20. The seven main SQL (structured query language) functions are alter - create - delete - _______ - insert - select - update
reassign
curly braces; ${$total}
drop
underscores
21. a type with two possible values: true and false
array()
nl2br()
loops
boolean
22. To check if a constant is already declared
defined()
array
isset()
asort()
23. Function can you use to format a number with commas
define()
number_format()
addcslashes()
null
24. This will show all error reporting except for notice errors.
nl2br()
error_reporting (E_ALL & -E_NOTICE)
foreach loop
index
25. The order of operations.
arsort()
precedence
chop()
mysql
26. returns the number of matches found by a given search string under this format...
preg_match()
array_merge()
XOR
sort()
27. Returns a string with backslashes in front of predefined characters
include() and require()
+
bin2hex()
addslashes()
28. bitwise AND
&
string
statement
ini_set ('display_errors', 1)
29. An array whose keys are numbers.
function
indexed array
html_entity_decode()
^
30. Returns a string with backslashes in front of the specified characters
the period; .
addcslashes()
number_format()
Magic Constant
31. $_SERVER - $_POST - $_GET - $_COOKIE - $_SESSION - $_ENV; special arrays.
Warning
superglobal
asort()
$varname[key]
32. Function used to find the absolute value of a number or numeric variable
abs()
ini_set ('display_errors', 1)
round() Function
single quotes
33. Used to check if a variable has a valid numerical value; strings with numerical values pass.
.=
is_numeric()
sort()
addcslashes()
34. A conditional or loop is a ________________.
error_reporting (0)
underscores
control structure
array()
35. Function used to round up to the highest integer
mysql_fetch_array()
ceil()
octal
null
36. a database which is best supported by PHP
DTD
array
Magic Constant
mysql
37. To word wrap after a certain amount of characters.
wordwrap()
trim()
float
include() and require()
38. Used to check if a given variable has an "empty" value - no value or 0 or FALSE.
empty()
associative array
parentheses
Error
39. To delete a variable or an element of an array
unset()
ceil()
Hex
ASP
40. Leading 0x: 0x13F or 0xA23
curly braces
strlen()
XML
Hex
41. Hyper Text Transfer Protocol
+
indexed array
float
HTTP
42. Used to convert certain HTML tags into their entity versions.
strlen()
unset()
htmlspecialchars()
list()
43. Converts a string of ASCII characters to hexadecimal values
ini_set ('display_errors', 1)
strtok()
bin2hex()
strip_tags()
44. Control structures that break exit
statement
if/elseif/else and switch statements
float
foreach loop
45. To assign array element values to individual variables
Constant
list()
+= or -= or *= or /=
Shebang
46. bitwise left shift
$$
<<
general
html_entity_decode()
47. EXtensible Markup Language
the period; .
function
XML
for ($i = 0; $i < count($array); $i++) {statement(s);}
48. Function used to convert new lines in a variable from a form to <br /> tags so that the data can be formatted correctly.
nl2br()
negative numbers
$_SESSION[]
bin2hex()
49. Use ________ to have multiple quotations in one string
urlencode()
$array[] = item
numbers
the escape character ''
50. An array of variables passed in the URL
$_GET[]
error_reporting (E_ALL & -E_NOTICE)
$$
mysql_fetch_array()