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. ___________ can be used with substr() to count backward
negative numbers
reassign
number_format()
string
2. Used to find the length of a string
strlen()
error_reporting (0)
octal
crypt()
3. To append elements to an array - this will assign item to the next available index; associative arrays get messy.
$array[] = item
control structure
ini_set ('display_errors', 1)
ceil()
4. $_POST and $_GET are ________ variables.
numbers
chop()
strlen()
predefined
5. bitwise right shift
error_reporting (E_ALL | E_STRICT)
Array
>>
Hex
6. To sort the values while maintaining the correlation between each value and its key - in reversed order
defined()
arsort()
curly braces
string
7. Online applications and resources which are available to the general public with very few restrictions
open source
ceil()
0
loops
8. To reset an array _______ the array() function to the array
boolean
predefined
reassign
boolean
9. Asynchronous Javascript And XML
AJAX
foreach
not
Magic Constant
10. This will show all error reporting except for notice errors.
substr_count()
AJAX
XOR
error_reporting (E_ALL & -E_NOTICE)
11. The seven main SQL (structured query language) functions are alter - create - delete - _______ - insert - select - update
predefined
define()
1
drop
12. Control structure that continue exit - they perform specific statements for a determined number of iterations.
loops
parentheses
chop()
numbers
13. Returns an array that corresponds to the fetched row of MySQL data and moves the internal data pointer ahead
double quotes
foreach
the escape character ''
mysql_fetch_array()
14. Active Server Pages
wordwrap()
superglobal
predefined
ASP
15. To iterate over the keys and values of an array
curly braces; ${$total}
precedence
Shebang
foreach loop
16. Used to find the amount of words in a string.
function
reassign
boolean
str_word_count()
17. To sort by the keys while maintaining the correlation between the key and its value
floor()
ksort()
predefined
===
18. Use _______ for passwords or pages that would not be bookmarked or pages that require security.
the dollar sign $
POST
error_reporting (0)
$var++ and $var
19. To check if a constant is already declared
$_POST[]
wordwrap()
predefined
defined()
20. A data structure that can hold a number of items of data of the same type eg. a list of names
DTD
$_GET[]
client-side programing
array
21. To get time data
date()
index
null
SEO
22. searches the subject for matches to a given pattern replaced with the given replacement text
preg_replace()
WYSIWYG
index
getrandmax()
23. Function that contains the highest value that rand() can have randomly
?>
the dollar sign $
GET
getrandmax()
24. Variable names cannot begin with _______
Parse error
server-side programing
numbers
$dbc = mysql_connect(hostname, username, password)
25. The output of var_export((float)array(0));
echo
1
superglobal
round() Function
26. either hasn't yet been set or is assigned NULL value
<?php
null
the dollar sign $
ini_set ('display_errors', 1)
27. says 'if' this then do this 'else' do this or 'while' this do this
foreach loop
$$
statement
rsort()
28. _________ can be used in conditional statements to set precedence
negative numbers
parentheses
predefined
general
29. print $_SERVER will _____ work if you use the print function on arrays.
not
HTTP
control structure
precedence
30. Use ________ to have multiple quotations in one string
POST
error_reporting (E_ALL)
the escape character ''
round() Function
31. The syntax for connecting to a database
$dbc = mysql_connect(hostname, username, password)
Shebang
number_format()
array()
32. Operators used to operate and assign
error_reporting (E_ALL)
^
asort()
+= or -= or *= or /=
33. To remove all HTML and PHP tags.
strip_tags()
is_numeric()
mysql
boolean
34. does a certain action when called upon
Shebang
^
function
>>
35. Alias of rtrim()
open source
associative array
>>
chop()
36. An array of variables passed with <input /> data
fopen()
$_POST[]
XOR
single quotes
37. a storage location in the computer's memory that has a type & a name and a contents
crypt()
single quotes
Shebang
variable
38. Function can you use to format a number with commas
error_reporting (E_ALL)
chop()
.=
number_format()
39. Use ______ for search engines or catalogued pages or pages that would be bookmarked.
GET
SGML
str_word_count()
loops
40. used to round numeric values.
POST
isset()
round() Function
0
41. 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.
loops
error_reporting (E_ALL | E_STRICT)
null
htmlentities()
42. An array of variables passed in the URL
for ($i = 0; $i < count($array); $i++) {statement(s);}
$_GET[]
urlencode()
Shebang
43. To assign array element values to individual variables
list()
Warning
strip_tags()
>>
44. This fatal fatal is caused by a semantic mistake: omission of a semicolon or imbalance of quotations or parentheses or braces.
Parse error
htmlentities()
number_format()
not
45. signed integer
predefined
int
<?php
index
46. Used to convert certain HTML tags into their entity versions.
addslashes()
===
echo
htmlspecialchars()
47. To find how many substrings are in a string
decimal
$_REQUEST
substr_count()
curly braces; ${$total}
48. the most basic function in PHP used to output information to the page
float
ceil()
echo
XML
49. To reorganise the array randomly
shuffle()
is_numeric()
Warning
null
50. To include files - _______ will give errors and _________ will terminate execution().
preg_match()
include() and require()
indexed array
sort()