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. When used the value can be passed safely through the URL (GET).
unset()
urlencode()
HTML
chop()
2. A data structure that can hold a number of items of data of the same type eg. a list of names
fopen()
is_numeric()
str_word_count()
array
3. To sort the values while maintaining the correlation between each value and its key
precedence
asort()
trim()
empty()
4. The concatenation operator?
str_word_count()
strlen()
the period; .
substr_count()
5. The output of var_export((float)array(0));
strtok()
server-side programing
1
underscores
6. ____ or key is referred to for a value within an array.
trim()
index
Object
variable
7. This error arises from misusing a function.
isset()
string
Warning
predefined
8. Used to find the amount of words in a string.
client-side programing
define()
str_word_count()
list()
9. An array of variables passed in the URL
$_GET[]
null
boolean
$$
10. To sort values of an array in reversed order
rsort()
chr()
bin2hex()
variable
11. To find how many substrings are in a string
shuffle()
substr_count()
trim()
error_reporting (E_ALL | E_STRICT)
12. Define(NAME,value)
$_POST[]
Constant
ceil()
list()
13. Used to check if a given variable has an "empty" value - no value or 0 or FALSE.
curly braces; ${$total}
urlencode()
preg_match()
empty()
14. Function used to round up to the highest integer
1
0
ceil()
true
15. either hasn't yet been set or is assigned NULL value
null
function error_reporting()
not
decimal
16. Used to encrypt values - it is a one-way encryption method
general
crypt()
rand()
for ($i = 0; $i < count($array); $i++) {statement(s);}
17. bitwise AND
boolean
$dbc = mysql_connect(hostname, username, password)
str_ireplace()
&
18. Predefined constants such as __LINE__ or __FILE__ or __FUNCTION__ or __CLASS__ and __METHOD__
integer
chr()
Magic Constant
preg_replace()
19. All variables must begin with _________.
the dollar sign $
precedence
Hex
bin2hex()
20. Active Server Pages
str_word_count()
+
error_reporting (0)
ASP
21. bitwise right shift
AJAX
open source
floor()
>>
22. Shorthand used to increment and decrement
Object
wordwrap()
$var++ and $var
mysql_fetch_array()
23. Function used to convert new lines in a variable from a form to <br /> tags so that the data can be formatted correctly.
nl2br()
shuffle()
sort()
?>
24. To check if a constant is already declared
switch
defined()
substr_count()
array_merge()
25. identity
===
numbers
+= or -= or *= or /=
predefined variable
26. To iterate over the values of an array
POST
for ($i = 0; $i < count($array); $i++) {statement(s);}
html_entity_decode()
SEO
27. To set up error reporting
function error_reporting()
mysql
SEO
double quotes
28. This will show all error reporting.
error_reporting (E_ALL)
function
>>
==
29. To delete a variable or an element of an array
POST
abs()
str_word_count()
unset()
30. a storage location in the computer's memory that has a type & a name and a contents
>>
Parse error
$varname[key]
variable
31. Alias of rtrim()
nl2br()
chop()
strtok()
ksort()
32. To reset an array _______ the array() function to the array
curly braces; ${$total}
reassign
$_POST[]
double quotes
33. This fatal fatal is caused by a semantic mistake: omission of a semicolon or imbalance of quotations or parentheses or braces.
general
is_numeric()
Parse error
negative numbers
34. says 'if' this then do this 'else' do this or 'while' this do this
E_STRICT
statement
error_reporting (E_ALL & -E_NOTICE)
addslashes()
35. Hyper Text Markup Language
the dollar sign $
XOR
HTML
1
36. This will not show error reporting - it will be turned off.
isset()
error_reporting (E_ALL & -E_NOTICE)
error_reporting (0)
Object
37. To include files - _______ will give errors and _________ will terminate execution().
include() and require()
decimal
reassign
index
38. This will show all error reporting except for notice errors.
error_reporting (E_ALL | E_STRICT)
urlencode()
error_reporting (E_ALL & -E_NOTICE)
the period; .
39. Returns a string with backslashes in front of the specified characters
addcslashes()
$var++ and $var
Object
indexed array
40. To remove all HTML and PHP tags.
Warning
urlencode()
strip_tags()
Shebang
41. Document Type Definitions
Error
POST
str_ireplace()
DTD
42. bitwise left shift
Hex
<<
Shebang
.=
43. The concatenation assignment operator?
foreach
$var++ and $var
empty()
.=
44. The array that stores variables specific to a user's visit
define()
curly braces; ${$total}
$_SESSION[]
open source
45. Variable names can begin with __________
underscores
preg_split()
the dollar sign $
trim()
46. addition
+
mysql_fetch_array()
XOR
shuffle()
47. Used to check if a variable has a valid numerical value; strings with numerical values pass.
===
preg_replace()
statement
is_numeric()
48. Creates a pointer to a file with the declared mode (read - write -etc.).
array
index
boolean
fopen()
49. _____ is a logical operator
predefined
XOR
Notice
loops
50. A conditional or loop is a ________________.
AJAX
parentheses
int
control structure