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. allows you to split strings based on more complex rules
trim()
array_merge()
HTML
preg_split()
2. To iterate over the keys and values of an array
define()
foreach loop
int
define()
3. Alias of rtrim()
empty()
decimal
chop()
drop
4. To get time data
precedence
strtok()
$varname[key]
date()
5. _____ is a logical operator
$_POST[]
isset()
XOR
number_format()
6. To create an array
?>
array()
Shebang
>>
7. Active Server Pages
index
ASP
integer
shuffle()
8. Used to check if a variable has a valid numerical value; strings with numerical values pass.
function
Error
is_numeric()
client-side programing
9. The syntax for connecting to a database
Array
$dbc = mysql_connect(hostname, username, password)
chop()
error_reporting (0)
10. This will not show error reporting - it will be turned off.
mysql
error_reporting (0)
error_reporting (E_ALL & -E_NOTICE)
strip_tags()
11. A conditional or loop is a ________________.
GET
===
control structure
client-side programing
12. Used to check if a variable has any value (including 0 or FALSE or an empty string).
ini_set ('display_errors', 1)
isset()
&
Object
13. To merge arrays
abs()
nl2br()
htmlspecialchars()
array_merge()
14. _______ is a comparison operator
strtok()
<<
!= inequality
?>
15. The concatenation operator?
wordwrap()
$_REQUEST
Hex
the period; .
16. To set up error reporting
mysql
predefined variable
Parse error
function error_reporting()
17. Function used to round up to the highest integer
HTTP
loops
ceil()
AJAX
18. To assign keys to the values in an array
mysql
array()
Hex
if/elseif/else and switch statements
19. Used to check if a given variable has an "empty" value - no value or 0 or FALSE.
general
client-side programing
addcslashes()
empty()
20. To append elements to an array - this will assign item to the next available index; associative arrays get messy.
curly braces; ${$total}
defined()
$array[] = item
htmlspecialchars()
21. An array of variables passed in the URL
error_reporting (E_ALL & -E_NOTICE)
$_GET[]
reassign
strtok()
22. ___________ can be used with substr() to count backward
string
underscores
negative numbers
superglobal
23. $_SERVER is a ________ variable.
XOR
predefined
<?php
boolean
24. Function used to find the absolute value of a number or numeric variable
htmlspecialchars()
GET
ASP
abs()
25. The concatenation assignment operator?
addcslashes()
$_GET[]
isset()
.=
26. An array whose keys are strings; also known as a hash.
integer
number_format()
associative array
>>
27. This will show all error reporting except for notice errors.
crypt()
$$
error_reporting (E_ALL & -E_NOTICE)
htmlentities()
28. Used to find the length of a string
$varname[key]
+
sql
strlen()
29. Use ______ for search engines or catalogued pages or pages that would be bookmarked.
foreach
unset()
GET
associative array
30. The seven main SQL (structured query language) functions are alter - create - delete - _______ - insert - select - update
htmlspecialchars()
error_reporting (E_ALL)
drop
boolean
31. Besides GET and POST ________ can be used to access data but $_POST and $_GET are more precise and therefore preferable.
Magic Constant
urlencode()
int
$_REQUEST
32. Use ______ when there are no variables in the string
open source
function error_reporting()
single quotes
drop
33. Use ______ when a variable contains any amount of variables; in general.
double quotes
Parse error
html_entity_decode()
the period; .
34. leading zero: 0100 or 0567
Parse error
octal
the escape character ''
boolean
35. Used to convert all HTML tags into their entity versions.
htmlentities()
include() and require()
HTML
0
36. To sort values of an array without regard to the keys
chr()
sort()
single quotes
Shebang
37. _________ can be used in conditional statements to set precedence
parentheses
addcslashes()
abs()
<<
38. Define(NAME,value)
server-side programing
Constant
foreach
error_reporting (0)
39. The output of var_export((float)array());
0
AJAX
Object
foreach loop
40. a positive or negative number
defined()
mysql
crypt()
integer
41. Hyper Text Transfer Protocol
HTTP
open source
ksort()
define()
42. To get over quotation marks while using arrays
underscores
?>
E_STRICT
curly braces
43. To close a connection between a database
$_POST[]
mysql_close($dbc)
null
chr()
44. searches the subject for matches to a given pattern replaced with the given replacement text
rand()
mysql_fetch_array()
preg_replace()
error_reporting (0)
45. either hasn't yet been set or is assigned NULL value
define()
null
predefined variable
WYSIWYG
46. To sort values of an array in reversed order
rsort()
numbers
ceil()
>>
47. bitwise right shift
HTML
0
sql
>>
48. To find how many substrings are in a string
substr_count()
==
loops
function
49. a database which is best supported by PHP
mysql
+= or -= or *= or /=
curly braces
error_reporting (E_ALL)
50. An array whose keys are numbers.
Error
PHP
indexed array
chr()