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. Function used to round up to the highest integer
not
negative numbers
ceil()
E_STRICT
2. TRUE or FALSE
numbers
substr_count()
boolean
Constant
3. This error refers to a variable with no value.
superglobal
Notice
empty()
PHP
4. When used the value can be passed safely through the URL (GET).
urlencode()
$var++ and $var
server-side programing
wordwrap()
5. signed floating-point value
parentheses
float
indexed array
null
6. Hyper Text Transfer Protocol
define()
superglobal
HTTP
string
7. identity
+= or -= or *= or /=
the dollar sign $
define()
===
8. Returns a character from a specified ASCII value
chr()
number_format()
string
precedence
9. Predefined constants such as __LINE__ or __FILE__ or __FUNCTION__ or __CLASS__ and __METHOD__
drop
str_word_count()
Magic Constant
number_format()
10. To sort the values while maintaining the correlation between each value and its key - in reversed order
Hex
arsort()
int
client-side programing
11. ____ or key is referred to for a value within an array.
==
index
trim()
sort()
12. To reorganise the array randomly
array_merge()
define()
shuffle()
the dollar sign $
13. Besides GET and POST ________ can be used to access data but $_POST and $_GET are more precise and therefore preferable.
decimal
$_REQUEST
+
DTD
14. To merge arrays
function
array_merge()
single quotes
foreach
15. Hyper Text Markup Language
loops
$_GET[]
HTML
rand()
16. The three types of loops in PHP are: for - while - ____.
str_word_count()
foreach
mysql_fetch_object()
negative numbers
17. Used to find the length of a string
is_numeric()
preg_replace()
strlen()
error_reporting (E_ALL)
18. Function can you use to format a number with commas
number_format()
Parse error
true
html_entity_decode()
19. This fatal fatal is caused by a semantic mistake: omission of a semicolon or imbalance of quotations or parentheses or braces.
Parse error
mysql_fetch_array()
boolean
superglobal
20. _______ is a comparison operator
superglobal
addcslashes()
array
!= inequality
21. An array of variables passed with <input /> data
include() and require()
$$
$_POST[]
Parse error
22. ___________ can be used with substr() to count backward
$var++ and $var
error_reporting (E_ALL & -E_NOTICE)
foreach
negative numbers
23. To set up error reporting
include() and require()
mysql
preg_replace()
function error_reporting()
24. To check if a constant is already declared
mysql_fetch_object()
underscores
defined()
ceil()
25. The array that stores variables specific to a user's visit
$_SESSION[]
+
is_numeric()
control structure
26. Used to convert certain HTML tags into their entity versions.
htmlspecialchars()
int
rand()
strip_tags()
27. a database which is best supported by PHP
&
addslashes()
mysql
string
28. leading zero: 0100 or 0567
octal
statement
superglobal
floor()
29. To close a connection between a database
rsort()
ASP
0
mysql_close($dbc)
30. used to round numeric values.
urlencode()
str_word_count()
arsort()
round() Function
31. addition
chop()
+
preg_replace()
AJAX
32. To assign keys to the values in an array
substr_count()
crypt()
$_GET[]
array()
33. Use ______ when there are no variables in the string
mysql_fetch_object()
array()
array
single quotes
34. Tag to end a php script
?>
boolean
Constant
mysql_fetch_array()
35. Variable names cannot begin with _______
superglobal
numbers
1
true
36. To delete a variable or an element of an array
parentheses
the escape character ''
unset()
preg_split()
37. returns the number of matches found by a given search string under this format...
&
SEO
preg_match()
getrandmax()
38. The output of var_export((float)array());
isset()
0
str_ireplace()
getrandmax()
39. To reset an array _______ the array() function to the array
drop
reassign
POST
server-side programing
40. Uses two arguments: constant name and constant definition
crypt()
define()
count()
1
41. function Function used to create a random number
rand()
ASP
mysql_fetch_array()
predefined
42. To refer to an item in an array
echo
$varname[key]
$array[] = item
the escape character ''
43. Function used to round down to the lowest integer
function
for ($i = 0; $i < count($array); $i++) {statement(s);}
floor()
urlencode()
44. A conditional or loop is a ________________.
SEO
control structure
Notice
the escape character ''
45. Define(NAME,value)
HTML
Constant
the period; .
+= or -= or *= or /=
46. The concatenation operator?
mysql
asort()
the period; .
preg_replace()
47. Use ________ to have multiple quotations in one string
the escape character ''
unset()
^
Constant
48. _____ is a logical operator
not
.=
preg_match()
XOR
49. PHP has two conditional: if and ______.
substr_count()
index
bin2hex()
switch
50. 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.
error_reporting (E_ALL | E_STRICT)
index
str_word_count()
html_entity_decode()