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. the most basic function in PHP used to output information to the page
SGML
<?php
echo
error_reporting (0)
2. Besides GET and POST ________ can be used to access data but $_POST and $_GET are more precise and therefore preferable.
rand()
0
error_reporting (E_ALL & -E_NOTICE)
$_REQUEST
3. Returns a string with backslashes in front of predefined characters
GET
$dbc = mysql_connect(hostname, username, password)
define()
addslashes()
4. The concatenation operator?
the period; .
Magic Constant
strip_tags()
array()
5. This will not show error reporting - it will be turned off.
error_reporting (0)
float
Warning
===
6. Hypertext Preprocessor - a server-side programing language used to create webpages
string
preg_split()
$$
PHP
7. Used to convert certain HTML tags into their entity versions.
single quotes
htmlspecialchars()
HTML
error_reporting (E_ALL)
8. Use _______ for passwords or pages that would not be bookmarked or pages that require security.
Constant
?>
POST
preg_match()
9. To counter htmlentities()
E_STRICT
include() and require()
strtok()
html_entity_decode()
10. does a certain action when called upon
htmlspecialchars()
function
function error_reporting()
Parse error
11. Used to replace a substring with another string - it is not case-sensitive.
str_ireplace()
substr_count()
?>
Parse error
12. Function used to round down to the lowest integer
index
switch
rsort()
floor()
13. To word wrap after a certain amount of characters.
mysql_fetch_object()
addslashes()
error_reporting (0)
wordwrap()
14. Control structures that break exit
if/elseif/else and switch statements
loops
single quotes
html_entity_decode()
15. To remove all HTML and PHP tags.
strip_tags()
double quotes
Hex
number_format()
16. any programing language where the script is parsed on the server
===
asort()
<<
server-side programing
17. says 'if' this then do this 'else' do this or 'while' this do this
statement
drop
error_reporting (E_ALL)
function error_reporting()
18. Function used to round up to the highest integer
Error
int
ceil()
defined()
19. searches the subject for matches to a given pattern replaced with the given replacement text
Parse error
defined()
preg_replace()
empty()
20. signed integer
true
int
AJAX
DTD
21. Function used to find the absolute value of a number or numeric variable
is_numeric()
underscores
?>
abs()
22. Returns a character from a specified ASCII value
predefined
0
Error
chr()
23. bitwise left shift
reassign
<<
html_entity_decode()
ASP
24. Leading 0x: 0x13F or 0xA23
E_STRICT
Hex
array_merge()
^
25. The array that stores variables specific to a user's visit
$_SESSION[]
wordwrap()
negative numbers
round() Function
26. Standard Generalized Markup Language
loops
SGML
the escape character ''
1
27. To set up error reporting
function error_reporting()
html_entity_decode()
numbers
count()
28. Define(NAME,value)
variable
Constant
chop()
error_reporting (E_ALL & -E_NOTICE)
29. To refer to an element in a multidimensional array list the indices in order of _____ to more precise;
strlen()
general
trim()
mysql_fetch_array()
30. Converts a string of ASCII characters to hexadecimal values
chr()
bin2hex()
decimal
preg_match()
31. Active Server Pages
HTML
parentheses
ASP
floor()
32. When used the value can be passed safely through the URL (GET).
wordwrap()
boolean
preg_match()
urlencode()
33. Use ________ to have multiple quotations in one string
E_STRICT
the escape character ''
empty()
Parse error
34. This error arises from misusing a function.
Warning
chop()
wordwrap()
preg_match()
35. $_POST and $_GET are ________ variables.
arsort()
predefined
Parse error
ceil()
36. The syntax for connecting to a database
$dbc = mysql_connect(hostname, username, password)
!= inequality
floor()
number_format()
37. Use ______ when a variable contains any amount of variables; in general.
double quotes
bin2hex()
<<
Notice
38. container of both data and code
curly braces; ${$total}
Object
function
empty()
39. To assign keys to the values in an array
SGML
+= or -= or *= or /=
array()
mysql_fetch_array()
40. To merge arrays
array_merge()
ceil()
rsort()
>>
41. allows you to split strings based on more complex rules
index
preg_split()
reassign
superglobal
42. To determine the amount of elements in an array
count()
PHP
nl2br()
predefined variable
43. a line of information that can be stored in a variable or used in a function or statement
string
isset()
&
curly braces
44. bitwise XOR
$dbc = mysql_connect(hostname, username, password)
^
boolean
array
45. addition
the period; .
floor()
isset()
+
46. a storage location in the computer's memory that has a type & a name and a contents
variable
<?php
SGML
function
47. Tag to begin a php script
Hex
<<
$var++ and $var
<?php
48. To sort the values while maintaining the correlation between each value and its key - in reversed order
<<
error_reporting (E_ALL & -E_NOTICE)
arsort()
WYSIWYG
49. Used to check if a variable has a valid numerical value; strings with numerical values pass.
echo
array_merge()
$dbc = mysql_connect(hostname, username, password)
is_numeric()
50. PHP has two conditional: if and ______.
substr_count()
switch
the period; .
==