SUBJECTS
|
BROWSE
|
CAREER CENTER
|
POPULAR
|
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 conditional or loop is a ________________.
control structure
include() and require()
general
$_SESSION[]
2. To set up error reporting
isset()
round() Function
function error_reporting()
numbers
3. collection of binary data
$_GET[]
preg_match()
ksort()
string
4. _______ is a comparison operator
!= inequality
abs()
not
Object
5. $_SERVER - $_POST - $_GET - $_COOKIE - $_SESSION - $_ENV; special arrays.
round() Function
mysql_fetch_array()
superglobal
unset()
6. Asynchronous Javascript And XML
client-side programing
1
HTML
AJAX
7. ___________ can be used with substr() to count backward
general
foreach loop
int
negative numbers
8. bitwise left shift
<<
crypt()
null
?>
9. To find how many substrings are in a string
unset()
trim()
substr_count()
curly braces; ${$total}
10. Use ______ for search engines or catalogued pages or pages that would be bookmarked.
bin2hex()
echo
GET
is_numeric()
11. This error refers to a variable with no value.
Notice
$varname[key]
if/elseif/else and switch statements
numbers
12. This will show all error reporting except for notice errors.
addcslashes()
.=
==
error_reporting (E_ALL & -E_NOTICE)
13. bitwise XOR
^
PHP
asort()
if/elseif/else and switch statements
14. $_SERVER is a ________ variable.
shuffle()
predefined
control structure
the escape character ''
15. Function used to convert new lines in a variable from a form to <br /> tags so that the data can be formatted correctly.
AJAX
error_reporting (E_ALL)
nl2br()
switch
16. Function that contains the highest value that rand() can have randomly
getrandmax()
rsort()
sort()
floor()
17. Alias of rtrim()
chop()
ceil()
curly braces
count()
18. a database which is best supported by PHP
boolean
mysql
error_reporting (E_ALL)
unset()
19. To get time data
number_format()
isset()
date()
&
20. Used to check if a variable has a valid numerical value; strings with numerical values pass.
abs()
predefined
is_numeric()
ksort()
21. To reset an array _______ the array() function to the array
list()
reassign
single quotes
error_reporting (E_ALL)
22. Returns an array that corresponds to the fetched row of MySQL data and moves the internal data pointer ahead
html_entity_decode()
>>
round() Function
mysql_fetch_array()
23. Function can you use to format a number with commas
number_format()
underscores
server-side programing
float
24. says 'if' this then do this 'else' do this or 'while' this do this
GET
wordwrap()
mysql_fetch_object()
statement
25. Used to find the amount of words in a string.
string
nl2br()
str_word_count()
Constant
26. used to round numeric values.
arsort()
round() Function
urlencode()
true
27. To check if a constant is already declared
mysql_close($dbc)
defined()
not
loops
28. Document Type Definitions
DTD
Magic Constant
mysql_fetch_object()
chr()
29. The name of the #! used to designate the location of the PHP binary
ceil()
Shebang
str_word_count()
ASP
30. To sort values of an array without regard to the keys
ini_set ('display_errors', 1)
Array
number_format()
sort()
31. The four main error types are:Notice - Warning - ________ and Error.
Error
SGML
mysql_fetch_object()
Parse error
32. Used to display errors in a particular script - should be placed at top of script.
33. Function used to find the absolute value of a number or numeric variable
===
unset()
include() and require()
abs()
34. To merge arrays
array_merge()
float
mysql_close($dbc)
error_reporting (E_ALL | E_STRICT)
35. The array that stores variables specific to a user's visit
$_SESSION[]
client-side programing
curly braces
HTTP
36. Define(NAME,value)
.=
empty()
Constant
drop
37. Returns a character from a specified ASCII value
is_numeric()
open source
chr()
==
38. $_POST and $_GET are ________ variables.
strip_tags()
preg_replace()
curly braces
predefined
39. Control structures that break exit
mysql
if/elseif/else and switch statements
string
int
40. The order of operations.
error_reporting (E_ALL)
crypt()
===
precedence
41. Besides GET and POST ________ can be used to access data but $_POST and $_GET are more precise and therefore preferable.
foreach loop
preg_match()
$_REQUEST
general
42. PHP has two conditional: if and ______.
strlen()
switch
isset()
$array[] = item
43. Control structure that continue exit - they perform specific statements for a determined number of iterations.
error_reporting (0)
mysql_fetch_array()
ksort()
loops
44. To iterate over the values of an array
for ($i = 0; $i < count($array); $i++) {statement(s);}
strtok()
Hex
associative array
45. either hasn't yet been set or is assigned NULL value
htmlspecialchars()
server-side programing
strlen()
null
46. identity
$_GET[]
$_POST[]
===
HTML
47. To include files - _______ will give errors and _________ will terminate execution().
1
curly braces; ${$total}
wordwrap()
include() and require()
48. Tag to end a php script
?>
server-side programing
rsort()
ini_set ('display_errors', 1)
49. To assign array element values to individual variables
sort()
negative numbers
html_entity_decode()
list()
50. Use ________ to have multiple quotations in one string
the escape character ''
mysql_fetch_array()
float
control structure