SUBJECTS
|
BROWSE
|
CAREER CENTER
|
POPULAR
|
JOIN
|
LOGIN
Business Skills
|
Soft Skills
|
Basic Literacy
|
Certifications
About
|
Help
|
Privacy
|
Terms
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. The output of var_export((float)array(0));
1
bin2hex()
drop
parentheses
2. Used to display errors in a particular script - should be placed at top of script.
3. This will show all error reporting.
.=
Parse error
foreach
error_reporting (E_ALL)
4. The seven main SQL (structured query language) functions are alter - create - delete - _______ - insert - select - update
Parse error
foreach loop
drop
shuffle()
5. a positive or negative number
ini_set ('display_errors', 1)
WYSIWYG
array_merge()
integer
6. Control structures that break exit
if/elseif/else and switch statements
echo
empty()
variable
7. a type with two possible values: true and false
$_REQUEST
boolean
ASP
str_word_count()
8. To iterate over the values of an array
+= or -= or *= or /=
define()
Magic Constant
for ($i = 0; $i < count($array); $i++) {statement(s);}
9. To declare a constant
&
Warning
define()
date()
10. To delete a variable or an element of an array
loops
htmlentities()
unset()
string
11. a line of information that can be stored in a variable or used in a function or statement
array()
switch
string
>>
12. Leading 0x: 0x13F or 0xA23
Hex
Parse error
list()
!= inequality
13. To sort by the keys while maintaining the correlation between the key and its value
ksort()
curly braces
strtok()
for ($i = 0; $i < count($array); $i++) {statement(s);}
14. bitwise left shift
list()
string
client-side programing
<<
15. Variable names cannot begin with _______
numbers
array()
function error_reporting()
the dollar sign $
16. Use ______ for search engines or catalogued pages or pages that would be bookmarked.
arsort()
the escape character ''
GET
Parse error
17. To close a connection between a database
mysql_close($dbc)
control structure
statement
error_reporting (E_ALL)
18. bitwise AND
+= or -= or *= or /=
define()
>>
&
19. Standard Generalized Markup Language
unset()
associative array
strip_tags()
SGML
20. To get over quotation marks while using arrays
curly braces
preg_split()
str_ireplace()
$$
21. To sort the values while maintaining the correlation between each value and its key - in reversed order
arsort()
wordwrap()
string
E_STRICT
22. Variable names can begin with __________
===
underscores
count()
Parse error
23. a database which is best supported by PHP
HTTP
$_POST[]
mysql
int
24. Use _______ for passwords or pages that would not be bookmarked or pages that require security.
XOR
array_merge()
mysql_fetch_object()
POST
25. The four main error types are:Notice - Warning - ________ and Error.
Parse error
round() Function
control structure
server-side programing
26. Function used to find the absolute value of a number or numeric variable
abs()
Array
chr()
parentheses
27. Used to check if a variable has a valid numerical value; strings with numerical values pass.
WYSIWYG
index
fopen()
is_numeric()
28. The order of operations.
predefined
precedence
POST
defined()
29. Returns a string with backslashes in front of the specified characters
bin2hex()
+
AJAX
addcslashes()
30. standard notation
decimal
boolean
foreach
Array
31. $_SERVER - $_POST - $_GET - $_COOKIE - $_SESSION - $_ENV; special arrays.
$_GET[]
superglobal
unset()
nl2br()
32. Shorthand used to increment and decrement
error_reporting (E_ALL & -E_NOTICE)
0
&
$var++ and $var
33. allows you to split strings based on more complex rules
preg_split()
POST
&
asort()
34. To get time data
date()
mysql
predefined variable
int
35. The array that stores variables specific to a user's visit
$_SESSION[]
htmlentities()
indexed array
addslashes()
36. Predefined constants such as __LINE__ or __FILE__ or __FUNCTION__ or __CLASS__ and __METHOD__
for ($i = 0; $i < count($array); $i++) {statement(s);}
null
Magic Constant
include() and require()
37. To refer to an item in an array
array
Shebang
$varname[key]
mysql
38. To include files - _______ will give errors and _________ will terminate execution().
addcslashes()
$array[] = item
include() and require()
server-side programing
39. To assign keys to the values in an array
Shebang
array()
Constant
!= inequality
40. a language in which to make querys to a database with
$array[] = item
switch
POST
sql
41. An array of variables passed with <input /> data
$_POST[]
underscores
the escape character ''
^
42. To merge arrays
fopen()
array_merge()
curly braces
empty()
43. To counter htmlentities()
html_entity_decode()
asort()
$dbc = mysql_connect(hostname, username, password)
$_REQUEST
44. container of both data and code
decimal
number_format()
Object
chr()
45. The concatenation operator?
strlen()
decimal
boolean
the period; .
46. The seven main error reporting constants are: E_NOTICE - E_WARNING - E_PARSE - E_ERROR - E_ALL - _____ - E_DEPRECATED
int
preg_match()
array
E_STRICT
47. Returns a string with backslashes in front of predefined characters
POST
preg_match()
addslashes()
client-side programing
48. Tag to end a php script
underscores
?>
ceil()
the escape character ''
49. equivalence
==
predefined
XOR
curly braces; ${$total}
50. TRUE or FALSE
define()
sort()
boolean
preg_split()