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 syntax for connecting to a database
Hex
$dbc = mysql_connect(hostname, username, password)
array()
crypt()
2. TRUE or FALSE
error_reporting (E_ALL | E_STRICT)
drop
boolean
general
3. Function used to convert new lines in a variable from a form to <br /> tags so that the data can be formatted correctly.
mysql_fetch_array()
preg_match()
nl2br()
Parse error
4. This will not show error reporting - it will be turned off.
preg_split()
error_reporting (0)
predefined
AJAX
5. standard notation
true
decimal
preg_match()
error_reporting (E_ALL)
6. ____ or key is referred to for a value within an array.
index
POST
error_reporting (E_ALL & -E_NOTICE)
control structure
7. print $_SERVER will _____ work if you use the print function on arrays.
control structure
POST
htmlspecialchars()
not
8. Used to create a substring (referred to as a token) from a larger string
octal
decimal
PHP
strtok()
9. $_SERVER - $_POST - $_GET - $_COOKIE - $_SESSION - $_ENV; special arrays.
superglobal
<?php
crypt()
statement
10. a storage location in the computer's memory that has a type & a name and a contents
arsort()
variable
error_reporting (0)
XML
11. Besides GET and POST ________ can be used to access data but $_POST and $_GET are more precise and therefore preferable.
bin2hex()
$_REQUEST
the escape character ''
decimal
12. The output of var_export((float)array(0));
1
strtok()
===
htmlspecialchars()
13. To word wrap after a certain amount of characters.
predefined variable
urlencode()
fopen()
wordwrap()
14. a positive or negative number
integer
unset()
ceil()
Array
15. The seven main SQL (structured query language) functions are alter - create - delete - _______ - insert - select - update
empty()
drop
error_reporting (E_ALL | E_STRICT)
server-side programing
16. says 'if' this then do this 'else' do this or 'while' this do this
strtok()
error_reporting (E_ALL)
statement
strlen()
17. This error refers to a variable with no value.
Notice
string
addslashes()
precedence
18. The order of operations.
precedence
HTML
urlencode()
arsort()
19. Hyper Text Markup Language
HTML
curly braces
Array
arsort()
20. Alias of rtrim()
rand()
POST
chop()
indexed array
21. An array of variables passed with <input /> data
precedence
curly braces; ${$total}
$_POST[]
urlencode()
22. _________ can be used in conditional statements to set precedence
parentheses
loops
.=
preg_split()
23. container of ordered data elements
Array
mysql_close($dbc)
str_ireplace()
server-side programing
24. Use ______ when a variable contains any amount of variables; in general.
urlencode()
double quotes
mysql_fetch_array()
predefined
25. The name of the #! used to designate the location of the PHP binary
asort()
error_reporting (E_ALL | E_STRICT)
Shebang
XOR
26. What You See Is What You Get
WYSIWYG
preg_replace()
array_merge()
precedence
27. To assign array element values to individual variables
fopen()
list()
XOR
?>
28. The output of var_export((float)array());
true
server-side programing
.=
0
29. Search Engine Optimization
SEO
urlencode()
preg_replace()
Warning
30. To set up error reporting
preg_split()
HTTP
error_reporting (0)
function error_reporting()
31. A data structure that can hold a number of items of data of the same type eg. a list of names
Parse error
crypt()
foreach loop
array
32. To refer to an element in a multidimensional array list the indices in order of _____ to more precise;
general
array()
<?php
SGML
33. Standard Generalized Markup Language
unset()
bin2hex()
array_merge()
SGML
34. To get time data
negative numbers
date()
substr_count()
reassign
35. addition
+
round() Function
arsort()
the escape character ''
36. _____ is a logical operator
int
preg_split()
XOR
Notice
37. The prefix for a dynamic variable - also known as a variable variable
integer
the escape character ''
$$
predefined variable
38. Used to convert certain HTML tags into their entity versions.
htmlspecialchars()
XML
integer
preg_match()
39. bitwise left shift
the period; .
<<
date()
index
40. Function can you use to format a number with commas
number_format()
true
+
predefined variable
41. To declare a constant
POST
nl2br()
define()
predefined
42. $_POST Data sent using POST found is sent to _______
asort()
client-side programing
predefined variable
DTD
43. bitwise AND
arsort()
boolean
&
underscores
44. To reorganise the array randomly
ASP
&
is_numeric()
shuffle()
45. a database which is best supported by PHP
empty()
decimal
mysql
predefined
46. An array of variables passed in the URL
array
array()
$_GET[]
round() Function
47. To counter htmlentities()
html_entity_decode()
chr()
variable
SGML
48. Used to replace a substring with another string - it is not case-sensitive.
string
str_ireplace()
function error_reporting()
include() and require()
49. Document Type Definitions
asort()
DTD
HTML
predefined
50. Used to convert all HTML tags into their entity versions.
htmlentities()
floor()
DTD
POST