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. returns the number of matches found by a given search string under this format...
preg_match()
date()
HTML
boolean
2. collection of binary data
string
octal
$array[] = item
numbers
3. $_POST Data sent using POST found is sent to _______
fopen()
ASP
strip_tags()
predefined variable
4. EXtensible Markup Language
error_reporting (E_ALL | E_STRICT)
float
XML
open source
5. An array whose keys are numbers.
variable
not
arsort()
indexed array
6. Function used to round up to the highest integer
Hex
boolean
error_reporting (E_ALL & -E_NOTICE)
ceil()
7. The array that stores variables specific to a user's visit
fopen()
array_merge()
number_format()
$_SESSION[]
8. bitwise right shift
>>
preg_replace()
XOR
+
9. allows you to split strings based on more complex rules
preg_split()
$dbc = mysql_connect(hostname, username, password)
array
strip_tags()
10. Converts a string of ASCII characters to hexadecimal values
$_POST[]
rsort()
bin2hex()
general
11. This will show all error reporting except for notice errors.
error_reporting (E_ALL & -E_NOTICE)
str_ireplace()
drop
negative numbers
12. a line of information that can be stored in a variable or used in a function or statement
string
$dbc = mysql_connect(hostname, username, password)
negative numbers
htmlspecialchars()
13. Function can you use to format a number with commas
.=
number_format()
SGML
shuffle()
14. Standard Generalized Markup Language
SGML
float
PHP
reassign
15. Use ______ for search engines or catalogued pages or pages that would be bookmarked.
+
GET
numbers
double quotes
16. Returns a string with backslashes in front of predefined characters
trim()
addslashes()
htmlentities()
$dbc = mysql_connect(hostname, username, password)
17. Alias of rtrim()
define()
chop()
urlencode()
curly braces; ${$total}
18. What You See Is What You Get
boolean
==
WYSIWYG
foreach
19. Define(NAME,value)
isset()
Constant
open source
POST
20. The name of the #! used to designate the location of the PHP binary
urlencode()
Shebang
indexed array
function error_reporting()
21. To append elements to an array - this will assign item to the next available index; associative arrays get messy.
array_merge()
echo
$array[] = item
asort()
22. any programing language where the user must support the language the script is written in
rsort()
general
integer
client-side programing
23. Use ______ when a variable contains any amount of variables; in general.
Shebang
double quotes
true
substr_count()
24. To sort the values while maintaining the correlation between each value and its key
asort()
crypt()
indexed array
include() and require()
25. To determine the amount of elements in an array
is_numeric()
&
array()
count()
26. Besides GET and POST ________ can be used to access data but $_POST and $_GET are more precise and therefore preferable.
$_REQUEST
foreach
Magic Constant
Array
27. Used to encrypt values - it is a one-way encryption method
crypt()
bin2hex()
if/elseif/else and switch statements
POST
28. a type with two possible values: true and false
$var++ and $var
boolean
ceil()
array_merge()
29. Shorthand used to increment and decrement
boolean
htmlentities()
$var++ and $var
Notice
30. To check if a constant is already declared
underscores
?>
defined()
GET
31. Function used to round down to the lowest integer
floor()
int
curly braces; ${$total}
$array[] = item
32. $_SERVER is a ________ variable.
SGML
predefined
$dbc = mysql_connect(hostname, username, password)
strip_tags()
33. To put a dollar sign before a variable like $10 where 10 is the variable's value - you can escape the first dollar sign; $$cost; or you can use __________.
getrandmax()
curly braces; ${$total}
html_entity_decode()
parentheses
34. standard notation
WYSIWYG
HTML
&
decimal
35. To merge arrays
function
Object
array_merge()
chr()
36. To reorganise the array randomly
define()
is_numeric()
shuffle()
AJAX
37. Used to remove any white space - spaces or newlines or tabs - from the beginning and end of a string - not the middle.
predefined
trim()
htmlentities()
XML
38. _____ is a logical operator
Parse error
XOR
str_ireplace()
reassign
39. addition
+
isset()
the escape character ''
addcslashes()
40. This will show all error reporting.
Constant
PHP
error_reporting (E_ALL)
E_STRICT
41. Search Engine Optimization
arsort()
underscores
negative numbers
SEO
42. Returns a character from a specified ASCII value
reassign
floor()
variable
chr()
43. To include files - _______ will give errors and _________ will terminate execution().
include() and require()
$_REQUEST
preg_match()
.=
44. The concatenation operator?
str_word_count()
the period; .
===
SEO
45. To remove all HTML and PHP tags.
associative array
parentheses
strlen()
strip_tags()
46. _______ is a comparison operator
!= inequality
integer
curly braces; ${$total}
string
47. To counter htmlentities()
&
1
html_entity_decode()
Hex
48. The order of operations.
predefined
<<
ini_set ('display_errors', 1)
precedence
49. The prefix for a dynamic variable - also known as a variable variable
$$
error_reporting (0)
predefined
ASP
50. Use ________ to have multiple quotations in one string
the escape character ''
underscores
urlencode()
htmlspecialchars()