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. does a certain action when called upon
bin2hex()
precedence
predefined variable
function
2. Uses two arguments: constant name and constant definition
nl2br()
1
define()
SEO
3. To delete a variable or an element of an array
unset()
HTTP
boolean
+
4. To assign array element values to individual variables
reassign
list()
===
associative array
5. returns the number of matches found by a given search string under this format...
preg_match()
array_merge()
variable
str_ireplace()
6. Used to find the amount of words in a string.
variable
curly braces
associative array
str_word_count()
7. says 'if' this then do this 'else' do this or 'while' this do this
E_STRICT
===
POST
statement
8. Function that contains the highest value that rand() can have randomly
getrandmax()
array_merge()
Warning
true
9. Use _______ for passwords or pages that would not be bookmarked or pages that require security.
^
POST
null
rand()
10. A data structure that can hold a number of items of data of the same type eg. a list of names
$$
array
===
DTD
11. Operators used to operate and assign
===
count()
error_reporting (E_ALL | E_STRICT)
+= or -= or *= or /=
12. Returns a string with backslashes in front of the specified characters
addcslashes()
XML
foreach loop
indexed array
13. Tag to begin a php script
0
rand()
<?php
define()
14. The output of var_export((float)array());
$var++ and $var
error_reporting (E_ALL | E_STRICT)
0
GET
15. Returns an array that corresponds to the fetched row of MySQL data and moves the internal data pointer ahead
predefined variable
fopen()
mysql_fetch_array()
statement
16. To close a connection between a database
mysql_close($dbc)
defined()
rsort()
$_SESSION[]
17. searches the subject for matches to a given pattern replaced with the given replacement text
<<
preg_replace()
indexed array
single quotes
18. To reorganise the array randomly
unset()
preg_replace()
shuffle()
$_REQUEST
19. identity
fopen()
error_reporting (0)
^
===
20. leading zero: 0100 or 0567
rand()
getrandmax()
preg_split()
octal
21. Creates a pointer to a file with the declared mode (read - write -etc.).
the dollar sign $
fopen()
mysql_fetch_array()
===
22. The prefix for a dynamic variable - also known as a variable variable
strip_tags()
loops
$$
drop
23. The concatenation operator?
$_GET[]
shuffle()
the period; .
nl2br()
24. equivalence
fopen()
curly braces
==
Parse error
25. Leading 0x: 0x13F or 0xA23
float
Hex
+= or -= or *= or /=
null
26. 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
27. Asynchronous Javascript And XML
AJAX
nl2br()
$_REQUEST
Object
28. To sort the values while maintaining the correlation between each value and its key - in reversed order
arsort()
bin2hex()
if/elseif/else and switch statements
Constant
29. An array of variables passed in the URL
mysql
$_GET[]
1
control structure
30. To append elements to an array - this will assign item to the next available index; associative arrays get messy.
addcslashes()
abs()
strtok()
$array[] = item
31. This error arises from misusing a function.
Warning
ksort()
decimal
floor()
32. The order of operations.
float
&
precedence
reassign
33. Used to check if a given variable has an "empty" value - no value or 0 or FALSE.
the escape character ''
strip_tags()
for ($i = 0; $i < count($array); $i++) {statement(s);}
empty()
34. To merge arrays
loops
HTTP
array_merge()
<?php
35. a language in which to make querys to a database with
strtok()
precedence
sql
predefined
36. This error refers to a variable with no value.
Notice
Array
1
E_STRICT
37. Used to create a substring (referred to as a token) from a larger string
==
curly braces
superglobal
strtok()
38. Predefined constants such as __LINE__ or __FILE__ or __FUNCTION__ or __CLASS__ and __METHOD__
E_STRICT
fopen()
Magic Constant
include() and require()
39. Online applications and resources which are available to the general public with very few restrictions
open source
$array[] = item
?>
foreach
40. This fatal fatal is caused by a semantic mistake: omission of a semicolon or imbalance of quotations or parentheses or braces.
Parse error
Error
arsort()
integer
41. The ouput of var_export((bool)"NULL");
true
numbers
Constant
ASP
42. Used to check if a variable has any value (including 0 or FALSE or an empty string).
isset()
function
preg_split()
abs()
43. Tag to end a php script
?>
nl2br()
foreach loop
number_format()
44. Use ______ for search engines or catalogued pages or pages that would be bookmarked.
boolean
Magic Constant
GET
numbers
45. a type with two possible values: true and false
getrandmax()
preg_split()
XML
boolean
46. Used to convert all HTML tags into their entity versions.
htmlentities()
the dollar sign $
ini_set ('display_errors', 1)
numbers
47. Shorthand used to increment and decrement
$var++ and $var
octal
array
defined()
48. the most basic function in PHP used to output information to the page
echo
strip_tags()
predefined
foreach loop
49. To remove all HTML and PHP tags.
str_word_count()
strip_tags()
indexed array
null
50. To assign keys to the values in an array
$_GET[]
array()
curly braces; ${$total}
XML