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 refer to an element in a multidimensional array list the indices in order of _____ to more precise;
general
drop
function
defined()
2. Leading 0x: 0x13F or 0xA23
Hex
Error
server-side programing
Constant
3. either hasn't yet been set or is assigned NULL value
urlencode()
null
nl2br()
crypt()
4. Returns an array that corresponds to the fetched row of MySQL data and moves the internal data pointer ahead
trim()
indexed array
foreach
mysql_fetch_array()
5. Active Server Pages
Warning
superglobal
.=
ASP
6. says 'if' this then do this 'else' do this or 'while' this do this
mysql
int
statement
numbers
7. This fatal fatal is caused by a semantic mistake: omission of a semicolon or imbalance of quotations or parentheses or braces.
AJAX
defined()
Parse error
bin2hex()
8. Besides GET and POST ________ can be used to access data but $_POST and $_GET are more precise and therefore preferable.
$_REQUEST
define()
HTML
wordwrap()
9. returns the number of matches found by a given search string under this format...
Magic Constant
error_reporting (E_ALL & -E_NOTICE)
int
preg_match()
10. a storage location in the computer's memory that has a type & a name and a contents
mysql_fetch_object()
Array
variable
>>
11. The concatenation assignment operator?
<?php
.=
include() and require()
urlencode()
12. _______ is a comparison operator
!= inequality
Constant
arsort()
str_word_count()
13. TRUE or FALSE
boolean
Error
addslashes()
superglobal
14. ___________ can be used with substr() to count backward
general
function
negative numbers
function error_reporting()
15. Tag to end a php script
?>
integer
index
empty()
16. Used to replace a substring with another string - it is not case-sensitive.
preg_split()
string
str_ireplace()
>>
17. To word wrap after a certain amount of characters.
preg_replace()
preg_split()
switch
wordwrap()
18. does a certain action when called upon
the dollar sign $
$_SESSION[]
int
function
19. Converts a string of ASCII characters to hexadecimal values
>>
1
curly braces
bin2hex()
20. $_POST and $_GET are ________ variables.
octal
htmlspecialchars()
SGML
predefined
21. print $_SERVER will _____ work if you use the print function on arrays.
array
not
htmlentities()
SEO
22. All variables must begin with _________.
HTML
array()
numbers
the dollar sign $
23. the most basic function in PHP used to output information to the page
not
asort()
echo
Hex
24. Used to encrypt values - it is a one-way encryption method
addslashes()
$_POST[]
crypt()
not
25. To get over quotation marks while using arrays
control structure
substr_count()
foreach
curly braces
26. leading zero: 0100 or 0567
variable
octal
Notice
crypt()
27. $_SERVER is a ________ variable.
predefined
str_word_count()
define()
error_reporting (E_ALL)
28. allows you to split strings based on more complex rules
nl2br()
urlencode()
parentheses
preg_split()
29. To find how many substrings are in a string
numbers
double quotes
str_word_count()
substr_count()
30. PHP has two conditional: if and ______.
switch
getrandmax()
for ($i = 0; $i < count($array); $i++) {statement(s);}
shuffle()
31. Use ______ when a variable contains any amount of variables; in general.
double quotes
floor()
<<
html_entity_decode()
32. 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}
$$
Constant
WYSIWYG
33. a language in which to make querys to a database with
mysql_close($dbc)
sql
string
^
34. used to round numeric values.
$array[] = item
Array
round() Function
htmlentities()
35. Uses two arguments: constant name and constant definition
define()
<<
array()
predefined variable
36. bitwise right shift
define()
$var++ and $var
>>
switch
37. Returns a string with backslashes in front of predefined characters
getrandmax()
addslashes()
strip_tags()
Parse error
38. function Function used to create a random number
true
rand()
Array
number_format()
39. The name of the #! used to designate the location of the PHP binary
null
Shebang
^
the escape character ''
40. $_POST Data sent using POST found is sent to _______
DTD
predefined variable
>>
?>
41. signed floating-point value
round() Function
SEO
function
float
42. The concatenation operator?
sort()
mysql_fetch_array()
the period; .
Array
43. Control structure that continue exit - they perform specific statements for a determined number of iterations.
loops
addcslashes()
single quotes
rsort()
44. standard notation
$var++ and $var
error_reporting (E_ALL & -E_NOTICE)
decimal
WYSIWYG
45. ____ or key is referred to for a value within an array.
index
bin2hex()
associative array
function error_reporting()
46. 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.
ASP
DTD
error_reporting (E_ALL | E_STRICT)
Constant
47. bitwise AND
sort()
&
define()
statement
48. Returns a character from a specified ASCII value
chr()
mysql
isset()
foreach
49. A data structure that can hold a number of items of data of the same type eg. a list of names
variable
htmlentities()
array
int
50. signed integer
bin2hex()
int
XML
$var++ and $var