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.
Parse error
substr_count()
for ($i = 0; $i < count($array); $i++) {statement(s);}
unset()
2. This will show all error reporting except for notice errors.
predefined
error_reporting (E_ALL & -E_NOTICE)
Error
substr_count()
3. All variables must begin with _________.
the dollar sign $
for ($i = 0; $i < count($array); $i++) {statement(s);}
the escape character ''
$_SESSION[]
4. Function can you use to format a number with commas
bin2hex()
ksort()
number_format()
SEO
5. To sort values of an array without regard to the keys
decimal
sort()
$varname[key]
chop()
6. Tag to end a php script
?>
server-side programing
$varname[key]
<<
7. The concatenation assignment operator?
server-side programing
preg_split()
.=
open source
8. bitwise right shift
$var++ and $var
predefined
chop()
>>
9. Used to check if a variable has any value (including 0 or FALSE or an empty string).
the period; .
variable
foreach loop
isset()
10. print $_SERVER will _____ work if you use the print function on arrays.
AJAX
str_ireplace()
$_REQUEST
not
11. addition
indexed array
+
XML
array()
12. TRUE or FALSE
boolean
octal
Shebang
index
13. An array whose keys are strings; also known as a hash.
negative numbers
boolean
===
associative array
14. The ouput of var_export((bool)"NULL");
true
preg_match()
int
getrandmax()
15. bitwise AND
integer
&
Error
string
16. To determine the amount of elements in an array
count()
.=
$varname[key]
predefined variable
17. leading zero: 0100 or 0567
PHP
strlen()
$array[] = item
octal
18. To sort values of an array in reversed order
rsort()
WYSIWYG
$dbc = mysql_connect(hostname, username, password)
^
19. a language in which to make querys to a database with
sql
urlencode()
function error_reporting()
the escape character ''
20. To find how many substrings are in a string
substr_count()
asort()
foreach
HTTP
21. equivalence
number_format()
==
negative numbers
$_POST[]
22. Returns a string with backslashes in front of the specified characters
ceil()
+= or -= or *= or /=
the dollar sign $
addcslashes()
23. Function that contains the highest value that rand() can have randomly
getrandmax()
the period; .
open source
<?php
24. Used to check if a variable has a valid numerical value; strings with numerical values pass.
mysql_fetch_array()
switch
&
is_numeric()
25. Control structures that break exit
count()
getrandmax()
if/elseif/else and switch statements
statement
26. does a certain action when called upon
function
string
Warning
Parse error
27. 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.
XML
strtok()
error_reporting (E_ALL | E_STRICT)
GET
28. Hyper Text Markup Language
function
htmlentities()
list()
HTML
29. To sort by the keys while maintaining the correlation between the key and its value
defined()
SEO
error_reporting (E_ALL)
ksort()
30. To assign keys to the values in an array
array()
index
Notice
bin2hex()
31. To iterate over the values of an array
?>
for ($i = 0; $i < count($array); $i++) {statement(s);}
null
mysql_fetch_object()
32. $_SERVER is a ________ variable.
define()
predefined
chr()
error_reporting (E_ALL)
33. Active Server Pages
function error_reporting()
mysql_fetch_object()
ASP
substr_count()
34. function Function used to create a random number
variable
rand()
predefined
the escape character ''
35. To declare a constant
htmlentities()
0
Shebang
define()
36. Function used to round up to the highest integer
addcslashes()
define()
?>
ceil()
37. An array of variables passed with <input /> data
the escape character ''
HTTP
double quotes
$_POST[]
38. To remove all HTML and PHP tags.
strip_tags()
boolean
!= inequality
statement
39. To counter htmlentities()
count()
html_entity_decode()
null
variable
40. To reset an array _______ the array() function to the array
reassign
Constant
SEO
Error
41. Hyper Text Transfer Protocol
chop()
HTTP
Array
Warning
42. a type with two possible values: true and false
string
foreach loop
precedence
boolean
43. bitwise XOR
^
floor()
loops
unset()
44. This will not show error reporting - it will be turned off.
superglobal
error_reporting (0)
indexed array
numbers
45. The seven main SQL (structured query language) functions are alter - create - delete - _______ - insert - select - update
drop
foreach loop
mysql
bin2hex()
46. What You See Is What You Get
1
WYSIWYG
PHP
==
47. Hypertext Preprocessor - a server-side programing language used to create webpages
Constant
substr_count()
POST
PHP
48. The syntax for connecting to a database
the dollar sign $
$dbc = mysql_connect(hostname, username, password)
underscores
preg_match()
49. Control structure that continue exit - they perform specific statements for a determined number of iterations.
$_REQUEST
<?php
HTTP
loops
50. To check if a constant is already declared
preg_replace()
numbers
defined()
define()