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. returns the number of matches found by a given search string under this format...
XML
floor()
mysql_fetch_array()
preg_match()
2. The order of operations.
precedence
is_numeric()
trim()
sort()
3. addition
crypt()
boolean
+
Object
4. container of ordered data elements
htmlentities()
statement
Array
strtok()
5. This will show all error reporting except for notice errors.
null
count()
HTTP
error_reporting (E_ALL & -E_NOTICE)
6. An array of variables passed with <input /> data
$$
0
$_POST[]
function
7. Used to check if a given variable has an "empty" value - no value or 0 or FALSE.
mysql_fetch_object()
floor()
empty()
SGML
8. To close a connection between a database
strlen()
getrandmax()
mysql
mysql_close($dbc)
9. To remove all HTML and PHP tags.
wordwrap()
$var++ and $var
strip_tags()
preg_match()
10. To declare a constant
control structure
define()
htmlspecialchars()
variable
11. The seven main SQL (structured query language) functions are alter - create - delete - _______ - insert - select - update
drop
date()
array()
0
12. To sort values of an array without regard to the keys
true
predefined
sort()
float
13. To word wrap after a certain amount of characters.
wordwrap()
boolean
curly braces
html_entity_decode()
14. Function used to find the absolute value of a number or numeric variable
Parse error
shuffle()
abs()
echo
15. Search Engine Optimization
chr()
SEO
ceil()
urlencode()
16. The concatenation assignment operator?
.=
the period; .
define()
strtok()
17. To get over quotation marks while using arrays
curly braces
is_numeric()
the escape character ''
$_REQUEST
18. Hypertext Preprocessor - a server-side programing language used to create webpages
control structure
crypt()
PHP
curly braces; ${$total}
19. EXtensible Markup Language
octal
XML
drop
the escape character ''
20. Use ______ when a variable contains any amount of variables; in general.
double quotes
array()
E_STRICT
$$
21. To sort the values while maintaining the correlation between each value and its key - in reversed order
arsort()
mysql
sort()
POST
22. An array whose keys are strings; also known as a hash.
Shebang
associative array
fopen()
XOR
23. Used to encrypt values - it is a one-way encryption method
crypt()
GET
HTTP
substr_count()
24. The concatenation operator?
rand()
include() and require()
the period; .
number_format()
25. Control structures that break exit
octal
list()
addslashes()
if/elseif/else and switch statements
26. either hasn't yet been set or is assigned NULL value
null
Magic Constant
XML
foreach
27. Hyper Text Transfer Protocol
HTTP
1
reassign
foreach loop
28. The seven main error reporting constants are: E_NOTICE - E_WARNING - E_PARSE - E_ERROR - E_ALL - _____ - E_DEPRECATED
ksort()
abs()
E_STRICT
mysql_fetch_array()
29. To determine the amount of elements in an array
SEO
count()
strlen()
&
30. ___________ can be used with substr() to count backward
null
negative numbers
error_reporting (0)
ksort()
31. Function used to convert new lines in a variable from a form to <br /> tags so that the data can be formatted correctly.
HTTP
define()
nl2br()
$_REQUEST
32. To assign keys to the values in an array
$_REQUEST
define()
integer
array()
33. leading zero: 0100 or 0567
Magic Constant
str_ireplace()
$array[] = item
octal
34. To reset an array _______ the array() function to the array
ini_set ('display_errors', 1)
ASP
reassign
XML
35. The array that stores variables specific to a user's visit
$_SESSION[]
function
XML
preg_match()
36. 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 __________.
client-side programing
true
unset()
curly braces; ${$total}
37. _____ is a logical operator
if/elseif/else and switch statements
is_numeric()
XOR
preg_split()
38. bitwise left shift
$varname[key]
$dbc = mysql_connect(hostname, username, password)
<<
error_reporting (0)
39. Standard Generalized Markup Language
crypt()
strip_tags()
SGML
rsort()
40. used to round numeric values.
HTTP
XOR
round() Function
$_REQUEST
41. a type with two possible values: true and false
isset()
htmlspecialchars()
boolean
predefined
42. signed floating-point value
floor()
loops
string
float
43. function Function used to create a random number
rand()
$varname[key]
open source
crypt()
44. To find how many substrings are in a string
XOR
substr_count()
$_SESSION[]
true
45. Used to check if a variable has a valid numerical value; strings with numerical values pass.
the escape character ''
is_numeric()
defined()
define()
46. allows you to split strings based on more complex rules
sort()
html_entity_decode()
preg_split()
<<
47. container of both data and code
function error_reporting()
decimal
==
Object
48. 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.
control structure
error_reporting (E_ALL | E_STRICT)
count()
boolean
49. Returns an array that corresponds to the fetched row of MySQL data and moves the internal data pointer ahead
mysql_fetch_array()
addslashes()
asort()
arsort()
50. Returns a string with backslashes in front of the specified characters
client-side programing
==
reassign
addcslashes()