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. Function used to round down to the lowest integer
integer
error_reporting (E_ALL | E_STRICT)
?>
floor()
2. To sort values of an array without regard to the keys
SEO
sort()
error_reporting (E_ALL)
$_SESSION[]
3. Control structures that break exit
HTML
htmlentities()
is_numeric()
if/elseif/else and switch statements
4. signed integer
int
array
array()
$_REQUEST
5. Predefined constants such as __LINE__ or __FILE__ or __FUNCTION__ or __CLASS__ and __METHOD__
Hex
indexed array
Magic Constant
$array[] = item
6. To get over quotation marks while using arrays
Parse error
+= or -= or *= or /=
predefined
curly braces
7. Variable names cannot begin with _______
error_reporting (E_ALL & -E_NOTICE)
XML
variable
numbers
8. leading zero: 0100 or 0567
chr()
function error_reporting()
curly braces; ${$total}
octal
9. To counter htmlentities()
trim()
Shebang
array()
html_entity_decode()
10. The four main error types are:Notice - Warning - ________ and Error.
Parse error
XML
rand()
predefined
11. To get time data
0
date()
Hex
function error_reporting()
12. Asynchronous Javascript And XML
nl2br()
E_STRICT
addslashes()
AJAX
13. Similar to mysql_fetch_array() - but cannot be accessed by integer offset
mysql_fetch_object()
unset()
htmlspecialchars()
open source
14. Used to display errors in a particular script - should be placed at top of script.
15. An array whose keys are strings; also known as a hash.
chr()
foreach loop
addslashes()
associative array
16. Uses two arguments: constant name and constant definition
preg_split()
error_reporting (E_ALL)
!= inequality
define()
17. Function used to round up to the highest integer
reassign
ceil()
ksort()
addslashes()
18. does a certain action when called upon
array()
function
string
array_merge()
19. To delete a variable or an element of an array
POST
unset()
ceil()
preg_match()
20. Alias of rtrim()
loops
negative numbers
chop()
AJAX
21. An array whose keys are numbers.
==
htmlentities()
array
indexed array
22. _________ can be used in conditional statements to set precedence
$array[] = item
true
parentheses
foreach loop
23. Variable names can begin with __________
underscores
predefined
+
function error_reporting()
24. The output of var_export((float)array(0));
GET
chr()
1
empty()
25. allows you to split strings based on more complex rules
Error
preg_split()
strip_tags()
Object
26. Returns a string with backslashes in front of the specified characters
addcslashes()
null
preg_split()
sql
27. bitwise left shift
<<
variable
0
array_merge()
28. To reorganise the array randomly
error_reporting (0)
$var++ and $var
array
shuffle()
29. Used to convert certain HTML tags into their entity versions.
E_STRICT
the period; .
WYSIWYG
htmlspecialchars()
30. To assign keys to the values in an array
array()
sort()
reassign
control structure
31. function Function used to create a random number
rand()
switch
SEO
$array[] = item
32. To assign array element values to individual variables
addslashes()
the period; .
list()
not
33. bitwise XOR
include() and require()
^
WYSIWYG
Shebang
34. To word wrap after a certain amount of characters.
?>
$varname[key]
Parse error
wordwrap()
35. To append elements to an array - this will assign item to the next available index; associative arrays get messy.
error_reporting (E_ALL)
$array[] = item
boolean
Object
36. To sort values of an array in reversed order
rsort()
$_REQUEST
associative array
.=
37. searches the subject for matches to a given pattern replaced with the given replacement text
htmlspecialchars()
$_REQUEST
Magic Constant
preg_replace()
38. signed floating-point value
AJAX
float
?>
^
39. Returns an array that corresponds to the fetched row of MySQL data and moves the internal data pointer ahead
mysql_fetch_array()
superglobal
floor()
ceil()
40. print $_SERVER will _____ work if you use the print function on arrays.
not
$varname[key]
error_reporting (E_ALL)
$_GET[]
41. Used to encrypt values - it is a one-way encryption method
str_ireplace()
crypt()
null
preg_match()
42. Tag to end a php script
$_GET[]
double quotes
?>
Notice
43. container of both data and code
$$
parentheses
Object
WYSIWYG
44. Use ______ when there are no variables in the string
empty()
arsort()
single quotes
trim()
45. bitwise AND
loops
Constant
&
preg_split()
46. bitwise right shift
>>
the period; .
open source
the dollar sign $
47. The array that stores variables specific to a user's visit
XOR
Array
bin2hex()
$_SESSION[]
48. To reset an array _______ the array() function to the array
curly braces
reassign
the period; .
parentheses
49. Returns a string with backslashes in front of predefined characters
fopen()
addslashes()
chr()
array()
50. A conditional or loop is a ________________.
crypt()
control structure
$$
underscores