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 seven main error reporting constants are: E_NOTICE - E_WARNING - E_PARSE - E_ERROR - E_ALL - _____ - E_DEPRECATED
htmlspecialchars()
curly braces
rsort()
E_STRICT
2. To sort values of an array without regard to the keys
substr_count()
predefined variable
$varname[key]
sort()
3. An array whose keys are numbers.
html_entity_decode()
GET
the escape character ''
indexed array
4. signed floating-point value
float
preg_replace()
E_STRICT
SGML
5. Use ______ when a variable contains any amount of variables; in general.
if/elseif/else and switch statements
double quotes
arsort()
POST
6. The concatenation operator?
the period; .
HTTP
XML
$_REQUEST
7. To iterate over the values of an array
for ($i = 0; $i < count($array); $i++) {statement(s);}
drop
unset()
strip_tags()
8. container of both data and code
$dbc = mysql_connect(hostname, username, password)
count()
Object
round() Function
9. Used to check if a variable has a valid numerical value; strings with numerical values pass.
trim()
loops
is_numeric()
double quotes
10. Search Engine Optimization
==
SEO
boolean
count()
11. The seven main SQL (structured query language) functions are alter - create - delete - _______ - insert - select - update
loops
defined()
E_STRICT
drop
12. Standard Generalized Markup Language
shuffle()
SGML
wordwrap()
not
13. signed integer
Array
ksort()
int
if/elseif/else and switch statements
14. Used to check if a given variable has an "empty" value - no value or 0 or FALSE.
client-side programing
the dollar sign $
server-side programing
empty()
15. To counter htmlentities()
==
wordwrap()
html_entity_decode()
substr_count()
16. To sort the values while maintaining the correlation between each value and its key - in reversed order
GET
XOR
arsort()
error_reporting (E_ALL & -E_NOTICE)
17. function Function used to create a random number
rand()
the period; .
$_REQUEST
open source
18. Hyper Text Transfer Protocol
$$
HTTP
chop()
server-side programing
19. Use ______ when there are no variables in the string
count()
associative array
single quotes
curly braces
20. Variable names can begin with __________
list()
underscores
ceil()
predefined variable
21. a language in which to make querys to a database with
Error
sql
PHP
==
22. Function used to convert new lines in a variable from a form to <br /> tags so that the data can be formatted correctly.
GET
nl2br()
general
list()
23. This will not show error reporting - it will be turned off.
error_reporting (0)
html_entity_decode()
is_numeric()
addslashes()
24. either hasn't yet been set or is assigned NULL value
null
preg_split()
XOR
int
25. An array whose keys are strings; also known as a hash.
htmlspecialchars()
sql
associative array
error_reporting (0)
26. The output of var_export((float)array());
predefined
E_STRICT
0
strtok()
27. any programing language where the script is parsed on the server
0
loops
server-side programing
preg_split()
28. Uses two arguments: constant name and constant definition
1
ini_set ('display_errors', 1)
DTD
define()
29. PHP has two conditional: if and ______.
switch
function
double quotes
mysql_fetch_array()
30. The order of operations.
precedence
control structure
curly braces; ${$total}
statement
31. ____ or key is referred to for a value within an array.
parentheses
index
arsort()
is_numeric()
32. Tag to begin a php script
<?php
for ($i = 0; $i < count($array); $i++) {statement(s);}
fopen()
date()
33. To determine the amount of elements in an array
unset()
fopen()
DTD
count()
34. To sort values of an array in reversed order
addcslashes()
chop()
rsort()
define()
35. The four main error types are:Notice - Warning - ________ and Error.
Parse error
negative numbers
the period; .
the dollar sign $
36. This error refers to a variable with no value.
==
Notice
substr_count()
not
37. bitwise AND
defined()
unset()
&
precedence
38. a database which is best supported by PHP
mysql
WYSIWYG
string
curly braces; ${$total}
39. Used to convert certain HTML tags into their entity versions.
$varname[key]
trim()
htmlspecialchars()
null
40. To iterate over the keys and values of an array
chr()
foreach loop
+= or -= or *= or /=
round() Function
41. $_SERVER is a ________ variable.
reassign
htmlspecialchars()
not
predefined
42. a positive or negative number
numbers
true
XOR
integer
43. Returns an array that corresponds to the fetched row of MySQL data and moves the internal data pointer ahead
mysql_fetch_array()
<?php
variable
<<
44. Leading 0x: 0x13F or 0xA23
0
mysql_fetch_object()
Hex
crypt()
45. bitwise right shift
mysql_fetch_array()
associative array
+= or -= or *= or /=
>>
46. To include files - _______ will give errors and _________ will terminate execution().
+= or -= or *= or /=
include() and require()
double quotes
shuffle()
47. Hyper Text Markup Language
POST
1
HTML
rsort()
48. Use ______ for search engines or catalogued pages or pages that would be bookmarked.
wordwrap()
GET
^
Object
49. To refer to an element in a multidimensional array list the indices in order of _____ to more precise;
count()
if/elseif/else and switch statements
for ($i = 0; $i < count($array); $i++) {statement(s);}
general
50. Similar to mysql_fetch_array() - but cannot be accessed by integer offset
AJAX
indexed array
reassign
mysql_fetch_object()