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. equivalence
list()
str_word_count()
==
nl2br()
2. Online applications and resources which are available to the general public with very few restrictions
open source
strlen()
nl2br()
statement
3. To get over quotation marks while using arrays
mysql_close($dbc)
ksort()
curly braces
precedence
4. The concatenation operator?
the period; .
HTTP
preg_match()
Constant
5. the most basic function in PHP used to output information to the page
echo
reassign
WYSIWYG
predefined
6. Use ______ when there are no variables in the string
chr()
error_reporting (0)
<?php
single quotes
7. To assign keys to the values in an array
array()
E_STRICT
fopen()
mysql
8. TRUE or FALSE
client-side programing
boolean
$_GET[]
function
9. This error arises from misusing a function.
abs()
foreach loop
Warning
&
10. To sort the values while maintaining the correlation between each value and its key
asort()
===
chr()
$dbc = mysql_connect(hostname, username, password)
11. To sort values of an array without regard to the keys
include() and require()
Shebang
sort()
true
12. To determine the amount of elements in an array
count()
$dbc = mysql_connect(hostname, username, password)
$_POST[]
Hex
13. Used to check if a given variable has an "empty" value - no value or 0 or FALSE.
variable
!= inequality
define()
empty()
14. a line of information that can be stored in a variable or used in a function or statement
string
fopen()
!= inequality
predefined
15. Similar to mysql_fetch_array() - but cannot be accessed by integer offset
htmlspecialchars()
include() and require()
mysql_fetch_object()
chr()
16. The name of the #! used to designate the location of the PHP binary
count()
Parse error
array()
Shebang
17. Standard Generalized Markup Language
SGML
define()
!= inequality
number_format()
18. This will show all errors that fall under E_ALL or E_STRICT - the pipe | is used for 'or' so that errors that fall under either will be shown.
HTTP
error_reporting (E_ALL | E_STRICT)
wordwrap()
array_merge()
19. The prefix for a dynamic variable - also known as a variable variable
ksort()
bin2hex()
$$
not
20. ___________ can be used with substr() to count backward
strlen()
fopen()
negative numbers
arsort()
21. To reorganise the array randomly
urlencode()
for ($i = 0; $i < count($array); $i++) {statement(s);}
shuffle()
strip_tags()
22. Function used to round down to the lowest integer
floor()
Warning
ASP
curly braces; ${$total}
23. Variable names cannot begin with _______
numbers
html_entity_decode()
0
not
24. standard notation
array_merge()
$_POST[]
decimal
sql
25. $_POST Data sent using POST found is sent to _______
boolean
statement
predefined variable
precedence
26. a database which is best supported by PHP
wordwrap()
mysql
loops
asort()
27. To refer to an element in a multidimensional array list the indices in order of _____ to more precise;
integer
underscores
chop()
general
28. Used to find the length of a string
getrandmax()
isset()
strlen()
string
29. Asynchronous Javascript And XML
Parse error
ASP
AJAX
SGML
30. This fatal error arises from memory allocation problem.
arsort()
error_reporting (E_ALL)
Error
chr()
31. To merge arrays
array_merge()
not
mysql_fetch_object()
strtok()
32. Define(NAME,value)
Constant
===
sort()
curly braces; ${$total}
33. Hyper Text Transfer Protocol
single quotes
rand()
HTTP
Notice
34. The seven main error reporting constants are: E_NOTICE - E_WARNING - E_PARSE - E_ERROR - E_ALL - _____ - E_DEPRECATED
strip_tags()
E_STRICT
fopen()
Constant
35. print $_SERVER will _____ work if you use the print function on arrays.
SGML
not
the period; .
chop()
36. container of both data and code
Object
define()
trim()
date()
37. To reset an array _______ the array() function to the array
reassign
boolean
unset()
predefined variable
38. To iterate over the values of an array
for ($i = 0; $i < count($array); $i++) {statement(s);}
error_reporting (E_ALL & -E_NOTICE)
floor()
addslashes()
39. does a certain action when called upon
list()
function
chr()
&
40. leading zero: 0100 or 0567
arsort()
string
octal
true
41. Used to check if a variable has any value (including 0 or FALSE or an empty string).
array()
isset()
predefined
XOR
42. To sort the values while maintaining the correlation between each value and its key - in reversed order
str_ireplace()
arsort()
Notice
octal
43. Creates a pointer to a file with the declared mode (read - write -etc.).
fopen()
SGML
chop()
loops
44. Used to check if a variable has a valid numerical value; strings with numerical values pass.
boolean
is_numeric()
open source
abs()
45. An array whose keys are numbers.
sql
indexed array
<<
chop()
46. An array of variables passed with <input /> data
round() Function
date()
Constant
$_POST[]
47. The seven main SQL (structured query language) functions are alter - create - delete - _______ - insert - select - update
abs()
not
drop
chop()
48. bitwise right shift
>>
Parse error
string
htmlentities()
49. The concatenation assignment operator?
^
error_reporting (E_ALL & -E_NOTICE)
count()
.=
50. PHP has two conditional: if and ______.
?>
Warning
<<
switch