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. To refer to an element in a multidimensional array list the indices in order of _____ to more precise;
parentheses
&
error_reporting (E_ALL)
general
2. Function that contains the highest value that rand() can have randomly
strlen()
open source
getrandmax()
if/elseif/else and switch statements
3. Asynchronous Javascript And XML
AJAX
mysql_close($dbc)
Constant
bin2hex()
4. A data structure that can hold a number of items of data of the same type eg. a list of names
chop()
client-side programing
function error_reporting()
array
5. a type with two possible values: true and false
defined()
if/elseif/else and switch statements
boolean
superglobal
6. This error arises from misusing a function.
predefined variable
Warning
Array
sort()
7. a language in which to make querys to a database with
mysql
sql
crypt()
E_STRICT
8. bitwise right shift
for ($i = 0; $i < count($array); $i++) {statement(s);}
Notice
>>
null
9. Use ________ to have multiple quotations in one string
array()
the escape character ''
octal
&
10. All variables must begin with _________.
date()
.=
1
the dollar sign $
11. signed floating-point value
trim()
variable
float
SGML
12. does a certain action when called upon
AJAX
function
html_entity_decode()
nl2br()
13. To set up error reporting
addcslashes()
strlen()
function error_reporting()
curly braces
14. the most basic function in PHP used to output information to the page
DTD
>>
array_merge()
echo
15. Use ______ when a variable contains any amount of variables; in general.
precedence
double quotes
server-side programing
$varname[key]
16. An array whose keys are numbers.
the dollar sign $
Warning
isset()
indexed array
17. To sort the values while maintaining the correlation between each value and its key - in reversed order
arsort()
substr_count()
define()
Error
18. 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
19. To counter htmlentities()
curly braces
PHP
Object
html_entity_decode()
20. Use ______ for search engines or catalogued pages or pages that would be bookmarked.
===
rand()
arsort()
GET
21. Control structure that continue exit - they perform specific statements for a determined number of iterations.
loops
.=
numbers
if/elseif/else and switch statements
22. The array that stores variables specific to a user's visit
$_SESSION[]
Constant
HTTP
client-side programing
23. Used to check if a variable has any value (including 0 or FALSE or an empty string).
number_format()
switch
$_POST[]
isset()
24. A conditional or loop is a ________________.
control structure
Notice
sort()
float
25. collection of binary data
string
not
count()
wordwrap()
26. $_POST Data sent using POST found is sent to _______
is_numeric()
string
predefined variable
shuffle()
27. To check if a constant is already declared
PHP
defined()
general
$array[] = item
28. The ouput of var_export((bool)"NULL");
true
$_REQUEST
include() and require()
single quotes
29. To reorganise the array randomly
precedence
htmlentities()
shuffle()
Parse error
30. To create an array
function
mysql_fetch_object()
array()
defined()
31. This error refers to a variable with no value.
not
Notice
getrandmax()
client-side programing
32. To remove all HTML and PHP tags.
GET
strip_tags()
Object
error_reporting (E_ALL)
33. An array of variables passed in the URL
number_format()
asort()
str_ireplace()
$_GET[]
34. The output of var_export((float)array(0));
chop()
$varname[key]
1
HTML
35. Returns a character from a specified ASCII value
addslashes()
include() and require()
chr()
superglobal
36. To iterate over the values of an array
$var++ and $var
octal
count()
for ($i = 0; $i < count($array); $i++) {statement(s);}
37. _________ can be used in conditional statements to set precedence
array_merge()
ksort()
parentheses
$array[] = item
38. Search Engine Optimization
HTML
.=
SEO
array_merge()
39. Similar to mysql_fetch_array() - but cannot be accessed by integer offset
$_POST[]
mysql_fetch_object()
XOR
general
40. To reset an array _______ the array() function to the array
precedence
reassign
curly braces
bin2hex()
41. container of both data and code
Parse error
boolean
Object
mysql
42. The seven main error reporting constants are: E_NOTICE - E_WARNING - E_PARSE - E_ERROR - E_ALL - _____ - E_DEPRECATED
E_STRICT
predefined
0
XML
43. Returns an array that corresponds to the fetched row of MySQL data and moves the internal data pointer ahead
control structure
HTTP
mysql_fetch_array()
drop
44. Function used to convert new lines in a variable from a form to <br /> tags so that the data can be formatted correctly.
empty()
loops
nl2br()
array_merge()
45. allows you to split strings based on more complex rules
preg_split()
str_ireplace()
str_word_count()
WYSIWYG
46. $_POST and $_GET are ________ variables.
WYSIWYG
predefined
function
string
47. Variable names cannot begin with _______
round() Function
integer
1
numbers
48. Used to encrypt values - it is a one-way encryption method
array
Magic Constant
crypt()
statement
49. To assign keys to the values in an array
abs()
asort()
empty()
array()
50. To get over quotation marks while using arrays
statement
error_reporting (0)
curly braces
function