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. Used to convert all HTML tags into their entity versions.
server-side programing
htmlentities()
index
.=
2. To check if a constant is already declared
decimal
>>
+= or -= or *= or /=
defined()
3. returns the number of matches found by a given search string under this format...
abs()
strip_tags()
boolean
preg_match()
4. the most basic function in PHP used to output information to the page
single quotes
DTD
E_STRICT
echo
5. Operators used to operate and assign
foreach loop
server-side programing
+= or -= or *= or /=
trim()
6. Online applications and resources which are available to the general public with very few restrictions
array()
string
open source
PHP
7. function Function used to create a random number
client-side programing
numbers
rand()
isset()
8. Function used to convert new lines in a variable from a form to <br /> tags so that the data can be formatted correctly.
abs()
Constant
nl2br()
urlencode()
9. To set up error reporting
>>
function error_reporting()
HTTP
$varname[key]
10. This will show all error reporting except for notice errors.
error_reporting (E_ALL | E_STRICT)
error_reporting (E_ALL & -E_NOTICE)
index
ASP
11. The seven main error reporting constants are: E_NOTICE - E_WARNING - E_PARSE - E_ERROR - E_ALL - _____ - E_DEPRECATED
Magic Constant
variable
E_STRICT
curly braces; ${$total}
12. Used to find the length of a string
addcslashes()
reassign
strlen()
str_word_count()
13. Function used to find the absolute value of a number or numeric variable
foreach loop
decimal
abs()
define()
14. used to round numeric values.
!= inequality
mysql_fetch_array()
round() Function
array
15. A data structure that can hold a number of items of data of the same type eg. a list of names
DTD
==
array
array()
16. To iterate over the keys and values of an array
error_reporting (E_ALL)
loops
foreach loop
floor()
17. Function used to round up to the highest integer
ksort()
ceil()
echo
chop()
18. does a certain action when called upon
float
function
arsort()
===
19. When used the value can be passed safely through the URL (GET).
urlencode()
superglobal
^
strlen()
20. To determine the amount of elements in an array
numbers
count()
error_reporting (E_ALL | E_STRICT)
asort()
21. a storage location in the computer's memory that has a type & a name and a contents
predefined variable
variable
==
array()
22. a type with two possible values: true and false
sql
boolean
getrandmax()
list()
23. Leading 0x: 0x13F or 0xA23
server-side programing
Hex
str_word_count()
the escape character ''
24. An array whose keys are numbers.
loops
rand()
Parse error
indexed array
25. Used to create a substring (referred to as a token) from a larger string
curly braces
strlen()
strtok()
htmlentities()
26. addition
+
floor()
integer
not
27. bitwise AND
&
foreach loop
$array[] = item
array_merge()
28. Document Type Definitions
Shebang
urlencode()
DTD
null
29. An array of variables passed in the URL
sort()
addslashes()
$_GET[]
==
30. Variable names can begin with __________
underscores
function
error_reporting (E_ALL | E_STRICT)
$dbc = mysql_connect(hostname, username, password)
31. print $_SERVER will _____ work if you use the print function on arrays.
octal
not
open source
Notice
32. any programing language where the user must support the language the script is written in
client-side programing
error_reporting (0)
sort()
DTD
33. Define(NAME,value)
$varname[key]
Constant
$$
array
34. Used to display errors in a particular script - should be placed at top of script.
35. a line of information that can be stored in a variable or used in a function or statement
mysql
unset()
Parse error
string
36. To close a connection between a database
mysql_close($dbc)
boolean
&
PHP
37. ___________ can be used with substr() to count backward
mysql
htmlspecialchars()
general
negative numbers
38. Used to check if a variable has any value (including 0 or FALSE or an empty string).
shuffle()
decimal
isset()
html_entity_decode()
39. To refer to an item in an array
<<
wordwrap()
mysql
$varname[key]
40. The array that stores variables specific to a user's visit
$_SESSION[]
chop()
E_STRICT
is_numeric()
41. Uses two arguments: constant name and constant definition
Warning
define()
$array[] = item
$_SESSION[]
42. The ouput of var_export((bool)"NULL");
trim()
true
ceil()
null
43. The prefix for a dynamic variable - also known as a variable variable
unset()
strip_tags()
$$
htmlspecialchars()
44. Converts a string of ASCII characters to hexadecimal values
mysql
bin2hex()
curly braces; ${$total}
echo
45. To word wrap after a certain amount of characters.
wordwrap()
fopen()
rsort()
unset()
46. a language in which to make querys to a database with
Hex
preg_replace()
Parse error
sql
47. To refer to an element in a multidimensional array list the indices in order of _____ to more precise;
integer
0
general
$_REQUEST
48. _____ is a logical operator
round() Function
XOR
array_merge()
number_format()
49. Used to check if a given variable has an "empty" value - no value or 0 or FALSE.
index
GET
sort()
empty()
50. $_SERVER is a ________ variable.
underscores
client-side programing
predefined
the escape character ''