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 name of the #! used to designate the location of the PHP binary
define()
curly braces; ${$total}
Shebang
+= or -= or *= or /=
2. To remove all HTML and PHP tags.
strip_tags()
curly braces
mysql_close($dbc)
chop()
3. Control structure that continue exit - they perform specific statements for a determined number of iterations.
superglobal
Hex
$$
loops
4. Variable names can begin with __________
$_POST[]
underscores
Magic Constant
round() Function
5. Besides GET and POST ________ can be used to access data but $_POST and $_GET are more precise and therefore preferable.
float
crypt()
error_reporting (E_ALL & -E_NOTICE)
$_REQUEST
6. Tag to begin a php script
curly braces; ${$total}
crypt()
ASP
<?php
7. Control structures that break exit
variable
str_ireplace()
E_STRICT
if/elseif/else and switch statements
8. Predefined constants such as __LINE__ or __FILE__ or __FUNCTION__ or __CLASS__ and __METHOD__
array()
Magic Constant
string
the period; .
9. The seven main error reporting constants are: E_NOTICE - E_WARNING - E_PARSE - E_ERROR - E_ALL - _____ - E_DEPRECATED
Parse error
$_REQUEST
shuffle()
E_STRICT
10. Used to find the amount of words in a string.
str_word_count()
server-side programing
control structure
$array[] = item
11. To iterate over the keys and values of an array
.=
0
foreach loop
XML
12. To create an array
shuffle()
double quotes
array()
the period; .
13. An array of variables passed with <input /> data
$_POST[]
urlencode()
predefined variable
crypt()
14. Use ______ for search engines or catalogued pages or pages that would be bookmarked.
$_SESSION[]
GET
reassign
array()
15. Operators used to operate and assign
$dbc = mysql_connect(hostname, username, password)
error_reporting (E_ALL | E_STRICT)
+= or -= or *= or /=
curly braces
16. Tag to end a php script
negative numbers
AJAX
?>
===
17. Use _______ for passwords or pages that would not be bookmarked or pages that require security.
===
POST
round() Function
GET
18. All variables must begin with _________.
trim()
the dollar sign $
negative numbers
error_reporting (E_ALL | E_STRICT)
19. Online applications and resources which are available to the general public with very few restrictions
function error_reporting()
preg_match()
array()
open source
20. Function can you use to format a number with commas
===
htmlentities()
define()
number_format()
21. An array whose keys are numbers.
string
for ($i = 0; $i < count($array); $i++) {statement(s);}
indexed array
server-side programing
22. bitwise left shift
$_POST[]
<<
client-side programing
string
23. To determine the amount of elements in an array
chr()
count()
$_SESSION[]
index
24. bitwise right shift
getrandmax()
POST
>>
Object
25. any programing language where the script is parsed on the server
POST
server-side programing
open source
integer
26. Used to find the length of a string
echo
strlen()
statement
Warning
27. $_SERVER - $_POST - $_GET - $_COOKIE - $_SESSION - $_ENV; special arrays.
array
preg_replace()
foreach
superglobal
28. Returns an array that corresponds to the fetched row of MySQL data and moves the internal data pointer ahead
Parse error
1
mysql_fetch_array()
server-side programing
29. The order of operations.
mysql_close($dbc)
precedence
foreach loop
strip_tags()
30. Used to remove any white space - spaces or newlines or tabs - from the beginning and end of a string - not the middle.
variable
trim()
Magic Constant
array
31. To word wrap after a certain amount of characters.
$_GET[]
associative array
wordwrap()
statement
32. To sort values of an array without regard to the keys
open source
double quotes
urlencode()
sort()
33. addition
for ($i = 0; $i < count($array); $i++) {statement(s);}
+
Object
count()
34. a line of information that can be stored in a variable or used in a function or statement
Magic Constant
string
PHP
mysql_fetch_array()
35. $_POST and $_GET are ________ variables.
predefined
general
if/elseif/else and switch statements
nl2br()
36. Define(NAME,value)
include() and require()
Constant
strip_tags()
precedence
37. a type with two possible values: true and false
$_POST[]
foreach
boolean
chop()
38. $_SERVER is a ________ variable.
$array[] = item
predefined
>>
Shebang
39. An array whose keys are strings; also known as a hash.
strip_tags()
PHP
associative array
nl2br()
40. This error arises from misusing a function.
XOR
preg_split()
Error
Warning
41. ___________ can be used with substr() to count backward
str_ireplace()
$varname[key]
not
negative numbers
42. This will show all error reporting except for notice errors.
strip_tags()
ceil()
array()
error_reporting (E_ALL & -E_NOTICE)
43. Leading 0x: 0x13F or 0xA23
error_reporting (0)
Hex
loops
Array
44. _______ is a comparison operator
$_POST[]
Constant
!= inequality
wordwrap()
45. A conditional or loop is a ________________.
boolean
<?php
$_GET[]
control structure
46. identity
echo
number_format()
error_reporting (E_ALL | E_STRICT)
===
47. Similar to mysql_fetch_array() - but cannot be accessed by integer offset
HTML
the escape character ''
mysql_fetch_array()
mysql_fetch_object()
48. The output of var_export((float)array());
strip_tags()
0
?>
client-side programing
49. What You See Is What You Get
sql
WYSIWYG
array()
if/elseif/else and switch statements
50. To reset an array _______ the array() function to the array
$_POST[]
!= inequality
ini_set ('display_errors', 1)
reassign