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. Hyper Text Markup Language
integer
int
HTML
superglobal
2. leading zero: 0100 or 0567
statement
octal
indexed array
fopen()
3. The ouput of var_export((bool)"NULL");
^
true
for ($i = 0; $i < count($array); $i++) {statement(s);}
mysql_close($dbc)
4. does a certain action when called upon
foreach loop
preg_split()
HTML
function
5. A data structure that can hold a number of items of data of the same type eg. a list of names
string
parentheses
preg_match()
array
6. the most basic function in PHP used to output information to the page
predefined
PHP
echo
^
7. bitwise AND
&
preg_match()
rsort()
SGML
8. Returns an array that corresponds to the fetched row of MySQL data and moves the internal data pointer ahead
nl2br()
count()
mysql_fetch_array()
wordwrap()
9. This error arises from misusing a function.
statement
Warning
trim()
mysql_close($dbc)
10. The array that stores variables specific to a user's visit
defined()
Warning
reassign
$_SESSION[]
11. equivalence
==
general
mysql_fetch_object()
underscores
12. The syntax for connecting to a database
htmlspecialchars()
boolean
$dbc = mysql_connect(hostname, username, password)
curly braces
13. To refer to an item in an array
Hex
sql
$varname[key]
&
14. a line of information that can be stored in a variable or used in a function or statement
string
array_merge()
fopen()
.=
15. Tag to end a php script
?>
underscores
server-side programing
integer
16. To assign keys to the values in an array
array()
Warning
reassign
if/elseif/else and switch statements
17. ___________ can be used with substr() to count backward
array()
str_word_count()
curly braces; ${$total}
negative numbers
18. addition
abs()
mysql_fetch_object()
+
drop
19. searches the subject for matches to a given pattern replaced with the given replacement text
preg_replace()
rsort()
sort()
Warning
20. standard notation
GET
preg_split()
decimal
null
21. _________ can be used in conditional statements to set precedence
index
function error_reporting()
rsort()
parentheses
22. The output of var_export((float)array(0));
variable
1
indexed array
superglobal
23. This fatal error arises from memory allocation problem.
array_merge()
1
Error
+= or -= or *= or /=
24. This error refers to a variable with no value.
define()
substr_count()
Notice
?>
25. Used to convert certain HTML tags into their entity versions.
?>
!= inequality
htmlspecialchars()
nl2br()
26. Function used to convert new lines in a variable from a form to <br /> tags so that the data can be formatted correctly.
+= or -= or *= or /=
GET
nl2br()
mysql_close($dbc)
27. To include files - _______ will give errors and _________ will terminate execution().
associative array
indexed array
==
include() and require()
28. says 'if' this then do this 'else' do this or 'while' this do this
statement
date()
+= or -= or *= or /=
array
29. To assign array element values to individual variables
sort()
string
&
list()
30. To counter htmlentities()
loops
html_entity_decode()
for ($i = 0; $i < count($array); $i++) {statement(s);}
array()
31. Used to encrypt values - it is a one-way encryption method
strip_tags()
int
array()
crypt()
32. container of both data and code
not
bin2hex()
Object
wordwrap()
33. bitwise left shift
<<
str_ireplace()
str_word_count()
for ($i = 0; $i < count($array); $i++) {statement(s);}
34. Converts a string of ASCII characters to hexadecimal values
control structure
bin2hex()
curly braces; ${$total}
mysql
35. Function can you use to format a number with commas
for ($i = 0; $i < count($array); $i++) {statement(s);}
number_format()
Shebang
&
36. To refer to an element in a multidimensional array list the indices in order of _____ to more precise;
AJAX
+= or -= or *= or /=
addcslashes()
general
37. Use ________ to have multiple quotations in one string
drop
error_reporting (E_ALL)
the escape character ''
error_reporting (0)
38. To get over quotation marks while using arrays
mysql_close($dbc)
htmlentities()
not
curly braces
39. TRUE or FALSE
XML
boolean
single quotes
crypt()
40. signed integer
int
index
indexed array
htmlspecialchars()
41. To remove all HTML and PHP tags.
is_numeric()
strip_tags()
octal
SEO
42. Define(NAME,value)
mysql_fetch_object()
$$
control structure
Constant
43. When used the value can be passed safely through the URL (GET).
urlencode()
$_REQUEST
sql
getrandmax()
44. The seven main error reporting constants are: E_NOTICE - E_WARNING - E_PARSE - E_ERROR - E_ALL - _____ - E_DEPRECATED
PHP
open source
E_STRICT
round() Function
45. The concatenation assignment operator?
.=
index
nl2br()
ceil()
46. Asynchronous Javascript And XML
array()
precedence
AJAX
$_POST[]
47. To merge arrays
crypt()
$_REQUEST
+
array_merge()
48. To reorganise the array randomly
shuffle()
defined()
XOR
==
49. To reset an array _______ the array() function to the array
PHP
reassign
preg_split()
^
50. To create an array
ksort()
array()
mysql_fetch_object()
===