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. any programing language where the script is parsed on the server
1
server-side programing
the period; .
variable
2. Used to convert all HTML tags into their entity versions.
htmlentities()
getrandmax()
error_reporting (E_ALL | E_STRICT)
echo
3. To get time data
error_reporting (0)
date()
$$
count()
4. Hypertext Preprocessor - a server-side programing language used to create webpages
true
PHP
preg_split()
POST
5. either hasn't yet been set or is assigned NULL value
Object
numbers
null
server-side programing
6. Used to find the amount of words in a string.
str_word_count()
indexed array
error_reporting (E_ALL | E_STRICT)
preg_replace()
7. print $_SERVER will _____ work if you use the print function on arrays.
Constant
fopen()
array()
not
8. $_POST and $_GET are ________ variables.
Object
Constant
+= or -= or *= or /=
predefined
9. Standard Generalized Markup Language
associative array
HTML
SGML
number_format()
10. To merge arrays
predefined variable
array
Magic Constant
array_merge()
11. To sort values of an array in reversed order
$_GET[]
rsort()
strip_tags()
array_merge()
12. Operators used to operate and assign
+= or -= or *= or /=
mysql_fetch_array()
decimal
Constant
13. The ouput of var_export((bool)"NULL");
crypt()
nl2br()
Notice
true
14. signed floating-point value
float
client-side programing
$$
preg_match()
15. _________ can be used in conditional statements to set precedence
index
decimal
Magic Constant
parentheses
16. This error refers to a variable with no value.
$_GET[]
preg_match()
urlencode()
Notice
17. An array of variables passed with <input /> data
ini_set ('display_errors', 1)
error_reporting (E_ALL & -E_NOTICE)
$_POST[]
empty()
18. bitwise AND
curly braces
defined()
GET
&
19. Search Engine Optimization
drop
htmlentities()
echo
SEO
20. searches the subject for matches to a given pattern replaced with the given replacement text
bin2hex()
preg_replace()
chr()
parentheses
21. The seven main error reporting constants are: E_NOTICE - E_WARNING - E_PARSE - E_ERROR - E_ALL - _____ - E_DEPRECATED
parentheses
E_STRICT
curly braces
SGML
22. Variable names cannot begin with _______
Parse error
numbers
sort()
$varname[key]
23. The name of the #! used to designate the location of the PHP binary
list()
Shebang
boolean
arsort()
24. To get over quotation marks while using arrays
curly braces
unset()
curly braces; ${$total}
boolean
25. Used to find the length of a string
integer
strlen()
server-side programing
$$
26. The array that stores variables specific to a user's visit
$_SESSION[]
^
str_word_count()
mysql_fetch_array()
27. A conditional or loop is a ________________.
variable
error_reporting (E_ALL | E_STRICT)
nl2br()
control structure
28. Define(NAME,value)
1
error_reporting (E_ALL & -E_NOTICE)
>>
Constant
29. To determine the amount of elements in an array
foreach loop
null
server-side programing
count()
30. a positive or negative number
the dollar sign $
Error
function
integer
31. To assign keys to the values in an array
int
array()
sql
the escape character ''
32. says 'if' this then do this 'else' do this or 'while' this do this
function
$array[] = item
not
statement
33. equivalence
substr_count()
==
Magic Constant
indexed array
34. The output of var_export((float)array(0));
E_STRICT
open source
1
integer
35. a database which is best supported by PHP
strlen()
trim()
ksort()
mysql
36. Use ________ to have multiple quotations in one string
floor()
the escape character ''
chr()
empty()
37. To iterate over the keys and values of an array
rand()
foreach loop
the period; .
$_SESSION[]
38. All variables must begin with _________.
mysql_fetch_array()
the dollar sign $
the period; .
drop
39. the most basic function in PHP used to output information to the page
E_STRICT
error_reporting (E_ALL & -E_NOTICE)
echo
DTD
40. This fatal fatal is caused by a semantic mistake: omission of a semicolon or imbalance of quotations or parentheses or braces.
Parse error
mysql_close($dbc)
octal
is_numeric()
41. EXtensible Markup Language
underscores
XML
echo
chop()
42. Online applications and resources which are available to the general public with very few restrictions
superglobal
===
open source
empty()
43. When used the value can be passed safely through the URL (GET).
HTML
urlencode()
float
chr()
44. a type with two possible values: true and false
decimal
string
boolean
parentheses
45. An array whose keys are numbers.
arsort()
indexed array
$_POST[]
foreach
46. The four main error types are:Notice - Warning - ________ and Error.
chr()
mysql_close($dbc)
client-side programing
Parse error
47. Function used to convert new lines in a variable from a form to <br /> tags so that the data can be formatted correctly.
Hex
WYSIWYG
nl2br()
shuffle()
48. Used to encrypt values - it is a one-way encryption method
crypt()
integer
for ($i = 0; $i < count($array); $i++) {statement(s);}
>>
49. $_SERVER - $_POST - $_GET - $_COOKIE - $_SESSION - $_ENV; special arrays.
superglobal
is_numeric()
define()
<<
50. TRUE or FALSE
GET
echo
error_reporting (E_ALL & -E_NOTICE)
boolean