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. To reset an array _______ the array() function to the array
reassign
substr_count()
.=
fopen()
2. ____ or key is referred to for a value within an array.
arsort()
error_reporting (E_ALL & -E_NOTICE)
===
index
3. To append elements to an array - this will assign item to the next available index; associative arrays get messy.
number_format()
==
$array[] = item
WYSIWYG
4. Used to replace a substring with another string - it is not case-sensitive.
octal
include() and require()
str_ireplace()
addslashes()
5. used to round numeric values.
ceil()
echo
sort()
round() Function
6. To sort values of an array in reversed order
rsort()
abs()
decimal
WYSIWYG
7. To get time data
SGML
date()
associative array
list()
8. This will show all error reporting except for notice errors.
<?php
$dbc = mysql_connect(hostname, username, password)
error_reporting (E_ALL & -E_NOTICE)
string
9. An array of variables passed in the URL
+= or -= or *= or /=
Parse error
$_GET[]
crypt()
10. Besides GET and POST ________ can be used to access data but $_POST and $_GET are more precise and therefore preferable.
SEO
isset()
substr_count()
$_REQUEST
11. Returns a string with backslashes in front of predefined characters
addslashes()
preg_replace()
general
strtok()
12. Used to find the amount of words in a string.
addcslashes()
rsort()
str_word_count()
string
13. To reorganise the array randomly
shuffle()
<<
boolean
open source
14. bitwise XOR
define()
^
indexed array
server-side programing
15. $_POST Data sent using POST found is sent to _______
addcslashes()
is_numeric()
function error_reporting()
predefined variable
16. Function used to round up to the highest integer
ceil()
+= or -= or *= or /=
numbers
Notice
17. Control structure that continue exit - they perform specific statements for a determined number of iterations.
Warning
decimal
loops
addslashes()
18. Control structures that break exit
Constant
numbers
if/elseif/else and switch statements
defined()
19. container of both data and code
$$
?>
Object
sort()
20. searches the subject for matches to a given pattern replaced with the given replacement text
preg_replace()
Parse error
the escape character ''
variable
21. This will show all error reporting.
crypt()
error_reporting (E_ALL)
rsort()
1
22. Use ______ when there are no variables in the string
strip_tags()
?>
strtok()
single quotes
23. any programing language where the script is parsed on the server
server-side programing
Object
octal
$_SESSION[]
24. To refer to an element in a multidimensional array list the indices in order of _____ to more precise;
$_GET[]
predefined
error_reporting (0)
general
25. _________ can be used in conditional statements to set precedence
octal
parentheses
addcslashes()
defined()
26. The concatenation operator?
$_GET[]
the period; .
for ($i = 0; $i < count($array); $i++) {statement(s);}
int
27. Tag to begin a php script
the dollar sign $
not
numbers
<?php
28. This will not show error reporting - it will be turned off.
the escape character ''
nl2br()
variable
error_reporting (0)
29. Standard Generalized Markup Language
.=
not
predefined
SGML
30. To sort the values while maintaining the correlation between each value and its key
round() Function
htmlspecialchars()
for ($i = 0; $i < count($array); $i++) {statement(s);}
asort()
31. returns the number of matches found by a given search string under this format...
preg_match()
boolean
XOR
abs()
32. Leading 0x: 0x13F or 0xA23
preg_match()
Hex
boolean
<<
33. To determine the amount of elements in an array
count()
$var++ and $var
Object
str_ireplace()
34. Use ______ for search engines or catalogued pages or pages that would be bookmarked.
trim()
GET
drop
WYSIWYG
35. Used to create a substring (referred to as a token) from a larger string
strtok()
empty()
Constant
$array[] = item
36. Variable names can begin with __________
underscores
preg_replace()
client-side programing
sort()
37. _______ is a comparison operator
!= inequality
int
predefined
string
38. signed integer
list()
ini_set ('display_errors', 1)
int
double quotes
39. The three types of loops in PHP are: for - while - ____.
echo
PHP
open source
foreach
40. To counter htmlentities()
string
html_entity_decode()
predefined
statement
41. TRUE or FALSE
boolean
single quotes
not
control structure
42. $_POST and $_GET are ________ variables.
array
defined()
predefined
sort()
43. The seven main error reporting constants are: E_NOTICE - E_WARNING - E_PARSE - E_ERROR - E_ALL - _____ - E_DEPRECATED
control structure
foreach loop
E_STRICT
Shebang
44. identity
===
Error
function
floor()
45. The seven main SQL (structured query language) functions are alter - create - delete - _______ - insert - select - update
drop
===
array()
numbers
46. Used to convert certain HTML tags into their entity versions.
is_numeric()
htmlspecialchars()
error_reporting (E_ALL)
HTTP
47. The output of var_export((float)array());
Error
0
superglobal
include() and require()
48. a database which is best supported by PHP
variable
mysql
boolean
index
49. the most basic function in PHP used to output information to the page
list()
echo
SEO
AJAX
50. A data structure that can hold a number of items of data of the same type eg. a list of names
===
<?php
reassign
array