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. To delete a variable or an element of an array
unset()
$array[] = item
Hex
superglobal
2. EXtensible Markup Language
mysql_fetch_object()
superglobal
shuffle()
XML
3. Returns a string with backslashes in front of predefined characters
E_STRICT
boolean
is_numeric()
addslashes()
4. a language in which to make querys to a database with
sql
function error_reporting()
+
for ($i = 0; $i < count($array); $i++) {statement(s);}
5. To close a connection between a database
if/elseif/else and switch statements
unset()
mysql_close($dbc)
associative array
6. used to round numeric values.
single quotes
unset()
array()
round() Function
7. print $_SERVER will _____ work if you use the print function on arrays.
octal
$_SESSION[]
not
DTD
8. Tag to begin a php script
chr()
<?php
Hex
asort()
9. The three types of loops in PHP are: for - while - ____.
WYSIWYG
not
foreach
?>
10. To declare a constant
preg_match()
array
define()
^
11. This error arises from misusing a function.
statement
general
Warning
round() Function
12. Used to find the length of a string
list()
strlen()
shuffle()
drop
13. The seven main SQL (structured query language) functions are alter - create - delete - _______ - insert - select - update
error_reporting (0)
octal
strip_tags()
drop
14. the most basic function in PHP used to output information to the page
if/elseif/else and switch statements
echo
!= inequality
rsort()
15. any programing language where the user must support the language the script is written in
Error
client-side programing
$_SESSION[]
foreach
16. collection of binary data
switch
float
string
is_numeric()
17. leading zero: 0100 or 0567
octal
reassign
$_GET[]
SEO
18. This will show all errors that fall under E_ALL or E_STRICT - the pipe | is used for 'or' so that errors that fall under either will be shown.
error_reporting (E_ALL | E_STRICT)
PHP
array
SGML
19. $_POST Data sent using POST found is sent to _______
boolean
predefined variable
foreach
SEO
20. Converts a string of ASCII characters to hexadecimal values
&
bin2hex()
strtok()
double quotes
21. 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
22. Use ______ when there are no variables in the string
Object
WYSIWYG
mysql_close($dbc)
single quotes
23. An array of variables passed with <input /> data
indexed array
include() and require()
$_POST[]
predefined variable
24. bitwise XOR
^
array_merge()
$_GET[]
strtok()
25. Used to check if a variable has any value (including 0 or FALSE or an empty string).
string
XML
isset()
array
26. A conditional or loop is a ________________.
control structure
$varname[key]
single quotes
unset()
27. Asynchronous Javascript And XML
XOR
list()
$var++ and $var
AJAX
28. Function that contains the highest value that rand() can have randomly
>>
chop()
loops
getrandmax()
29. Returns an array that corresponds to the fetched row of MySQL data and moves the internal data pointer ahead
mysql_fetch_array()
function error_reporting()
HTTP
===
30. This will show all error reporting except for notice errors.
include() and require()
error_reporting (E_ALL & -E_NOTICE)
Magic Constant
PHP
31. The seven main error reporting constants are: E_NOTICE - E_WARNING - E_PARSE - E_ERROR - E_ALL - _____ - E_DEPRECATED
server-side programing
ksort()
E_STRICT
sort()
32. Hypertext Preprocessor - a server-side programing language used to create webpages
PHP
negative numbers
underscores
ceil()
33. Used to create a substring (referred to as a token) from a larger string
strtok()
array
Notice
superglobal
34. does a certain action when called upon
strip_tags()
function
&
loops
35. The array that stores variables specific to a user's visit
+
statement
the dollar sign $
$_SESSION[]
36. Function used to round down to the lowest integer
Warning
$$
floor()
open source
37. any programing language where the script is parsed on the server
shuffle()
GET
preg_match()
server-side programing
38. To sort values of an array in reversed order
mysql_fetch_array()
rsort()
ini_set ('display_errors', 1)
parentheses
39. A data structure that can hold a number of items of data of the same type eg. a list of names
mysql_fetch_array()
array
associative array
is_numeric()
40. function Function used to create a random number
count()
rand()
Parse error
strip_tags()
41. standard notation
decimal
chr()
!= inequality
E_STRICT
42. The ouput of var_export((bool)"NULL");
Parse error
true
boolean
curly braces
43. Hyper Text Transfer Protocol
POST
HTTP
single quotes
include() and require()
44. bitwise AND
Array
&
Warning
echo
45. An array whose keys are numbers.
single quotes
indexed array
Object
associative array
46. The four main error types are:Notice - Warning - ________ and Error.
Parse error
boolean
underscores
error_reporting (E_ALL)
47. a storage location in the computer's memory that has a type & a name and a contents
numbers
XML
htmlentities()
variable
48. To reset an array _______ the array() function to the array
define()
reassign
the escape character ''
preg_match()
49. TRUE or FALSE
index
predefined
boolean
integer
50. Search Engine Optimization
ASP
SEO
asort()
AJAX