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. The four main error types are:Notice - Warning - ________ and Error.
parentheses
null
Parse error
GET
2. the most basic function in PHP used to output information to the page
not
$_SESSION[]
is_numeric()
echo
3. To delete a variable or an element of an array
unset()
Object
boolean
indexed array
4. To find how many substrings are in a string
string
Warning
int
substr_count()
5. signed integer
str_ireplace()
int
count()
is_numeric()
6. Besides GET and POST ________ can be used to access data but $_POST and $_GET are more precise and therefore preferable.
$_REQUEST
chop()
chr()
error_reporting (E_ALL | E_STRICT)
7. The ouput of var_export((bool)"NULL");
!= inequality
if/elseif/else and switch statements
mysql_fetch_object()
true
8. Used to check if a variable has a valid numerical value; strings with numerical values pass.
$varname[key]
chr()
is_numeric()
parentheses
9. To declare a constant
ASP
define()
null
Shebang
10. A data structure that can hold a number of items of data of the same type eg. a list of names
$var++ and $var
server-side programing
strlen()
array
11. a database which is best supported by PHP
foreach
mysql
Error
$$
12. To sort values of an array in reversed order
!= inequality
preg_match()
rsort()
<?php
13. To reset an array _______ the array() function to the array
reassign
$_POST[]
!= inequality
loops
14. Used to remove any white space - spaces or newlines or tabs - from the beginning and end of a string - not the middle.
trim()
index
defined()
crypt()
15. This will show all error reporting.
indexed array
0
string
error_reporting (E_ALL)
16. Used to convert all HTML tags into their entity versions.
htmlentities()
associative array
loops
+= or -= or *= or /=
17. An array of variables passed with <input /> data
precedence
abs()
$_POST[]
>>
18. This error refers to a variable with no value.
error_reporting (E_ALL)
unset()
Notice
isset()
19. any programing language where the script is parsed on the server
server-side programing
list()
chr()
array
20. Document Type Definitions
$dbc = mysql_connect(hostname, username, password)
foreach loop
DTD
precedence
21. To sort by the keys while maintaining the correlation between the key and its value
ksort()
bin2hex()
loops
define()
22. Asynchronous Javascript And XML
shuffle()
AJAX
fopen()
&
23. Returns a character from a specified ASCII value
mysql_fetch_array()
htmlentities()
error_reporting (E_ALL | E_STRICT)
chr()
24. Used to check if a variable has any value (including 0 or FALSE or an empty string).
isset()
SEO
strtok()
Array
25. Use ______ when a variable contains any amount of variables; in general.
decimal
addslashes()
date()
double quotes
26. ___________ can be used with substr() to count backward
E_STRICT
Array
negative numbers
drop
27. To reorganise the array randomly
bin2hex()
mysql_fetch_array()
drop
shuffle()
28. To sort the values while maintaining the correlation between each value and its key - in reversed order
error_reporting (0)
$_POST[]
arsort()
.=
29. To check if a constant is already declared
server-side programing
Shebang
defined()
reassign
30. Used to display errors in a particular script - should be placed at top of script.
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
31. Define(NAME,value)
Constant
POST
bin2hex()
mysql_fetch_array()
32. identity
strlen()
===
array()
.=
33. either hasn't yet been set or is assigned NULL value
mysql_close($dbc)
underscores
null
preg_replace()
34. a language in which to make querys to a database with
Error
mysql_fetch_object()
sql
isset()
35. TRUE or FALSE
boolean
<?php
server-side programing
===
36. Hyper Text Markup Language
the dollar sign $
HTML
preg_replace()
defined()
37. $_SERVER - $_POST - $_GET - $_COOKIE - $_SESSION - $_ENV; special arrays.
integer
crypt()
superglobal
foreach
38. The seven main SQL (structured query language) functions are alter - create - delete - _______ - insert - select - update
predefined
DTD
drop
^
39. a line of information that can be stored in a variable or used in a function or statement
chop()
string
control structure
substr_count()
40. The seven main error reporting constants are: E_NOTICE - E_WARNING - E_PARSE - E_ERROR - E_ALL - _____ - E_DEPRECATED
if/elseif/else and switch statements
client-side programing
E_STRICT
define()
41. Used to check if a given variable has an "empty" value - no value or 0 or FALSE.
?>
null
$var++ and $var
empty()
42. Returns an array that corresponds to the fetched row of MySQL data and moves the internal data pointer ahead
string
mysql_fetch_array()
$_SESSION[]
htmlentities()
43. To sort the values while maintaining the correlation between each value and its key
asort()
boolean
int
WYSIWYG
44. What You See Is What You Get
Parse error
$varname[key]
octal
WYSIWYG
45. used to round numeric values.
list()
defined()
loops
round() Function
46. returns the number of matches found by a given search string under this format...
$dbc = mysql_connect(hostname, username, password)
preg_match()
POST
Object
47. does a certain action when called upon
function
$array[] = item
int
if/elseif/else and switch statements
48. Creates a pointer to a file with the declared mode (read - write -etc.).
strlen()
the period; .
fopen()
curly braces; ${$total}
49. _______ is a comparison operator
!= inequality
foreach loop
round() Function
integer
50. Variable names can begin with __________
?>
variable
preg_split()
underscores