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. An array of variables passed with <input /> data
urlencode()
htmlentities()
$_POST[]
$array[] = item
2. signed integer
GET
associative array
urlencode()
int
3. To find how many substrings are in a string
substr_count()
crypt()
Parse error
htmlspecialchars()
4. Creates a pointer to a file with the declared mode (read - write -etc.).
rsort()
+
fopen()
error_reporting (E_ALL | E_STRICT)
5. Function used to round down to the lowest integer
floor()
predefined
GET
integer
6. print $_SERVER will _____ work if you use the print function on arrays.
not
curly braces; ${$total}
rsort()
function
7. _______ is a comparison operator
$var++ and $var
loops
!= inequality
error_reporting (E_ALL | E_STRICT)
8. Leading 0x: 0x13F or 0xA23
reassign
loops
?>
Hex
9. To remove all HTML and PHP tags.
strip_tags()
sql
chop()
.=
10. Function used to round up to the highest integer
true
ceil()
Notice
array
11. Converts a string of ASCII characters to hexadecimal values
0
strlen()
ceil()
bin2hex()
12. To assign keys to the values in an array
array()
the period; .
str_ireplace()
asort()
13. The output of var_export((float)array(0));
POST
1
chop()
substr_count()
14. A data structure that can hold a number of items of data of the same type eg. a list of names
array
round() Function
predefined
double quotes
15. a storage location in the computer's memory that has a type & a name and a contents
variable
parentheses
!= inequality
POST
16. Use ______ when there are no variables in the string
single quotes
predefined variable
shuffle()
for ($i = 0; $i < count($array); $i++) {statement(s);}
17. function Function used to create a random number
sql
control structure
int
rand()
18. An array of variables passed in the URL
$_GET[]
predefined
not
isset()
19. The concatenation assignment operator?
.=
POST
sort()
float
20. Function used to convert new lines in a variable from a form to <br /> tags so that the data can be formatted correctly.
arsort()
nl2br()
loops
the escape character ''
21. Variable names can begin with __________
underscores
$array[] = item
list()
$_REQUEST
22. bitwise right shift
>>
error_reporting (0)
str_ireplace()
loops
23. To include files - _______ will give errors and _________ will terminate execution().
not
?>
include() and require()
superglobal
24. Document Type Definitions
DTD
string
crypt()
reassign
25. Alias of rtrim()
round() Function
is_numeric()
true
chop()
26. This will show all error reporting except for notice errors.
mysql_fetch_array()
error_reporting (E_ALL & -E_NOTICE)
error_reporting (E_ALL)
open source
27. To append elements to an array - this will assign item to the next available index; associative arrays get messy.
1
mysql_fetch_object()
$array[] = item
rand()
28. bitwise left shift
<<
$varname[key]
not
urlencode()
29. This error arises from misusing a function.
Warning
0
predefined variable
switch
30. Uses two arguments: constant name and constant definition
ini_set ('display_errors', 1)
$dbc = mysql_connect(hostname, username, password)
SEO
define()
31. Use ______ for search engines or catalogued pages or pages that would be bookmarked.
curly braces
wordwrap()
GET
$_POST[]
32. equivalence
error_reporting (0)
drop
double quotes
==
33. Asynchronous Javascript And XML
mysql_close($dbc)
AJAX
int
$varname[key]
34. Returns a string with backslashes in front of the specified characters
POST
define()
$_GET[]
addcslashes()
35. does a certain action when called upon
for ($i = 0; $i < count($array); $i++) {statement(s);}
function
arsort()
the dollar sign $
36. To get over quotation marks while using arrays
curly braces
statement
+= or -= or *= or /=
defined()
37. leading zero: 0100 or 0567
octal
for ($i = 0; $i < count($array); $i++) {statement(s);}
strlen()
===
38. To sort values of an array in reversed order
underscores
statement
indexed array
rsort()
39. A conditional or loop is a ________________.
wordwrap()
control structure
mysql_fetch_object()
1
40. What You See Is What You Get
WYSIWYG
preg_split()
define()
ini_set ('display_errors', 1)
41. bitwise XOR
defined()
===
^
ini_set ('display_errors', 1)
42. This fatal fatal is caused by a semantic mistake: omission of a semicolon or imbalance of quotations or parentheses or braces.
preg_split()
Parse error
error_reporting (E_ALL)
$array[] = item
43. The array that stores variables specific to a user's visit
urlencode()
DTD
$_SESSION[]
AJAX
44. To refer to an element in a multidimensional array list the indices in order of _____ to more precise;
Magic Constant
general
open source
^
45. Used to find the length of a string
numbers
preg_match()
$dbc = mysql_connect(hostname, username, password)
strlen()
46. To set up error reporting
associative array
parentheses
function error_reporting()
curly braces; ${$total}
47. Used to convert certain HTML tags into their entity versions.
htmlspecialchars()
mysql_fetch_object()
array()
switch
48. To sort by the keys while maintaining the correlation between the key and its value
$dbc = mysql_connect(hostname, username, password)
ksort()
precedence
string
49. To check if a constant is already declared
.=
Notice
defined()
POST
50. PHP has two conditional: if and ______.
switch
htmlspecialchars()
not
string