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. a type with two possible values: true and false
Constant
parentheses
loops
boolean
2. A data structure that can hold a number of items of data of the same type eg. a list of names
ASP
predefined variable
array
wordwrap()
3. Used to check if a given variable has an "empty" value - no value or 0 or FALSE.
control structure
HTTP
integer
empty()
4. An array whose keys are strings; also known as a hash.
rand()
Constant
index
associative array
5. Function used to round down to the lowest integer
loops
floor()
error_reporting (E_ALL | E_STRICT)
&
6. Function can you use to format a number with commas
null
number_format()
PHP
client-side programing
7. To find how many substrings are in a string
$_GET[]
the escape character ''
substr_count()
double quotes
8. To sort by the keys while maintaining the correlation between the key and its value
unset()
fopen()
ksort()
mysql
9. Function used to convert new lines in a variable from a form to <br /> tags so that the data can be formatted correctly.
fopen()
chop()
boolean
nl2br()
10. a line of information that can be stored in a variable or used in a function or statement
$array[] = item
strtok()
if/elseif/else and switch statements
string
11. Active Server Pages
associative array
Error
ASP
+= or -= or *= or /=
12. An array of variables passed in the URL
$array[] = item
getrandmax()
is_numeric()
$_GET[]
13. Used to encrypt values - it is a one-way encryption method
error_reporting (E_ALL | E_STRICT)
Parse error
crypt()
array()
14. $_POST and $_GET are ________ variables.
asort()
rsort()
DTD
predefined
15. Used to convert all HTML tags into their entity versions.
SEO
mysql
htmlentities()
Error
16. says 'if' this then do this 'else' do this or 'while' this do this
$_REQUEST
DTD
statement
str_ireplace()
17. To close a connection between a database
mysql_close($dbc)
^
htmlentities()
urlencode()
18. The name of the #! used to designate the location of the PHP binary
$_POST[]
unset()
rand()
Shebang
19. To counter htmlentities()
html_entity_decode()
$array[] = item
Object
if/elseif/else and switch statements
20. The array that stores variables specific to a user's visit
str_ireplace()
Parse error
parentheses
$_SESSION[]
21. Used to find the length of a string
unset()
WYSIWYG
strlen()
loops
22. Shorthand used to increment and decrement
SGML
string
$var++ and $var
curly braces; ${$total}
23. Tag to end a php script
?>
Shebang
>>
mysql_fetch_object()
24. All variables must begin with _________.
the dollar sign $
preg_split()
str_word_count()
array
25. This will not show error reporting - it will be turned off.
error_reporting (0)
===
XML
array()
26. To iterate over the values of an array
crypt()
GET
$_SESSION[]
for ($i = 0; $i < count($array); $i++) {statement(s);}
27. The prefix for a dynamic variable - also known as a variable variable
predefined variable
<<
$$
wordwrap()
28. either hasn't yet been set or is assigned NULL value
null
<?php
$var++ and $var
statement
29. To append elements to an array - this will assign item to the next available index; associative arrays get messy.
htmlentities()
curly braces
$array[] = item
list()
30. Creates a pointer to a file with the declared mode (read - write -etc.).
strip_tags()
include() and require()
sort()
fopen()
31. EXtensible Markup Language
AJAX
predefined
nl2br()
XML
32. container of ordered data elements
Array
switch
function
the period; .
33. The output of var_export((float)array());
html_entity_decode()
Shebang
0
drop
34. The output of var_export((float)array(0));
the escape character ''
1
Magic Constant
mysql
35. Used to create a substring (referred to as a token) from a larger string
strtok()
chop()
HTML
str_word_count()
36. Function used to find the absolute value of a number or numeric variable
defined()
abs()
error_reporting (0)
SGML
37. Alias of rtrim()
sort()
!= inequality
mysql_close($dbc)
chop()
38. Use _______ for passwords or pages that would not be bookmarked or pages that require security.
echo
^
nl2br()
POST
39. Returns a character from a specified ASCII value
include() and require()
chr()
parentheses
index
40. $_SERVER - $_POST - $_GET - $_COOKIE - $_SESSION - $_ENV; special arrays.
predefined
superglobal
XOR
the escape character ''
41. The seven main SQL (structured query language) functions are alter - create - delete - _______ - insert - select - update
drop
chr()
string
error_reporting (E_ALL)
42. To sort values of an array in reversed order
rsort()
general
Notice
is_numeric()
43. leading zero: 0100 or 0567
string
octal
the period; .
boolean
44. An array whose keys are numbers.
indexed array
variable
general
if/elseif/else and switch statements
45. To merge arrays
WYSIWYG
$_GET[]
array_merge()
strlen()
46. does a certain action when called upon
int
function
Parse error
echo
47. ____ or key is referred to for a value within an array.
index
floor()
control structure
curly braces
48. Variable names cannot begin with _______
numbers
statement
number_format()
$var++ and $var
49. To check if a constant is already declared
defined()
Warning
true
int
50. This will show all error reporting.
POST
$_POST[]
error_reporting (E_ALL)
DTD