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. print $_SERVER will _____ work if you use the print function on arrays.
===
ksort()
not
superglobal
2. Search Engine Optimization
AJAX
SEO
predefined
Error
3. To assign keys to the values in an array
$$
mysql_fetch_array()
defined()
array()
4. a positive or negative number
error_reporting (0)
curly braces
integer
mysql
5. To word wrap after a certain amount of characters.
wordwrap()
0
.=
HTML
6. Used to display errors in a particular script - should be placed at top of script.
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
7. To iterate over the values of an array
for ($i = 0; $i < count($array); $i++) {statement(s);}
Array
Magic Constant
server-side programing
8. The name of the #! used to designate the location of the PHP binary
string
Shebang
for ($i = 0; $i < count($array); $i++) {statement(s);}
E_STRICT
9. To iterate over the keys and values of an array
string
integer
foreach loop
open source
10. To get over quotation marks while using arrays
curly braces
float
HTTP
shuffle()
11. This fatal error arises from memory allocation problem.
error_reporting (E_ALL)
Error
>>
number_format()
12. To merge arrays
octal
$$
&
array_merge()
13. The concatenation assignment operator?
GET
.=
the escape character ''
1
14. Use ______ for search engines or catalogued pages or pages that would be bookmarked.
indexed array
?>
addcslashes()
GET
15. To sort the values while maintaining the correlation between each value and its key
reassign
predefined variable
int
asort()
16. To refer to an item in an array
control structure
$varname[key]
bin2hex()
integer
17. bitwise XOR
if/elseif/else and switch statements
Parse error
switch
^
18. The output of var_export((float)array());
0
Hex
.=
list()
19. To refer to an element in a multidimensional array list the indices in order of _____ to more precise;
error_reporting (E_ALL | E_STRICT)
count()
general
indexed array
20. Leading 0x: 0x13F or 0xA23
superglobal
strlen()
Hex
control structure
21. PHP has two conditional: if and ______.
switch
drop
urlencode()
the dollar sign $
22. An array whose keys are numbers.
AJAX
indexed array
Magic Constant
$varname[key]
23. Tag to end a php script
&
preg_match()
Array
?>
24. To declare a constant
WYSIWYG
define()
?>
trim()
25. All variables must begin with _________.
superglobal
array
>>
the dollar sign $
26. Operators used to operate and assign
^
echo
+= or -= or *= or /=
0
27. To sort the values while maintaining the correlation between each value and its key - in reversed order
parentheses
arsort()
list()
preg_split()
28. a language in which to make querys to a database with
PHP
$varname[key]
sql
server-side programing
29. a line of information that can be stored in a variable or used in a function or statement
+= or -= or *= or /=
string
$$
$_GET[]
30. Alias of rtrim()
Error
rand()
===
chop()
31. An array of variables passed in the URL
Constant
Parse error
$_GET[]
defined()
32. This error arises from misusing a function.
server-side programing
superglobal
>>
Warning
33. identity
$array[] = item
===
DTD
double quotes
34. To delete a variable or an element of an array
Constant
unset()
Array
array()
35. This will not show error reporting - it will be turned off.
strlen()
error_reporting (0)
>>
Notice
36. Used to replace a substring with another string - it is not case-sensitive.
predefined variable
str_word_count()
str_ireplace()
predefined
37. The array that stores variables specific to a user's visit
crypt()
!= inequality
$_SESSION[]
str_word_count()
38. To check if a constant is already declared
defined()
E_STRICT
GET
strtok()
39. Use ______ when a variable contains any amount of variables; in general.
curly braces; ${$total}
$_REQUEST
double quotes
XML
40. Returns a string with backslashes in front of the specified characters
ini_set ('display_errors', 1)
addcslashes()
ksort()
isset()
41. does a certain action when called upon
function
defined()
Notice
preg_replace()
42. bitwise right shift
float
>>
0
E_STRICT
43. Document Type Definitions
htmlspecialchars()
DTD
WYSIWYG
open source
44. $_POST Data sent using POST found is sent to _______
boolean
Warning
predefined variable
array()
45. To set up error reporting
server-side programing
function error_reporting()
str_ireplace()
Warning
46. _______ is a comparison operator
+
+= or -= or *= or /=
abs()
!= inequality
47. Function used to round up to the highest integer
function error_reporting()
statement
<?php
ceil()
48. _________ can be used in conditional statements to set precedence
parentheses
isset()
include() and require()
if/elseif/else and switch statements
49. The concatenation operator?
GET
the period; .
integer
&
50. An array of variables passed with <input /> data
HTTP
index
$_SESSION[]
$_POST[]