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. _______ is a comparison operator
$_POST[]
!= inequality
+
?>
2. What You See Is What You Get
addcslashes()
WYSIWYG
substr_count()
preg_replace()
3. The concatenation operator?
html_entity_decode()
bin2hex()
count()
the period; .
4. $_SERVER is a ________ variable.
predefined
numbers
GET
Shebang
5. Use _______ for passwords or pages that would not be bookmarked or pages that require security.
Object
error_reporting (E_ALL | E_STRICT)
mysql_close($dbc)
POST
6. Use ________ to have multiple quotations in one string
index
the escape character ''
shuffle()
predefined
7. function Function used to create a random number
is_numeric()
rand()
string
error_reporting (E_ALL & -E_NOTICE)
8. Control structure that continue exit - they perform specific statements for a determined number of iterations.
asort()
client-side programing
loops
curly braces
9. Uses two arguments: constant name and constant definition
define()
Error
true
ksort()
10. Function that contains the highest value that rand() can have randomly
error_reporting (E_ALL | E_STRICT)
unset()
open source
getrandmax()
11. a type with two possible values: true and false
boolean
statement
floor()
string
12. Tag to begin a php script
the escape character ''
===
<?php
defined()
13. To assign keys to the values in an array
array()
<<
superglobal
$_REQUEST
14. Use ______ when a variable contains any amount of variables; in general.
SGML
double quotes
<<
curly braces; ${$total}
15. searches the subject for matches to a given pattern replaced with the given replacement text
precedence
defined()
preg_replace()
AJAX
16. Variable names can begin with __________
defined()
for ($i = 0; $i < count($array); $i++) {statement(s);}
curly braces; ${$total}
underscores
17. A conditional or loop is a ________________.
$_SESSION[]
control structure
if/elseif/else and switch statements
<<
18. This error refers to a variable with no value.
Constant
Notice
?>
HTML
19. The syntax for connecting to a database
list()
addcslashes()
$dbc = mysql_connect(hostname, username, password)
float
20. Standard Generalized Markup Language
chop()
SGML
server-side programing
abs()
21. Asynchronous Javascript And XML
count()
ASP
AJAX
string
22. To include files - _______ will give errors and _________ will terminate execution().
Parse error
include() and require()
$dbc = mysql_connect(hostname, username, password)
1
23. To close a connection between a database
Constant
XML
array()
mysql_close($dbc)
24. _____ is a logical operator
addslashes()
error_reporting (E_ALL & -E_NOTICE)
XOR
predefined
25. a language in which to make querys to a database with
ini_set ('display_errors', 1)
str_word_count()
float
sql
26. The four main error types are:Notice - Warning - ________ and Error.
Parse error
define()
array()
0
27. This error arises from misusing a function.
Warning
empty()
rsort()
shuffle()
28. Returns a string with backslashes in front of predefined characters
superglobal
addslashes()
$_REQUEST
ceil()
29. print $_SERVER will _____ work if you use the print function on arrays.
not
the period; .
$_POST[]
define()
30. $_POST Data sent using POST found is sent to _______
predefined variable
PHP
not
if/elseif/else and switch statements
31. To sort values of an array without regard to the keys
$varname[key]
htmlspecialchars()
sort()
function error_reporting()
32. Operators used to operate and assign
define()
+= or -= or *= or /=
if/elseif/else and switch statements
AJAX
33. The output of var_export((float)array());
mysql_fetch_array()
0
reassign
XOR
34. a line of information that can be stored in a variable or used in a function or statement
$dbc = mysql_connect(hostname, username, password)
open source
string
include() and require()
35. ___________ can be used with substr() to count backward
+= or -= or *= or /=
str_ireplace()
negative numbers
if/elseif/else and switch statements
36. Tag to end a php script
reassign
ini_set ('display_errors', 1)
?>
list()
37. This will show all error reporting.
htmlentities()
$dbc = mysql_connect(hostname, username, password)
loops
error_reporting (E_ALL)
38. To remove all HTML and PHP tags.
preg_match()
strip_tags()
ceil()
foreach loop
39. Control structures that break exit
if/elseif/else and switch statements
strip_tags()
isset()
count()
40. returns the number of matches found by a given search string under this format...
XML
preg_match()
empty()
$_GET[]
41. Document Type Definitions
wordwrap()
==
curly braces
DTD
42. An array of variables passed with <input /> data
arsort()
$_POST[]
general
index
43. says 'if' this then do this 'else' do this or 'while' this do this
statement
$dbc = mysql_connect(hostname, username, password)
foreach
curly braces
44. To refer to an element in a multidimensional array list the indices in order of _____ to more precise;
statement
WYSIWYG
general
0
45. Used to check if a variable has a valid numerical value; strings with numerical values pass.
echo
true
POST
is_numeric()
46. To sort values of an array in reversed order
rsort()
the dollar sign $
str_ireplace()
ksort()
47. This fatal error arises from memory allocation problem.
indexed array
Error
negative numbers
single quotes
48. Used to check if a given variable has an "empty" value - no value or 0 or FALSE.
floor()
single quotes
the period; .
empty()
49. The name of the #! used to designate the location of the PHP binary
octal
shuffle()
<<
Shebang
50. The array that stores variables specific to a user's visit
Shebang
sql
$_SESSION[]
foreach loop