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. container of ordered data elements
^
getrandmax()
Array
chop()
2. To get time data
date()
loops
htmlspecialchars()
array
3. To get over quotation marks while using arrays
underscores
date()
curly braces
1
4. The four main error types are:Notice - Warning - ________ and Error.
urlencode()
htmlspecialchars()
Parse error
&
5. bitwise AND
$_POST[]
AJAX
&
null
6. Used to convert all HTML tags into their entity versions.
?>
htmlentities()
bin2hex()
if/elseif/else and switch statements
7. Used to check if a variable has any value (including 0 or FALSE or an empty string).
Array
$_POST[]
isset()
not
8. Online applications and resources which are available to the general public with very few restrictions
open source
boolean
array()
XML
9. TRUE or FALSE
the dollar sign $
<<
boolean
Notice
10. All variables must begin with _________.
$$
bin2hex()
the dollar sign $
HTTP
11. any programing language where the script is parsed on the server
for ($i = 0; $i < count($array); $i++) {statement(s);}
preg_replace()
mysql_fetch_array()
server-side programing
12. To delete a variable or an element of an array
unset()
.=
array
predefined
13. $_SERVER is a ________ variable.
Array
ceil()
predefined
preg_match()
14. bitwise right shift
curly braces; ${$total}
$$
mysql_fetch_array()
>>
15. Asynchronous Javascript And XML
Warning
AJAX
mysql_fetch_array()
error_reporting (E_ALL | E_STRICT)
16. What You See Is What You Get
WYSIWYG
Notice
strlen()
===
17. To refer to an element in a multidimensional array list the indices in order of _____ to more precise;
empty()
general
Array
array
18. Hypertext Preprocessor - a server-side programing language used to create webpages
defined()
preg_replace()
mysql
PHP
19. A conditional or loop is a ________________.
preg_replace()
str_ireplace()
array()
control structure
20. An array of variables passed in the URL
predefined
$_GET[]
defined()
switch
21. a line of information that can be stored in a variable or used in a function or statement
addcslashes()
string
html_entity_decode()
$varname[key]
22. leading zero: 0100 or 0567
SEO
echo
$$
octal
23. equivalence
+= or -= or *= or /=
preg_match()
==
octal
24. This fatal error arises from memory allocation problem.
addcslashes()
Error
the escape character ''
substr_count()
25. To remove all HTML and PHP tags.
strip_tags()
POST
fopen()
array_merge()
26. Returns an array that corresponds to the fetched row of MySQL data and moves the internal data pointer ahead
crypt()
function error_reporting()
mysql_fetch_array()
abs()
27. The syntax for connecting to a database
parentheses
$dbc = mysql_connect(hostname, username, password)
control structure
SGML
28. Used to display errors in a particular script - should be placed at top of script.
29. returns the number of matches found by a given search string under this format...
decimal
sort()
addslashes()
preg_match()
30. Operators used to operate and assign
reassign
+= or -= or *= or /=
error_reporting (E_ALL | E_STRICT)
abs()
31. To include files - _______ will give errors and _________ will terminate execution().
preg_replace()
Array
array_merge()
include() and require()
32. signed floating-point value
addcslashes()
float
client-side programing
fopen()
33. Variable names can begin with __________
?>
empty()
urlencode()
underscores
34. Function used to round down to the lowest integer
<<
curly braces; ${$total}
floor()
function
35. either hasn't yet been set or is assigned NULL value
unset()
rsort()
null
nl2br()
36. Control structures that break exit
if/elseif/else and switch statements
!= inequality
superglobal
number_format()
37. Besides GET and POST ________ can be used to access data but $_POST and $_GET are more precise and therefore preferable.
client-side programing
error_reporting (0)
$_REQUEST
define()
38. This fatal fatal is caused by a semantic mistake: omission of a semicolon or imbalance of quotations or parentheses or braces.
Parse error
control structure
nl2br()
Array
39. Standard Generalized Markup Language
curly braces; ${$total}
chop()
^
SGML
40. Hyper Text Transfer Protocol
array
HTTP
nl2br()
Parse error
41. To word wrap after a certain amount of characters.
client-side programing
wordwrap()
isset()
true
42. The name of the #! used to designate the location of the PHP binary
defined()
string
Shebang
XOR
43. The prefix for a dynamic variable - also known as a variable variable
$$
underscores
reassign
list()
44. 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}
sort()
predefined
45. any programing language where the user must support the language the script is written in
error_reporting (0)
client-side programing
date()
general
46. PHP has two conditional: if and ______.
switch
0
<<
open source
47. Returns a string with backslashes in front of predefined characters
foreach loop
superglobal
addslashes()
WYSIWYG
48. collection of binary data
!= inequality
==
ASP
string
49. Define(NAME,value)
$$
Constant
string
defined()
50. a type with two possible values: true and false
boolean
is_numeric()
defined()
string