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. This error refers to a variable with no value.
+
Notice
numbers
===
2. The array that stores variables specific to a user's visit
$_SESSION[]
SGML
reassign
foreach
3. The prefix for a dynamic variable - also known as a variable variable
$_POST[]
$$
Hex
Parse error
4. $_POST and $_GET are ________ variables.
$_POST[]
$varname[key]
predefined
include() and require()
5. Besides GET and POST ________ can be used to access data but $_POST and $_GET are more precise and therefore preferable.
octal
Parse error
switch
$_REQUEST
6. identity
WYSIWYG
===
$_REQUEST
htmlspecialchars()
7. Use ______ when there are no variables in the string
error_reporting (E_ALL | E_STRICT)
float
single quotes
number_format()
8. Asynchronous Javascript And XML
foreach loop
mysql_close($dbc)
int
AJAX
9. This will show all error reporting.
error_reporting (E_ALL)
array()
double quotes
Parse error
10. bitwise XOR
list()
^
error_reporting (0)
error_reporting (E_ALL & -E_NOTICE)
11. returns the number of matches found by a given search string under this format...
general
function error_reporting()
preg_match()
int
12. equivalence
arsort()
mysql_fetch_object()
==
include() and require()
13. A conditional or loop is a ________________.
control structure
Notice
Shebang
Object
14. function Function used to create a random number
rand()
double quotes
negative numbers
sql
15. bitwise right shift
1
htmlspecialchars()
predefined variable
>>
16. $_SERVER is a ________ variable.
decimal
predefined
strtok()
SGML
17. Used to check if a variable has any value (including 0 or FALSE or an empty string).
empty()
isset()
float
function error_reporting()
18. Variable names cannot begin with _______
function
wordwrap()
numbers
function error_reporting()
19. Returns a string with backslashes in front of predefined characters
addslashes()
$_POST[]
Shebang
float
20. ____ or key is referred to for a value within an array.
curly braces; ${$total}
index
$_SESSION[]
variable
21. To refer to an element in a multidimensional array list the indices in order of _____ to more precise;
strip_tags()
function error_reporting()
general
HTTP
22. Function used to round down to the lowest integer
floor()
HTML
mysql
fopen()
23. $_POST Data sent using POST found is sent to _______
predefined variable
GET
array()
mysql_fetch_array()
24. TRUE or FALSE
strlen()
boolean
<?php
associative array
25. To declare a constant
Notice
addslashes()
define()
addcslashes()
26. allows you to split strings based on more complex rules
string
preg_split()
variable
Object
27. This will show all error reporting except for notice errors.
defined()
HTML
<?php
error_reporting (E_ALL & -E_NOTICE)
28. The ouput of var_export((bool)"NULL");
ksort()
E_STRICT
true
defined()
29. Active Server Pages
DTD
precedence
mysql_fetch_array()
ASP
30. does a certain action when called upon
$_SESSION[]
the escape character ''
function
string
31. To delete a variable or an element of an array
.=
error_reporting (E_ALL)
predefined variable
unset()
32. 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
33. a line of information that can be stored in a variable or used in a function or statement
boolean
string
Error
error_reporting (E_ALL)
34. EXtensible Markup Language
XML
index
mysql
GET
35. PHP has two conditional: if and ______.
server-side programing
null
switch
error_reporting (E_ALL & -E_NOTICE)
36. Predefined constants such as __LINE__ or __FILE__ or __FUNCTION__ or __CLASS__ and __METHOD__
$$
chop()
Magic Constant
empty()
37. To close a connection between a database
mysql_close($dbc)
define()
double quotes
ASP
38. To counter htmlentities()
html_entity_decode()
superglobal
error_reporting (E_ALL & -E_NOTICE)
function
39. Used to find the amount of words in a string.
<<
wordwrap()
str_word_count()
$_POST[]
40. Used to check if a variable has a valid numerical value; strings with numerical values pass.
count()
is_numeric()
not
double quotes
41. To remove all HTML and PHP tags.
strip_tags()
str_word_count()
addslashes()
HTML
42. The syntax for connecting to a database
==
$dbc = mysql_connect(hostname, username, password)
$_POST[]
chop()
43. To sort values of an array in reversed order
rsort()
.=
urlencode()
mysql_fetch_array()
44. To check if a constant is already declared
open source
Warning
predefined variable
defined()
45. Function used to round up to the highest integer
floor()
0
abs()
ceil()
46. Function can you use to format a number with commas
date()
number_format()
SEO
array()
47. a type with two possible values: true and false
boolean
date()
str_word_count()
error_reporting (E_ALL)
48. Creates a pointer to a file with the declared mode (read - write -etc.).
predefined
string
function
fopen()
49. Used to convert all HTML tags into their entity versions.
int
Shebang
not
htmlentities()
50. To sort the values while maintaining the correlation between each value and its key - in reversed order
single quotes
drop
array()
arsort()