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. This error refers to a variable with no value.
trim()
Notice
sql
for ($i = 0; $i < count($array); $i++) {statement(s);}
2. collection of binary data
round() Function
statement
<<
string
3. allows you to split strings based on more complex rules
indexed array
preg_split()
htmlentities()
XML
4. To determine the amount of elements in an array
count()
server-side programing
<<
double quotes
5. Use ______ when a variable contains any amount of variables; in general.
HTML
ini_set ('display_errors', 1)
$_POST[]
double quotes
6. a language in which to make querys to a database with
DTD
sql
defined()
preg_replace()
7. standard notation
associative array
decimal
HTML
Magic Constant
8. any programing language where the script is parsed on the server
ASP
server-side programing
round() Function
substr_count()
9. a line of information that can be stored in a variable or used in a function or statement
strlen()
if/elseif/else and switch statements
string
is_numeric()
10. Returns a string with backslashes in front of predefined characters
for ($i = 0; $i < count($array); $i++) {statement(s);}
error_reporting (E_ALL)
addslashes()
POST
11. ___________ can be used with substr() to count backward
int
negative numbers
string
empty()
12. The ouput of var_export((bool)"NULL");
$$
true
drop
&
13. Creates a pointer to a file with the declared mode (read - write -etc.).
fopen()
array
superglobal
Magic Constant
14. does a certain action when called upon
?>
asort()
function
Object
15. Online applications and resources which are available to the general public with very few restrictions
open source
index
AJAX
decimal
16. The four main error types are:Notice - Warning - ________ and Error.
wordwrap()
error_reporting (E_ALL | E_STRICT)
reassign
Parse error
17. To check if a constant is already declared
$_POST[]
defined()
error_reporting (0)
$array[] = item
18. Function that contains the highest value that rand() can have randomly
getrandmax()
null
GET
boolean
19. bitwise AND
loops
&
array()
isset()
20. _______ is a comparison operator
?>
!= inequality
sort()
open source
21. An array whose keys are strings; also known as a hash.
associative array
1
>>
switch
22. Asynchronous Javascript And XML
ksort()
precedence
AJAX
chr()
23. The concatenation assignment operator?
.=
substr_count()
string
if/elseif/else and switch statements
24. leading zero: 0100 or 0567
the period; .
GET
unset()
octal
25. To set up error reporting
the dollar sign $
function error_reporting()
drop
general
26. Use ______ when there are no variables in the string
single quotes
decimal
$varname[key]
.=
27. Hypertext Preprocessor - a server-side programing language used to create webpages
htmlspecialchars()
PHP
<<
unset()
28. Control structure that continue exit - they perform specific statements for a determined number of iterations.
array
loops
statement
foreach loop
29. either hasn't yet been set or is assigned NULL value
array()
unset()
Warning
null
30. This will not show error reporting - it will be turned off.
str_word_count()
strlen()
error_reporting (0)
the escape character ''
31. When used the value can be passed safely through the URL (GET).
for ($i = 0; $i < count($array); $i++) {statement(s);}
1
urlencode()
Warning
32. a positive or negative number
list()
integer
Warning
bin2hex()
33. $_SERVER - $_POST - $_GET - $_COOKIE - $_SESSION - $_ENV; special arrays.
null
superglobal
AJAX
octal
34. container of ordered data elements
Array
defined()
array()
XML
35. To reset an array _______ the array() function to the array
html_entity_decode()
reassign
?>
E_STRICT
36. Define(NAME,value)
defined()
bin2hex()
trim()
Constant
37. Active Server Pages
ASP
mysql
sort()
strlen()
38. To get time data
for ($i = 0; $i < count($array); $i++) {statement(s);}
date()
fopen()
GET
39. Used to check if a variable has a valid numerical value; strings with numerical values pass.
server-side programing
+= or -= or *= or /=
is_numeric()
Error
40. searches the subject for matches to a given pattern replaced with the given replacement text
$dbc = mysql_connect(hostname, username, password)
Hex
preg_replace()
sql
41. To sort values of an array in reversed order
rsort()
abs()
string
Object
42. signed integer
XML
empty()
int
rsort()
43. a storage location in the computer's memory that has a type & a name and a contents
numbers
==
variable
ini_set ('display_errors', 1)
44. What You See Is What You Get
WYSIWYG
double quotes
str_ireplace()
function
45. Used to display errors in a particular script - should be placed at top of script.
46. _________ can be used in conditional statements to set precedence
str_ireplace()
parentheses
getrandmax()
preg_split()
47. The name of the #! used to designate the location of the PHP binary
XOR
Shebang
HTTP
mysql_fetch_object()
48. $_POST and $_GET are ________ variables.
predefined
reassign
$_POST[]
$varname[key]
49. $_POST Data sent using POST found is sent to _______
wordwrap()
array()
predefined variable
integer
50. The seven main SQL (structured query language) functions are alter - create - delete - _______ - insert - select - update
&
empty()
array()
drop