SUBJECTS
|
BROWSE
|
CAREER CENTER
|
POPULAR
|
JOIN
|
LOGIN
Business Skills
|
Soft Skills
|
Basic Literacy
|
Certifications
About
|
Help
|
Privacy
|
Terms
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. Document Type Definitions
DTD
0
Parse error
ksort()
2. ____ or key is referred to for a value within an array.
XOR
index
Parse error
shuffle()
3. To find how many substrings are in a string
substr_count()
>>
chop()
array
4. Predefined constants such as __LINE__ or __FILE__ or __FUNCTION__ or __CLASS__ and __METHOD__
XOR
array()
$_SESSION[]
Magic Constant
5. Variable names can begin with __________
$var++ and $var
integer
negative numbers
underscores
6. returns the number of matches found by a given search string under this format...
<<
number_format()
Array
preg_match()
7. searches the subject for matches to a given pattern replaced with the given replacement text
switch
mysql
preg_replace()
&
8. Shorthand used to increment and decrement
$var++ and $var
getrandmax()
associative array
the period; .
9. Use ______ for search engines or catalogued pages or pages that would be bookmarked.
str_word_count()
int
GET
array()
10. To assign array element values to individual variables
list()
client-side programing
GET
true
11. The array that stores variables specific to a user's visit
array
ksort()
$dbc = mysql_connect(hostname, username, password)
$_SESSION[]
12. This will show all error reporting.
$_POST[]
error_reporting (E_ALL)
HTML
string
13. $_POST and $_GET are ________ variables.
predefined
!= inequality
$_REQUEST
$_POST[]
14. An array whose keys are strings; also known as a hash.
htmlentities()
statement
associative array
define()
15. allows you to split strings based on more complex rules
empty()
ini_set ('display_errors', 1)
preg_split()
function error_reporting()
16. Function used to find the absolute value of a number or numeric variable
AJAX
abs()
Parse error
>>
17. The concatenation assignment operator?
!= inequality
.=
curly braces
Parse error
18. The seven main error reporting constants are: E_NOTICE - E_WARNING - E_PARSE - E_ERROR - E_ALL - _____ - E_DEPRECATED
reassign
E_STRICT
true
trim()
19. Used to check if a variable has any value (including 0 or FALSE or an empty string).
boolean
predefined
isset()
function
20. The concatenation operator?
ceil()
float
addslashes()
the period; .
21. Function used to convert new lines in a variable from a form to <br /> tags so that the data can be formatted correctly.
shuffle()
nl2br()
preg_match()
foreach loop
22. a storage location in the computer's memory that has a type & a name and a contents
sql
array()
variable
the dollar sign $
23. To declare a constant
define()
Notice
Magic Constant
unset()
24. Used to find the length of a string
foreach
strlen()
indexed array
shuffle()
25. EXtensible Markup Language
function error_reporting()
getrandmax()
client-side programing
XML
26. a language in which to make querys to a database with
sql
str_word_count()
decimal
open source
27. bitwise left shift
$_GET[]
0
<<
predefined variable
28. Used to display errors in a particular script - should be placed at top of script.
29. This error arises from misusing a function.
predefined
Warning
rsort()
string
30. Function used to round down to the lowest integer
.=
chr()
floor()
predefined variable
31. To append elements to an array - this will assign item to the next available index; associative arrays get messy.
$array[] = item
is_numeric()
ksort()
==
32. signed integer
1
echo
wordwrap()
int
33. Converts a string of ASCII characters to hexadecimal values
superglobal
bin2hex()
integer
float
34. To sort by the keys while maintaining the correlation between the key and its value
ksort()
server-side programing
define()
Warning
35. Variable names cannot begin with _______
urlencode()
the dollar sign $
numbers
Object
36. The order of operations.
round() Function
str_word_count()
the period; .
precedence
37. any programing language where the user must support the language the script is written in
error_reporting (E_ALL & -E_NOTICE)
client-side programing
curly braces
nl2br()
38. To refer to an element in a multidimensional array list the indices in order of _____ to more precise;
array_merge()
isset()
general
$dbc = mysql_connect(hostname, username, password)
39. To sort values of an array without regard to the keys
abs()
sort()
$$
DTD
40. PHP has two conditional: if and ______.
rsort()
.=
function error_reporting()
switch
41. To create an array
array()
function error_reporting()
sql
variable
42. An array of variables passed with <input /> data
wordwrap()
$_POST[]
floor()
general
43. Hyper Text Markup Language
htmlentities()
preg_split()
the escape character ''
HTML
44. To get time data
===
the dollar sign $
strtok()
date()
45. To assign keys to the values in an array
array()
predefined
+= or -= or *= or /=
error_reporting (E_ALL | E_STRICT)
46. The name of the #! used to designate the location of the PHP binary
negative numbers
abs()
indexed array
Shebang
47. Hyper Text Transfer Protocol
strlen()
fopen()
Notice
HTTP
48. To iterate over the keys and values of an array
strip_tags()
foreach loop
curly braces; ${$total}
mysql_fetch_object()
49. 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.
error_reporting (E_ALL | E_STRICT)
decimal
precedence
fopen()
50. equivalence
==
preg_replace()
foreach
error_reporting (E_ALL & -E_NOTICE)