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. Used to replace a substring with another string - it is not case-sensitive.
loops
str_ireplace()
list()
Constant
2. any programing language where the user must support the language the script is written in
bin2hex()
htmlspecialchars()
numbers
client-side programing
3. To refer to an item in an array
$varname[key]
octal
count()
+= or -= or *= or /=
4. The name of the #! used to designate the location of the PHP binary
Shebang
array_merge()
fopen()
true
5. a storage location in the computer's memory that has a type & a name and a contents
addcslashes()
crypt()
Parse error
variable
6. To check if a constant is already declared
if/elseif/else and switch statements
predefined
defined()
substr_count()
7. _________ can be used in conditional statements to set precedence
floor()
parentheses
define()
associative array
8. leading zero: 0100 or 0567
octal
htmlspecialchars()
single quotes
curly braces; ${$total}
9. says 'if' this then do this 'else' do this or 'while' this do this
sql
strlen()
statement
array()
10. Variable names can begin with __________
sort()
addslashes()
control structure
underscores
11. An array whose keys are strings; also known as a hash.
control structure
$varname[key]
is_numeric()
associative array
12. To find how many substrings are in a string
DTD
substr_count()
ini_set ('display_errors', 1)
integer
13. The seven main SQL (structured query language) functions are alter - create - delete - _______ - insert - select - update
single quotes
html_entity_decode()
drop
Warning
14. The four main error types are:Notice - Warning - ________ and Error.
reassign
define()
float
Parse error
15. Use ______ when there are no variables in the string
SGML
drop
str_word_count()
single quotes
16. addition
strlen()
isset()
0
+
17. The seven main error reporting constants are: E_NOTICE - E_WARNING - E_PARSE - E_ERROR - E_ALL - _____ - E_DEPRECATED
E_STRICT
1
sort()
open source
18. To get over quotation marks while using arrays
curly braces
$array[] = item
$varname[key]
arsort()
19. Uses two arguments: constant name and constant definition
define()
0
HTTP
error_reporting (0)
20. The output of var_export((float)array(0));
round() Function
open source
curly braces; ${$total}
1
21. Hypertext Preprocessor - a server-side programing language used to create webpages
PHP
array()
server-side programing
1
22. print $_SERVER will _____ work if you use the print function on arrays.
server-side programing
$_SESSION[]
variable
not
23. Used to convert all HTML tags into their entity versions.
underscores
mysql_close($dbc)
htmlentities()
mysql
24. Function used to round down to the lowest integer
array()
&
floor()
loops
25. When used the value can be passed safely through the URL (GET).
$array[] = item
urlencode()
precedence
substr_count()
26. To remove all HTML and PHP tags.
htmlentities()
echo
.=
strip_tags()
27. The concatenation assignment operator?
.=
indexed array
preg_replace()
underscores
28. What You See Is What You Get
preg_match()
WYSIWYG
crypt()
Magic Constant
29. A data structure that can hold a number of items of data of the same type eg. a list of names
associative array
array
sql
&
30. To sort by the keys while maintaining the correlation between the key and its value
ksort()
$array[] = item
+
indexed array
31. Standard Generalized Markup Language
rand()
null
SGML
Error
32. Creates a pointer to a file with the declared mode (read - write -etc.).
XML
WYSIWYG
array()
fopen()
33. does a certain action when called upon
drop
function
predefined variable
str_ireplace()
34. Function used to convert new lines in a variable from a form to <br /> tags so that the data can be formatted correctly.
XOR
client-side programing
AJAX
nl2br()
35. To refer to an element in a multidimensional array list the indices in order of _____ to more precise;
float
general
urlencode()
+
36. standard notation
null
list()
decimal
curly braces; ${$total}
37. Function used to find the absolute value of a number or numeric variable
define()
sql
Constant
abs()
38. To reorganise the array randomly
WYSIWYG
SGML
shuffle()
==
39. Control structure that continue exit - they perform specific statements for a determined number of iterations.
loops
open source
XOR
date()
40. The concatenation operator?
double quotes
the period; .
negative numbers
string
41. Used to find the length of a string
$array[] = item
date()
strlen()
reassign
42. To declare a constant
define()
Array
preg_split()
0
43. To sort the values while maintaining the correlation between each value and its key - in reversed order
preg_split()
arsort()
abs()
!= inequality
44. Use ______ for search engines or catalogued pages or pages that would be bookmarked.
unset()
GET
Error
precedence
45. either hasn't yet been set or is assigned NULL value
not
Hex
null
numbers
46. Control structures that break exit
sql
if/elseif/else and switch statements
Error
curly braces; ${$total}
47. $_POST Data sent using POST found is sent to _______
PHP
Shebang
is_numeric()
predefined variable
48. a language in which to make querys to a database with
Constant
sql
rsort()
getrandmax()
49. Besides GET and POST ________ can be used to access data but $_POST and $_GET are more precise and therefore preferable.
sort()
round() Function
drop
$_REQUEST
50. Document Type Definitions
DTD
statement
chop()
wordwrap()