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 remove all HTML and PHP tags.
boolean
strip_tags()
float
round() Function
2. Use ______ when there are no variables in the string
chop()
Error
single quotes
E_STRICT
3. either hasn't yet been set or is assigned NULL value
addcslashes()
getrandmax()
XOR
null
4. An array of variables passed in the URL
$_GET[]
$_REQUEST
^
chr()
5. The prefix for a dynamic variable - also known as a variable variable
$$
superglobal
preg_replace()
error_reporting (0)
6. To reorganise the array randomly
==
shuffle()
$_REQUEST
integer
7. A conditional or loop is a ________________.
Error
control structure
if/elseif/else and switch statements
superglobal
8. $_POST Data sent using POST found is sent to _______
1
predefined
string
predefined variable
9. Used to create a substring (referred to as a token) from a larger string
DTD
control structure
strtok()
shuffle()
10. Leading 0x: 0x13F or 0xA23
array_merge()
Hex
===
$varname[key]
11. container of both data and code
shuffle()
0
POST
Object
12. print $_SERVER will _____ work if you use the print function on arrays.
date()
$_GET[]
$var++ and $var
not
13. Returns a string with backslashes in front of predefined characters
variable
addslashes()
is_numeric()
abs()
14. To sort by the keys while maintaining the correlation between the key and its value
ksort()
null
foreach loop
decimal
15. a storage location in the computer's memory that has a type & a name and a contents
wordwrap()
variable
preg_split()
$var++ and $var
16. The seven main error reporting constants are: E_NOTICE - E_WARNING - E_PARSE - E_ERROR - E_ALL - _____ - E_DEPRECATED
reassign
Object
E_STRICT
date()
17. Hyper Text Markup Language
round() Function
HTML
array()
preg_match()
18. The array that stores variables specific to a user's visit
$_SESSION[]
double quotes
arsort()
numbers
19. Used to check if a given variable has an "empty" value - no value or 0 or FALSE.
number_format()
XOR
empty()
Parse error
20. Search Engine Optimization
is_numeric()
precedence
SEO
E_STRICT
21. Alias of rtrim()
loops
foreach loop
chop()
crypt()
22. To find how many substrings are in a string
urlencode()
SEO
substr_count()
string
23. To sort the values while maintaining the correlation between each value and its key - in reversed order
index
unset()
arsort()
Hex
24. $_SERVER is a ________ variable.
wordwrap()
predefined
WYSIWYG
Notice
25. To set up error reporting
substr_count()
function error_reporting()
echo
&
26. To get time data
str_word_count()
date()
reassign
chr()
27. Shorthand used to increment and decrement
ceil()
array
$var++ and $var
$_REQUEST
28. Used to find the amount of words in a string.
mysql_close($dbc)
str_word_count()
SEO
negative numbers
29. Tag to begin a php script
html_entity_decode()
Hex
<?php
ceil()
30. To word wrap after a certain amount of characters.
wordwrap()
nl2br()
POST
echo
31. To sort values of an array in reversed order
rsort()
mysql_fetch_object()
ini_set ('display_errors', 1)
list()
32. Function used to round down to the lowest integer
list()
isset()
shuffle()
floor()
33. The seven main SQL (structured query language) functions are alter - create - delete - _______ - insert - select - update
drop
rand()
$_REQUEST
statement
34. Used to find the length of a string
error_reporting (E_ALL | E_STRICT)
strlen()
negative numbers
list()
35. Used to replace a substring with another string - it is not case-sensitive.
Notice
bin2hex()
str_ireplace()
Parse error
36. Returns a character from a specified ASCII value
GET
define()
chr()
mysql
37. Used to convert certain HTML tags into their entity versions.
curly braces
htmlspecialchars()
preg_match()
array()
38. signed floating-point value
server-side programing
addcslashes()
index
float
39. the most basic function in PHP used to output information to the page
fopen()
echo
?>
E_STRICT
40. The syntax for connecting to a database
preg_match()
reassign
==
$dbc = mysql_connect(hostname, username, password)
41. Uses two arguments: constant name and constant definition
define()
the period; .
Error
mysql_close($dbc)
42. Hyper Text Transfer Protocol
===
E_STRICT
foreach
HTTP
43. To refer to an element in a multidimensional array list the indices in order of _____ to more precise;
curly braces
general
!= inequality
E_STRICT
44. standard notation
mysql_fetch_object()
count()
decimal
XOR
45. Use ______ when a variable contains any amount of variables; in general.
shuffle()
drop
double quotes
for ($i = 0; $i < count($array); $i++) {statement(s);}
46. a positive or negative number
underscores
array()
integer
function error_reporting()
47. An array whose keys are numbers.
associative array
indexed array
control structure
&
48. To create an array
array()
crypt()
addcslashes()
1
49. To put a dollar sign before a variable like $10 where 10 is the variable's value - you can escape the first dollar sign; $$cost; or you can use __________.
curly braces; ${$total}
boolean
AJAX
numbers
50. _______ is a comparison operator
ceil()
0
boolean
!= inequality