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. ____ or key is referred to for a value within an array.
error_reporting (E_ALL)
index
Notice
empty()
2. Use ______ when there are no variables in the string
ini_set ('display_errors', 1)
foreach
single quotes
rand()
3. The output of var_export((float)array(0));
error_reporting (E_ALL | E_STRICT)
predefined
1
==
4. Use _______ for passwords or pages that would not be bookmarked or pages that require security.
Hex
POST
statement
Parse error
5. To sort values of an array without regard to the keys
1
sort()
defined()
boolean
6. To sort the values while maintaining the correlation between each value and its key - in reversed order
loops
string
arsort()
for ($i = 0; $i < count($array); $i++) {statement(s);}
7. To word wrap after a certain amount of characters.
wordwrap()
nl2br()
defined()
?>
8. The concatenation assignment operator?
!= inequality
str_ireplace()
.=
==
9. Function used to convert new lines in a variable from a form to <br /> tags so that the data can be formatted correctly.
===
ksort()
nl2br()
strtok()
10. Variable names cannot begin with _______
numbers
E_STRICT
open source
client-side programing
11. 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.
integer
general
error_reporting (E_ALL | E_STRICT)
indexed array
12. To assign keys to the values in an array
<<
Shebang
error_reporting (E_ALL | E_STRICT)
array()
13. Active Server Pages
list()
ASP
&
float
14. The seven main SQL (structured query language) functions are alter - create - delete - _______ - insert - select - update
$_GET[]
str_ireplace()
the escape character ''
drop
15. Search Engine Optimization
empty()
precedence
SEO
predefined variable
16. _______ is a comparison operator
!= inequality
superglobal
getrandmax()
?>
17. This will not show error reporting - it will be turned off.
error_reporting (E_ALL & -E_NOTICE)
Notice
predefined
error_reporting (0)
18. To counter htmlentities()
loops
array
html_entity_decode()
boolean
19. This error refers to a variable with no value.
string
Notice
server-side programing
error_reporting (0)
20. TRUE or FALSE
boolean
Shebang
empty()
unset()
21. An array of variables passed in the URL
Object
Parse error
$_GET[]
$array[] = item
22. Function used to round up to the highest integer
ASP
str_word_count()
ceil()
function error_reporting()
23. any programing language where the user must support the language the script is written in
client-side programing
addslashes()
null
Parse error
24. Used to check if a given variable has an "empty" value - no value or 0 or FALSE.
the dollar sign $
Constant
empty()
error_reporting (E_ALL | E_STRICT)
25. Used to replace a substring with another string - it is not case-sensitive.
str_ireplace()
0
+
function error_reporting()
26. 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}
fopen()
Object
trim()
27. An array whose keys are strings; also known as a hash.
mysql
round() Function
function
associative array
28. Control structures that break exit
WYSIWYG
if/elseif/else and switch statements
indexed array
==
29. searches the subject for matches to a given pattern replaced with the given replacement text
floor()
isset()
preg_replace()
statement
30. All variables must begin with _________.
E_STRICT
isset()
server-side programing
the dollar sign $
31. The output of var_export((float)array());
strip_tags()
0
E_STRICT
strtok()
32. a positive or negative number
precedence
switch
integer
getrandmax()
33. To iterate over the values of an array
floor()
Magic Constant
$_POST[]
for ($i = 0; $i < count($array); $i++) {statement(s);}
34. Variable names can begin with __________
ini_set ('display_errors', 1)
underscores
number_format()
shuffle()
35. bitwise AND
Shebang
Notice
underscores
&
36. Used to convert certain HTML tags into their entity versions.
precedence
SEO
htmlspecialchars()
boolean
37. Used to check if a variable has a valid numerical value; strings with numerical values pass.
is_numeric()
ceil()
getrandmax()
asort()
38. The four main error types are:Notice - Warning - ________ and Error.
Parse error
error_reporting (E_ALL & -E_NOTICE)
XML
<<
39. Control structure that continue exit - they perform specific statements for a determined number of iterations.
mysql_close($dbc)
associative array
ceil()
loops
40. container of both data and code
getrandmax()
Object
Parse error
function error_reporting()
41. To check if a constant is already declared
Parse error
urlencode()
boolean
defined()
42. equivalence
server-side programing
addcslashes()
==
echo
43. The ouput of var_export((bool)"NULL");
round() Function
HTTP
true
$_REQUEST
44. This fatal fatal is caused by a semantic mistake: omission of a semicolon or imbalance of quotations or parentheses or braces.
html_entity_decode()
E_STRICT
ASP
Parse error
45. a storage location in the computer's memory that has a type & a name and a contents
shuffle()
variable
Shebang
urlencode()
46. Leading 0x: 0x13F or 0xA23
floor()
null
Hex
^
47. Used to find the amount of words in a string.
float
mysql_fetch_object()
date()
str_word_count()
48. Online applications and resources which are available to the general public with very few restrictions
HTML
predefined
open source
strlen()
49. the most basic function in PHP used to output information to the page
abs()
chop()
general
echo
50. a line of information that can be stored in a variable or used in a function or statement
html_entity_decode()
predefined variable
asort()
string