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. a storage location in the computer's memory that has a type & a name and a contents
is_numeric()
variable
the escape character ''
curly braces
2. collection of binary data
client-side programing
&
string
drop
3. Used to remove any white space - spaces or newlines or tabs - from the beginning and end of a string - not the middle.
echo
$$
foreach
trim()
4. Standard Generalized Markup Language
chr()
general
XOR
SGML
5. Used to convert all HTML tags into their entity versions.
htmlentities()
foreach
$dbc = mysql_connect(hostname, username, password)
general
6. To set up error reporting
shuffle()
function error_reporting()
$_POST[]
preg_replace()
7. Used to check if a variable has a valid numerical value; strings with numerical values pass.
ini_set ('display_errors', 1)
fopen()
is_numeric()
str_word_count()
8. Hyper Text Transfer Protocol
HTTP
error_reporting (0)
floor()
&
9. 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 __________.
statement
curly braces; ${$total}
isset()
number_format()
10. Online applications and resources which are available to the general public with very few restrictions
unset()
if/elseif/else and switch statements
Notice
open source
11. _________ can be used in conditional statements to set precedence
switch
the dollar sign $
parentheses
GET
12. Control structure that continue exit - they perform specific statements for a determined number of iterations.
control structure
ksort()
html_entity_decode()
loops
13. To assign array element values to individual variables
list()
echo
$varname[key]
Hex
14. Similar to mysql_fetch_array() - but cannot be accessed by integer offset
echo
ceil()
mysql_fetch_object()
ini_set ('display_errors', 1)
15. Define(NAME,value)
the period; .
&
Constant
foreach
16. does a certain action when called upon
variable
Array
function
^
17. The syntax for connecting to a database
fopen()
integer
$dbc = mysql_connect(hostname, username, password)
preg_match()
18. PHP has two conditional: if and ______.
$array[] = item
.=
array()
switch
19. Function can you use to format a number with commas
SEO
number_format()
array()
reassign
20. a type with two possible values: true and false
abs()
boolean
unset()
>>
21. The output of var_export((float)array());
predefined
trim()
error_reporting (E_ALL | E_STRICT)
0
22. This error arises from misusing a function.
function error_reporting()
Warning
ceil()
E_STRICT
23. To refer to an element in a multidimensional array list the indices in order of _____ to more precise;
general
chr()
number_format()
date()
24. the most basic function in PHP used to output information to the page
function
floor()
echo
<<
25. Search Engine Optimization
define()
mysql_fetch_array()
SEO
nl2br()
26. Used to find the length of a string
switch
substr_count()
boolean
strlen()
27. The order of operations.
precedence
general
$dbc = mysql_connect(hostname, username, password)
array()
28. This fatal fatal is caused by a semantic mistake: omission of a semicolon or imbalance of quotations or parentheses or braces.
Parse error
statement
the dollar sign $
html_entity_decode()
29. This error refers to a variable with no value.
Notice
unset()
open source
mysql_fetch_array()
30. The seven main error reporting constants are: E_NOTICE - E_WARNING - E_PARSE - E_ERROR - E_ALL - _____ - E_DEPRECATED
if/elseif/else and switch statements
E_STRICT
htmlentities()
index
31. To sort values of an array in reversed order
rsort()
switch
defined()
addslashes()
32. Used to replace a substring with another string - it is not case-sensitive.
server-side programing
floor()
decimal
str_ireplace()
33. any programing language where the user must support the language the script is written in
WYSIWYG
client-side programing
error_reporting (0)
null
34. Alias of rtrim()
chop()
htmlentities()
empty()
sql
35. To refer to an item in an array
double quotes
$varname[key]
?>
html_entity_decode()
36. Used to encrypt values - it is a one-way encryption method
parentheses
crypt()
not
preg_split()
37. A data structure that can hold a number of items of data of the same type eg. a list of names
htmlentities()
array
the escape character ''
wordwrap()
38. Used to create a substring (referred to as a token) from a larger string
strtok()
empty()
SEO
Magic Constant
39. When used the value can be passed safely through the URL (GET).
sql
chr()
$_POST[]
urlencode()
40. EXtensible Markup Language
function error_reporting()
indexed array
drop
XML
41. The ouput of var_export((bool)"NULL");
SEO
true
unset()
DTD
42. Hyper Text Markup Language
1
chop()
HTML
include() and require()
43. An array whose keys are numbers.
indexed array
XML
echo
octal
44. a language in which to make querys to a database with
mysql
SGML
rand()
sql
45. Operators used to operate and assign
Error
client-side programing
+= or -= or *= or /=
string
46. Use ______ for search engines or catalogued pages or pages that would be bookmarked.
GET
superglobal
mysql_fetch_array()
^
47. Returns a string with backslashes in front of predefined characters
addslashes()
general
Array
boolean
48. To reorganise the array randomly
shuffle()
error_reporting (E_ALL)
sort()
str_word_count()
49. All variables must begin with _________.
isset()
Constant
the dollar sign $
Notice
50. This fatal error arises from memory allocation problem.
round() Function
the escape character ''
Error
ksort()