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. bitwise AND
string
chr()
&
the period; .
2. Returns a character from a specified ASCII value
chr()
array
XML
+= or -= or *= or /=
3. a line of information that can be stored in a variable or used in a function or statement
define()
string
integer
?>
4. Used to create a substring (referred to as a token) from a larger string
chop()
single quotes
strtok()
Hex
5. This fatal error arises from memory allocation problem.
preg_split()
reassign
Error
boolean
6. allows you to split strings based on more complex rules
substr_count()
preg_split()
shuffle()
$dbc = mysql_connect(hostname, username, password)
7. The three types of loops in PHP are: for - while - ____.
array
foreach
0
Object
8. To assign keys to the values in an array
number_format()
array_merge()
array()
if/elseif/else and switch statements
9. Used to convert all HTML tags into their entity versions.
htmlentities()
?>
$$
sort()
10. Online applications and resources which are available to the general public with very few restrictions
open source
error_reporting (E_ALL & -E_NOTICE)
predefined variable
predefined
11. Function used to find the absolute value of a number or numeric variable
echo
abs()
numbers
GET
12. a storage location in the computer's memory that has a type & a name and a contents
variable
unset()
Warning
array
13. To set up error reporting
asort()
&
function error_reporting()
Shebang
14. identity
===
foreach
true
define()
15. To get time data
date()
statement
server-side programing
trim()
16. returns the number of matches found by a given search string under this format...
preg_match()
HTTP
XML
rsort()
17. To sort the values while maintaining the correlation between each value and its key
true
asort()
Hex
XML
18. To check if a constant is already declared
if/elseif/else and switch statements
defined()
+= or -= or *= or /=
client-side programing
19. Used to check if a variable has any value (including 0 or FALSE or an empty string).
Notice
isset()
$_GET[]
SEO
20. To refer to an item in an array
array()
number_format()
array
$varname[key]
21. To delete a variable or an element of an array
abs()
date()
unset()
defined()
22. Define(NAME,value)
Magic Constant
predefined
WYSIWYG
Constant
23. To iterate over the values of an array
general
>>
for ($i = 0; $i < count($array); $i++) {statement(s);}
error_reporting (0)
24. To find how many substrings are in a string
server-side programing
error_reporting (0)
substr_count()
html_entity_decode()
25. signed floating-point value
float
preg_replace()
substr_count()
indexed array
26. Used to replace a substring with another string - it is not case-sensitive.
foreach loop
===
str_ireplace()
>>
27. To declare a constant
rand()
count()
client-side programing
define()
28. To close a connection between a database
integer
switch
wordwrap()
mysql_close($dbc)
29. _______ is a comparison operator
XML
defined()
arsort()
!= inequality
30. To word wrap after a certain amount of characters.
if/elseif/else and switch statements
sort()
wordwrap()
$array[] = item
31. An array of variables passed with <input /> data
curly braces
$_POST[]
strtok()
Notice
32. Use ______ for search engines or catalogued pages or pages that would be bookmarked.
reassign
GET
index
the dollar sign $
33. print $_SERVER will _____ work if you use the print function on arrays.
0
isset()
general
not
34. When used the value can be passed safely through the URL (GET).
SGML
urlencode()
list()
isset()
35. This error arises from misusing a function.
strtok()
preg_match()
===
Warning
36. An array whose keys are numbers.
strlen()
Parse error
error_reporting (E_ALL)
indexed array
37. ____ or key is referred to for a value within an array.
foreach loop
loops
HTML
index
38. Used to check if a given variable has an "empty" value - no value or 0 or FALSE.
strtok()
Hex
empty()
HTML
39. collection of binary data
array()
if/elseif/else and switch statements
boolean
string
40. $_POST and $_GET are ________ variables.
unset()
error_reporting (0)
predefined
HTTP
41. a positive or negative number
include() and require()
integer
^
echo
42. Standard Generalized Markup Language
str_word_count()
SGML
Array
associative array
43. searches the subject for matches to a given pattern replaced with the given replacement text
decimal
preg_replace()
wordwrap()
array
44. This will show all error reporting.
echo
preg_replace()
error_reporting (E_ALL)
floor()
45. container of ordered data elements
Array
numbers
date()
the period; .
46. bitwise XOR
superglobal
^
float
integer
47. either hasn't yet been set or is assigned NULL value
shuffle()
null
Warning
crypt()
48. Variable names cannot begin with _______
>>
indexed array
numbers
substr_count()
49. The prefix for a dynamic variable - also known as a variable variable
htmlspecialchars()
$$
negative numbers
E_STRICT
50. Use ______ when a variable contains any amount of variables; in general.
define()
strlen()
is_numeric()
double quotes