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. Used to check if a given variable has an "empty" value - no value or 0 or FALSE.
sort()
$_SESSION[]
empty()
is_numeric()
2. $_SERVER - $_POST - $_GET - $_COOKIE - $_SESSION - $_ENV; special arrays.
$varname[key]
superglobal
Warning
statement
3. Leading 0x: 0x13F or 0xA23
Hex
curly braces; ${$total}
predefined
$varname[key]
4. standard notation
===
substr_count()
$_GET[]
decimal
5. This will show all error reporting except for notice errors.
predefined variable
substr_count()
error_reporting (E_ALL & -E_NOTICE)
htmlspecialchars()
6. To close a connection between a database
array_merge()
mysql_close($dbc)
Parse error
statement
7. To refer to an item in an array
foreach loop
ini_set ('display_errors', 1)
$varname[key]
chr()
8. To set up error reporting
htmlentities()
function error_reporting()
PHP
AJAX
9. The seven main error reporting constants are: E_NOTICE - E_WARNING - E_PARSE - E_ERROR - E_ALL - _____ - E_DEPRECATED
crypt()
E_STRICT
WYSIWYG
indexed array
10. Returns a string with backslashes in front of predefined characters
html_entity_decode()
Array
addslashes()
function
11. ____ or key is referred to for a value within an array.
index
string
chop()
+= or -= or *= or /=
12. Define(NAME,value)
ASP
Constant
boolean
^
13. The prefix for a dynamic variable - also known as a variable variable
$$
empty()
string
round() Function
14. To put a dollar sign before a variable like $10 where 10 is the variable's value - you can escape the first dollar sign; $$cost; or you can use __________.
chop()
<<
curly braces; ${$total}
is_numeric()
15. To sort the values while maintaining the correlation between each value and its key - in reversed order
preg_split()
ceil()
AJAX
arsort()
16. The ouput of var_export((bool)"NULL");
sql
predefined
true
$_POST[]
17. Function can you use to format a number with commas
general
number_format()
define()
AJAX
18. Alias of rtrim()
0
chop()
error_reporting (E_ALL | E_STRICT)
index
19. says 'if' this then do this 'else' do this or 'while' this do this
function error_reporting()
mysql
statement
unset()
20. Creates a pointer to a file with the declared mode (read - write -etc.).
wordwrap()
fopen()
+
floor()
21. To remove all HTML and PHP tags.
strip_tags()
include() and require()
DTD
$dbc = mysql_connect(hostname, username, password)
22. Function used to round down to the lowest integer
for ($i = 0; $i < count($array); $i++) {statement(s);}
list()
POST
floor()
23. a positive or negative number
integer
+= or -= or *= or /=
str_ireplace()
parentheses
24. container of ordered data elements
$array[] = item
Array
error_reporting (0)
wordwrap()
25. Uses two arguments: constant name and constant definition
define()
open source
htmlentities()
error_reporting (E_ALL)
26. To counter htmlentities()
include() and require()
predefined
shuffle()
html_entity_decode()
27. bitwise XOR
index
^
>>
strlen()
28. Used to convert certain HTML tags into their entity versions.
<<
HTML
parentheses
htmlspecialchars()
29. Use ______ when a variable contains any amount of variables; in general.
null
double quotes
fopen()
DTD
30. The concatenation operator?
the period; .
switch
$varname[key]
decimal
31. An array of variables passed in the URL
reassign
predefined
unset()
$_GET[]
32. To sort values of an array in reversed order
<<
rsort()
Error
ASP
33. An array of variables passed with <input /> data
.=
count()
$_POST[]
single quotes
34. Variable names can begin with __________
indexed array
str_word_count()
string
underscores
35. the most basic function in PHP used to output information to the page
echo
$_GET[]
asort()
==
36. To find how many substrings are in a string
octal
substr_count()
the period; .
>>
37. addition
$_GET[]
the period; .
curly braces; ${$total}
+
38. bitwise right shift
empty()
switch
>>
true
39. A data structure that can hold a number of items of data of the same type eg. a list of names
the period; .
mysql_fetch_array()
arsort()
array
40. To reset an array _______ the array() function to the array
loops
SGML
reassign
$_POST[]
41. The concatenation assignment operator?
crypt()
.=
double quotes
client-side programing
42. identity
>>
addslashes()
PHP
===
43. To iterate over the values of an array
PHP
for ($i = 0; $i < count($array); $i++) {statement(s);}
Array
ceil()
44. Used to find the amount of words in a string.
null
predefined
str_word_count()
str_ireplace()
45. used to round numeric values.
loops
rsort()
round() Function
curly braces; ${$total}
46. This error arises from misusing a function.
if/elseif/else and switch statements
Warning
bin2hex()
>>
47. Use ________ to have multiple quotations in one string
boolean
the escape character ''
mysql_fetch_object()
html_entity_decode()
48. Returns a character from a specified ASCII value
integer
chr()
ini_set ('display_errors', 1)
array()
49. Hyper Text Transfer Protocol
the escape character ''
array
HTTP
<<
50. Use _______ for passwords or pages that would not be bookmarked or pages that require security.
defined()
POST
===
$dbc = mysql_connect(hostname, username, password)