SUBJECTS
|
BROWSE
|
CAREER CENTER
|
POPULAR
|
JOIN
|
LOGIN
Business Skills
|
Soft Skills
|
Basic Literacy
|
Certifications
About
|
Help
|
Privacy
|
Terms
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. signed floating-point value
float
trim()
the dollar sign $
shuffle()
2. The four main error types are:Notice - Warning - ________ and Error.
predefined
parentheses
Parse error
associative array
3. Used to find the amount of words in a string.
str_word_count()
error_reporting (E_ALL | E_STRICT)
array
XML
4. To refer to an element in a multidimensional array list the indices in order of _____ to more precise;
AJAX
0
general
trim()
5. To reorganise the array randomly
+
shuffle()
<?php
superglobal
6. Predefined constants such as __LINE__ or __FILE__ or __FUNCTION__ or __CLASS__ and __METHOD__
$_SESSION[]
Magic Constant
SEO
general
7. Use _______ for passwords or pages that would not be bookmarked or pages that require security.
list()
array_merge()
true
POST
8. Leading 0x: 0x13F or 0xA23
Hex
rsort()
<?php
index
9. Operators used to operate and assign
SEO
str_ireplace()
GET
+= or -= or *= or /=
10. Used to find the length of a string
strlen()
switch
curly braces; ${$total}
fopen()
11. Used to encrypt values - it is a one-way encryption method
if/elseif/else and switch statements
reassign
str_word_count()
crypt()
12. allows you to split strings based on more complex rules
sort()
preg_split()
drop
$var++ and $var
13. bitwise AND
strlen()
===
&
trim()
14. a type with two possible values: true and false
floor()
boolean
Object
strip_tags()
15. Tag to begin a php script
htmlspecialchars()
mysql_close($dbc)
Warning
<?php
16. Function used to convert new lines in a variable from a form to <br /> tags so that the data can be formatted correctly.
include() and require()
nl2br()
getrandmax()
Parse error
17. To get time data
loops
ASP
date()
^
18. collection of binary data
$_POST[]
string
$_SESSION[]
Hex
19. a positive or negative number
GET
curly braces
predefined
integer
20. any programing language where the user must support the language the script is written in
include() and require()
strip_tags()
decimal
client-side programing
21. This error refers to a variable with no value.
Notice
control structure
addslashes()
>>
22. bitwise left shift
<<
htmlentities()
double quotes
curly braces; ${$total}
23. returns the number of matches found by a given search string under this format...
Parse error
html_entity_decode()
preg_match()
is_numeric()
24. To word wrap after a certain amount of characters.
string
wordwrap()
string
client-side programing
25. Returns an array that corresponds to the fetched row of MySQL data and moves the internal data pointer ahead
mysql_fetch_array()
===
server-side programing
echo
26. Used to convert certain HTML tags into their entity versions.
wordwrap()
$_GET[]
chr()
htmlspecialchars()
27. Used to check if a variable has any value (including 0 or FALSE or an empty string).
addcslashes()
ini_set ('display_errors', 1)
sort()
isset()
28. container of both data and code
strtok()
Object
+
predefined
29. What You See Is What You Get
SGML
WYSIWYG
rsort()
error_reporting (E_ALL)
30. _____ is a logical operator
XOR
ASP
1
function error_reporting()
31. To close a connection between a database
mysql_close($dbc)
str_word_count()
count()
null
32. either hasn't yet been set or is assigned NULL value
+
null
parentheses
drop
33. An array of variables passed in the URL
unset()
AJAX
$_GET[]
?>
34. The name of the #! used to designate the location of the PHP binary
Shebang
chop()
AJAX
substr_count()
35. To merge arrays
array_merge()
+= or -= or *= or /=
rand()
trim()
36. To sort by the keys while maintaining the correlation between the key and its value
ksort()
$var++ and $var
==
strlen()
37. The order of operations.
float
0
date()
precedence
38. container of ordered data elements
addslashes()
the escape character ''
htmlspecialchars()
Array
39. To iterate over the values of an array
1
defined()
foreach loop
for ($i = 0; $i < count($array); $i++) {statement(s);}
40. This will show all error reporting.
asort()
error_reporting (E_ALL)
strlen()
not
41. _______ is a comparison operator
null
indexed array
?>
!= inequality
42. Returns a character from a specified ASCII value
boolean
variable
+
chr()
43. Use ______ when a variable contains any amount of variables; in general.
double quotes
htmlentities()
XML
HTML
44. This will show all error reporting except for notice errors.
reassign
decimal
error_reporting (E_ALL & -E_NOTICE)
SEO
45. Used to check if a given variable has an "empty" value - no value or 0 or FALSE.
$var++ and $var
open source
empty()
Constant
46. To set up error reporting
!= inequality
loops
function error_reporting()
ceil()
47. To check if a constant is already declared
defined()
substr_count()
round() Function
int
48. Alias of rtrim()
substr_count()
chop()
+
floor()
49. ____ or key is referred to for a value within an array.
reassign
index
string
for ($i = 0; $i < count($array); $i++) {statement(s);}
50. To reset an array _______ the array() function to the array
reassign
predefined
control structure
parentheses