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. To sort values of an array without regard to the keys
sort()
fopen()
unset()
function error_reporting()
2. To close a connection between a database
mysql_close($dbc)
single quotes
strlen()
Constant
3. Standard Generalized Markup Language
nl2br()
SGML
urlencode()
error_reporting (E_ALL | E_STRICT)
4. To merge arrays
underscores
addslashes()
array_merge()
arsort()
5. container of ordered data elements
1
+= or -= or *= or /=
Array
fopen()
6. The three types of loops in PHP are: for - while - ____.
boolean
foreach
ksort()
$_GET[]
7. To create an array
mysql
error_reporting (0)
array()
sort()
8. Use ________ to have multiple quotations in one string
the escape character ''
addcslashes()
associative array
error_reporting (E_ALL)
9. bitwise XOR
array()
superglobal
$varname[key]
^
10. returns the number of matches found by a given search string under this format...
list()
associative array
Notice
preg_match()
11. Similar to mysql_fetch_array() - but cannot be accessed by integer offset
foreach loop
int
boolean
mysql_fetch_object()
12. This will show all error reporting except for notice errors.
POST
error_reporting (E_ALL & -E_NOTICE)
Shebang
ini_set ('display_errors', 1)
13. Search Engine Optimization
general
SEO
mysql
getrandmax()
14. To get over quotation marks while using arrays
HTML
numbers
curly braces
XML
15. Document Type Definitions
addcslashes()
error_reporting (E_ALL & -E_NOTICE)
DTD
Array
16. Function that contains the highest value that rand() can have randomly
define()
predefined
Parse error
getrandmax()
17. bitwise AND
<<
ASP
&
foreach loop
18. Returns a string with backslashes in front of the specified characters
preg_split()
function
addcslashes()
E_STRICT
19. This fatal fatal is caused by a semantic mistake: omission of a semicolon or imbalance of quotations or parentheses or braces.
Array
Parse error
strip_tags()
>>
20. a type with two possible values: true and false
nl2br()
boolean
defined()
$_SESSION[]
21. To counter htmlentities()
is_numeric()
<<
Magic Constant
html_entity_decode()
22. To append elements to an array - this will assign item to the next available index; associative arrays get messy.
$array[] = item
is_numeric()
statement
substr_count()
23. To get time data
sql
sort()
date()
&
24. Used to check if a variable has any value (including 0 or FALSE or an empty string).
array
strtok()
isset()
string
25. This will not show error reporting - it will be turned off.
error_reporting (0)
control structure
mysql_close($dbc)
DTD
26. To refer to an item in an array
$varname[key]
Error
mysql_close($dbc)
?>
27. addition
number_format()
chr()
+
sql
28. Control structures that break exit
asort()
$dbc = mysql_connect(hostname, username, password)
>>
if/elseif/else and switch statements
29. Besides GET and POST ________ can be used to access data but $_POST and $_GET are more precise and therefore preferable.
ksort()
count()
$_REQUEST
strlen()
30. To determine the amount of elements in an array
is_numeric()
$array[] = item
count()
mysql_fetch_object()
31. Function used to convert new lines in a variable from a form to <br /> tags so that the data can be formatted correctly.
round() Function
boolean
boolean
nl2br()
32. The seven main SQL (structured query language) functions are alter - create - delete - _______ - insert - select - update
drop
str_word_count()
Array
decimal
33. either hasn't yet been set or is assigned NULL value
null
isset()
sort()
true
34. The prefix for a dynamic variable - also known as a variable variable
associative array
define()
Object
$$
35. $_SERVER - $_POST - $_GET - $_COOKIE - $_SESSION - $_ENV; special arrays.
reassign
abs()
superglobal
foreach loop
36. Use ______ for search engines or catalogued pages or pages that would be bookmarked.
open source
GET
number_format()
mysql_fetch_object()
37. To sort the values while maintaining the correlation between each value and its key
index
^
asort()
control structure
38. Used to convert all HTML tags into their entity versions.
round() Function
if/elseif/else and switch statements
chr()
htmlentities()
39. This fatal error arises from memory allocation problem.
ksort()
$array[] = item
not
Error
40. Used to display errors in a particular script - should be placed at top of script.
41. a line of information that can be stored in a variable or used in a function or statement
string
rand()
AJAX
1
42. All variables must begin with _________.
asort()
!= inequality
open source
the dollar sign $
43. a language in which to make querys to a database with
$dbc = mysql_connect(hostname, username, password)
sql
number_format()
boolean
44. Function used to round down to the lowest integer
Notice
floor()
string
define()
45. Tag to end a php script
drop
?>
mysql
HTML
46. Control structure that continue exit - they perform specific statements for a determined number of iterations.
chr()
isset()
loops
preg_match()
47. The order of operations.
precedence
E_STRICT
WYSIWYG
substr_count()
48. The syntax for connecting to a database
superglobal
variable
$dbc = mysql_connect(hostname, username, password)
strlen()
49. Used to find the length of a string
strlen()
XML
SGML
open source
50. Variable names can begin with __________
underscores
preg_replace()
if/elseif/else and switch statements
decimal