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. searches the subject for matches to a given pattern replaced with the given replacement text
function error_reporting()
preg_replace()
addcslashes()
Error
2. any programing language where the script is parsed on the server
negative numbers
server-side programing
string
boolean
3. Use ______ when a variable contains any amount of variables; in general.
double quotes
control structure
error_reporting (E_ALL)
strlen()
4. The concatenation operator?
function error_reporting()
the period; .
substr_count()
arsort()
5. identity
POST
arsort()
server-side programing
===
6. Used to check if a variable has a valid numerical value; strings with numerical values pass.
date()
PHP
is_numeric()
array()
7. To iterate over the values of an array
.=
the dollar sign $
for ($i = 0; $i < count($array); $i++) {statement(s);}
strlen()
8. Used to convert all HTML tags into their entity versions.
Parse error
sql
htmlentities()
client-side programing
9. Asynchronous Javascript And XML
function error_reporting()
AJAX
negative numbers
<?php
10. Active Server Pages
negative numbers
ASP
include() and require()
html_entity_decode()
11. EXtensible Markup Language
$$
PHP
XML
Array
12. This fatal error arises from memory allocation problem.
ksort()
Error
date()
unset()
13. $_POST Data sent using POST found is sent to _______
predefined variable
error_reporting (0)
parentheses
sql
14. To reset an array _______ the array() function to the array
superglobal
ceil()
$_GET[]
reassign
15. PHP has two conditional: if and ______.
asort()
switch
SGML
float
16. Control structures that break exit
wordwrap()
single quotes
if/elseif/else and switch statements
indexed array
17. To find how many substrings are in a string
error_reporting (E_ALL & -E_NOTICE)
function error_reporting()
$varname[key]
substr_count()
18. either hasn't yet been set or is assigned NULL value
the period; .
ASP
sort()
null
19. The name of the #! used to designate the location of the PHP binary
Hex
function error_reporting()
preg_split()
Shebang
20. To delete a variable or an element of an array
int
index
trim()
unset()
21. To determine the amount of elements in an array
GET
count()
SEO
Notice
22. To create an array
array()
the period; .
drop
the dollar sign $
23. ___________ can be used with substr() to count backward
indexed array
predefined
$_REQUEST
negative numbers
24. Document Type Definitions
array()
DTD
drop
HTML
25. Returns a character from a specified ASCII value
&
list()
chr()
preg_match()
26. Used to check if a variable has any value (including 0 or FALSE or an empty string).
isset()
ksort()
underscores
date()
27. The three types of loops in PHP are: for - while - ____.
error_reporting (E_ALL | E_STRICT)
abs()
null
foreach
28. bitwise right shift
>>
list()
addslashes()
index
29. This will show all error reporting except for notice errors.
client-side programing
error_reporting (E_ALL & -E_NOTICE)
ini_set ('display_errors', 1)
nl2br()
30. To sort the values while maintaining the correlation between each value and its key
$_SESSION[]
asort()
foreach loop
date()
31. Uses two arguments: constant name and constant definition
define()
count()
array()
chop()
32. Online applications and resources which are available to the general public with very few restrictions
server-side programing
preg_split()
open source
rsort()
33. This will show all error reporting.
preg_replace()
client-side programing
statement
error_reporting (E_ALL)
34. leading zero: 0100 or 0567
octal
isset()
shuffle()
include() and require()
35. Converts a string of ASCII characters to hexadecimal values
ksort()
Hex
PHP
bin2hex()
36. To sort the values while maintaining the correlation between each value and its key - in reversed order
$var++ and $var
is_numeric()
predefined
arsort()
37. This fatal fatal is caused by a semantic mistake: omission of a semicolon or imbalance of quotations or parentheses or braces.
drop
Parse error
associative array
Hex
38. 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.
the dollar sign $
predefined
error_reporting (E_ALL | E_STRICT)
abs()
39. Function can you use to format a number with commas
substr_count()
number_format()
the dollar sign $
PHP
40. To append elements to an array - this will assign item to the next available index; associative arrays get messy.
define()
$array[] = item
floor()
is_numeric()
41. Function used to round down to the lowest integer
htmlspecialchars()
rsort()
array_merge()
floor()
42. This will not show error reporting - it will be turned off.
==
error_reporting (0)
.=
floor()
43. a positive or negative number
POST
integer
array()
strip_tags()
44. $_POST and $_GET are ________ variables.
$varname[key]
$_POST[]
$_SESSION[]
predefined
45. Used to convert certain HTML tags into their entity versions.
htmlspecialchars()
ceil()
^
floor()
46. Use ______ when there are no variables in the string
numbers
foreach
single quotes
server-side programing
47. Control structure that continue exit - they perform specific statements for a determined number of iterations.
switch
addslashes()
Object
loops
48. Tag to end a php script
preg_replace()
?>
the escape character ''
+
49. A data structure that can hold a number of items of data of the same type eg. a list of names
Warning
getrandmax()
POST
array
50. An array of variables passed in the URL
1
$_GET[]
variable
DTD