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 remove all HTML and PHP tags.
.=
mysql_fetch_array()
strip_tags()
$$
2. An array whose keys are strings; also known as a hash.
rsort()
open source
associative array
Parse error
3. What You See Is What You Get
defined()
date()
ksort()
WYSIWYG
4. Function used to convert new lines in a variable from a form to <br /> tags so that the data can be formatted correctly.
null
$_POST[]
htmlentities()
nl2br()
5. Returns a character from a specified ASCII value
preg_replace()
chr()
indexed array
precedence
6. To refer to an element in a multidimensional array list the indices in order of _____ to more precise;
general
asort()
loops
+
7. To create an array
array()
array
function
true
8. To reset an array _______ the array() function to the array
HTTP
^
substr_count()
reassign
9. Uses two arguments: constant name and constant definition
open source
predefined variable
define()
numbers
10. To set up error reporting
addcslashes()
strip_tags()
function error_reporting()
&
11. allows you to split strings based on more complex rules
curly braces
===
crypt()
preg_split()
12. signed floating-point value
octal
float
underscores
statement
13. $_POST and $_GET are ________ variables.
predefined
Array
array_merge()
unset()
14. Alias of rtrim()
chop()
empty()
nl2br()
octal
15. bitwise left shift
htmlspecialchars()
null
abs()
<<
16. searches the subject for matches to a given pattern replaced with the given replacement text
chr()
array()
WYSIWYG
preg_replace()
17. The seven main error reporting constants are: E_NOTICE - E_WARNING - E_PARSE - E_ERROR - E_ALL - _____ - E_DEPRECATED
count()
define()
E_STRICT
SGML
18. The prefix for a dynamic variable - also known as a variable variable
Magic Constant
str_ireplace()
int
$$
19. Converts a string of ASCII characters to hexadecimal values
bin2hex()
ASP
ceil()
asort()
20. Define(NAME,value)
defined()
Constant
addcslashes()
curly braces; ${$total}
21. The syntax for connecting to a database
Error
$dbc = mysql_connect(hostname, username, password)
function
echo
22. To sort by the keys while maintaining the correlation between the key and its value
Error
predefined
chop()
ksort()
23. The four main error types are:Notice - Warning - ________ and Error.
XML
Parse error
SEO
statement
24. To iterate over the values of an array
for ($i = 0; $i < count($array); $i++) {statement(s);}
array()
mysql_close($dbc)
rsort()
25. ____ or key is referred to for a value within an array.
Parse error
index
rsort()
the escape character ''
26. To sort values of an array in reversed order
nl2br()
echo
rsort()
double quotes
27. An array whose keys are numbers.
indexed array
1
mysql_fetch_array()
statement
28. Document Type Definitions
array
DTD
superglobal
underscores
29. EXtensible Markup Language
XML
addcslashes()
the escape character ''
float
30. Function used to round down to the lowest integer
floor()
HTML
curly braces; ${$total}
string
31. addition
precedence
$_REQUEST
+
curly braces; ${$total}
32. Search Engine Optimization
date()
trim()
Magic Constant
SEO
33. To include files - _______ will give errors and _________ will terminate execution().
$_SESSION[]
>>
include() and require()
$_POST[]
34. The concatenation assignment operator?
Shebang
round() Function
.=
defined()
35. The output of var_export((float)array());
defined()
0
rand()
$$
36. To reorganise the array randomly
mysql_fetch_object()
&
Hex
shuffle()
37. An array of variables passed with <input /> data
switch
single quotes
>>
$_POST[]
38. To assign keys to the values in an array
array()
string
mysql_fetch_array()
define()
39. a line of information that can be stored in a variable or used in a function or statement
strlen()
addcslashes()
string
$var++ and $var
40. This fatal fatal is caused by a semantic mistake: omission of a semicolon or imbalance of quotations or parentheses or braces.
HTML
underscores
PHP
Parse error
41. The three types of loops in PHP are: for - while - ____.
foreach
echo
wordwrap()
parentheses
42. Function that contains the highest value that rand() can have randomly
boolean
$dbc = mysql_connect(hostname, username, password)
html_entity_decode()
getrandmax()
43. To determine the amount of elements in an array
Constant
count()
string
predefined
44. Function used to round up to the highest integer
string
ceil()
Hex
strtok()
45. container of ordered data elements
Array
define()
ceil()
predefined
46. Standard Generalized Markup Language
Array
===
function error_reporting()
SGML
47. The seven main SQL (structured query language) functions are alter - create - delete - _______ - insert - select - update
drop
general
preg_split()
preg_replace()
48. standard notation
arsort()
null
decimal
include() and require()
49. The concatenation operator?
superglobal
!= inequality
reassign
the period; .
50. bitwise AND
$_SESSION[]
curly braces
htmlentities()
&