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. Function used to convert new lines in a variable from a form to <br /> tags so that the data can be formatted correctly.
rand()
substr_count()
nl2br()
function
2. Used to find the length of a string
Parse error
parentheses
$$
strlen()
3. Control structures that break exit
if/elseif/else and switch statements
0
mysql_fetch_array()
mysql_close($dbc)
4. The seven main error reporting constants are: E_NOTICE - E_WARNING - E_PARSE - E_ERROR - E_ALL - _____ - E_DEPRECATED
getrandmax()
WYSIWYG
predefined
E_STRICT
5. An array of variables passed in the URL
foreach
$_GET[]
Shebang
chr()
6. Define(NAME,value)
Constant
mysql_fetch_array()
octal
reassign
7. To sort the values while maintaining the correlation between each value and its key
boolean
general
floor()
asort()
8. a line of information that can be stored in a variable or used in a function or statement
string
bin2hex()
reassign
strip_tags()
9. When used the value can be passed safely through the URL (GET).
urlencode()
client-side programing
Hex
foreach
10. Used to check if a variable has any value (including 0 or FALSE or an empty string).
client-side programing
asort()
isset()
ASP
11. To find how many substrings are in a string
int
error_reporting (0)
substr_count()
nl2br()
12. The prefix for a dynamic variable - also known as a variable variable
negative numbers
0
$$
index
13. container of both data and code
$dbc = mysql_connect(hostname, username, password)
the period; .
$array[] = item
Object
14. EXtensible Markup Language
+= or -= or *= or /=
isset()
XML
SGML
15. standard notation
string
statement
decimal
shuffle()
16. Used to convert all HTML tags into their entity versions.
htmlentities()
the dollar sign $
define()
Parse error
17. This will show all error reporting except for notice errors.
parentheses
echo
error_reporting (E_ALL & -E_NOTICE)
curly braces
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)
XOR
list()
nl2br()
19. The name of the #! used to designate the location of the PHP binary
HTML
Shebang
$array[] = item
Array
20. Use ______ when a variable contains any amount of variables; in general.
control structure
ASP
1
double quotes
21. Function can you use to format a number with commas
include() and require()
ini_set ('display_errors', 1)
number_format()
substr_count()
22. a storage location in the computer's memory that has a type & a name and a contents
Error
function
shuffle()
variable
23. Returns an array that corresponds to the fetched row of MySQL data and moves the internal data pointer ahead
curly braces; ${$total}
mysql_fetch_array()
error_reporting (0)
predefined variable
24. Active Server Pages
Warning
client-side programing
nl2br()
ASP
25. This will show all error reporting.
is_numeric()
isset()
error_reporting (E_ALL)
double quotes
26. Uses two arguments: constant name and constant definition
server-side programing
string
define()
predefined variable
27. A conditional or loop is a ________________.
Hex
control structure
Notice
string
28. a language in which to make querys to a database with
isset()
array
sql
===
29. print $_SERVER will _____ work if you use the print function on arrays.
numbers
ceil()
not
list()
30. Similar to mysql_fetch_array() - but cannot be accessed by integer offset
negative numbers
mysql_fetch_object()
double quotes
integer
31. This fatal fatal is caused by a semantic mistake: omission of a semicolon or imbalance of quotations or parentheses or braces.
Parse error
control structure
define()
===
32. To append elements to an array - this will assign item to the next available index; associative arrays get messy.
is_numeric()
define()
+
$array[] = item
33. This will not show error reporting - it will be turned off.
error_reporting (0)
isset()
predefined variable
error_reporting (E_ALL)
34. bitwise AND
&
str_word_count()
isset()
error_reporting (0)
35. does a certain action when called upon
addcslashes()
single quotes
DTD
function
36. To put a dollar sign before a variable like $10 where 10 is the variable's value - you can escape the first dollar sign; $$cost; or you can use __________.
curly braces; ${$total}
error_reporting (E_ALL)
POST
error_reporting (0)
37. To sort values of an array in reversed order
urlencode()
control structure
switch
rsort()
38. Tag to end a php script
int
?>
ini_set ('display_errors', 1)
curly braces; ${$total}
39. collection of binary data
error_reporting (E_ALL)
string
precedence
>>
40. Function used to find the absolute value of a number or numeric variable
defined()
Shebang
abs()
HTTP
41. To delete a variable or an element of an array
isset()
unset()
1
<<
42. To sort the values while maintaining the correlation between each value and its key - in reversed order
integer
echo
arsort()
array_merge()
43. returns the number of matches found by a given search string under this format...
htmlentities()
preg_match()
ASP
if/elseif/else and switch statements
44. The concatenation operator?
the period; .
POST
round() Function
ASP
45. signed integer
numbers
.=
int
Parse error
46. To get over quotation marks while using arrays
wordwrap()
if/elseif/else and switch statements
curly braces
reassign
47. Returns a string with backslashes in front of predefined characters
<?php
mysql_close($dbc)
addslashes()
date()
48. equivalence
boolean
==
switch
function error_reporting()
49. Search Engine Optimization
associative array
integer
SEO
^
50. Alias of rtrim()
HTTP
Hex
underscores
chop()