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. Used to check if a variable has any value (including 0 or FALSE or an empty string).
XML
+= or -= or *= or /=
server-side programing
isset()
2. Standard Generalized Markup Language
POST
the period; .
DTD
SGML
3. Returns a string with backslashes in front of predefined characters
preg_match()
E_STRICT
0
addslashes()
4. Control structures that break exit
date()
if/elseif/else and switch statements
general
array_merge()
5. Tag to end a php script
XML
sql
?>
ksort()
6. What You See Is What You Get
rand()
WYSIWYG
drop
the dollar sign $
7. Use ________ to have multiple quotations in one string
preg_replace()
if/elseif/else and switch statements
the escape character ''
XML
8. To sort by the keys while maintaining the correlation between the key and its value
error_reporting (E_ALL & -E_NOTICE)
ksort()
array()
sort()
9. TRUE or FALSE
boolean
number_format()
==
defined()
10. Hypertext Preprocessor - a server-side programing language used to create webpages
<<
PHP
Hex
fopen()
11. The name of the #! used to designate the location of the PHP binary
fopen()
predefined
Shebang
octal
12. The syntax for connecting to a database
mysql_close($dbc)
$dbc = mysql_connect(hostname, username, password)
SEO
predefined
13. Similar to mysql_fetch_array() - but cannot be accessed by integer offset
mysql_fetch_object()
str_ireplace()
decimal
==
14. container of both data and code
XOR
associative array
Object
1
15. To sort values of an array in reversed order
rsort()
$array[] = item
integer
crypt()
16. Online applications and resources which are available to the general public with very few restrictions
open source
ini_set ('display_errors', 1)
include() and require()
>>
17. returns the number of matches found by a given search string under this format...
true
boolean
preg_match()
sql
18. Used to replace a substring with another string - it is not case-sensitive.
isset()
nl2br()
predefined
str_ireplace()
19. A data structure that can hold a number of items of data of the same type eg. a list of names
numbers
&
$_GET[]
array
20. signed floating-point value
XOR
not
float
general
21. To refer to an element in a multidimensional array list the indices in order of _____ to more precise;
wordwrap()
Magic Constant
general
XML
22. Search Engine Optimization
SGML
define()
$var++ and $var
SEO
23. ___________ can be used with substr() to count backward
fopen()
define()
Array
negative numbers
24. Use ______ for search engines or catalogued pages or pages that would be bookmarked.
GET
ksort()
arsort()
is_numeric()
25. Function used to convert new lines in a variable from a form to <br /> tags so that the data can be formatted correctly.
nl2br()
^
Parse error
not
26. Define(NAME,value)
isset()
Constant
string
strip_tags()
27. Function can you use to format a number with commas
preg_match()
str_ireplace()
0
number_format()
28. bitwise left shift
<<
preg_match()
predefined
$varname[key]
29. a type with two possible values: true and false
boolean
abs()
fopen()
XML
30. Variable names can begin with __________
underscores
^
server-side programing
string
31. The concatenation assignment operator?
bin2hex()
switch
.=
error_reporting (0)
32. a database which is best supported by PHP
predefined
chop()
function error_reporting()
mysql
33. PHP has two conditional: if and ______.
precedence
switch
int
preg_split()
34. An array of variables passed in the URL
$_GET[]
error_reporting (E_ALL)
array()
array_merge()
35. any programing language where the script is parsed on the server
boolean
^
&
server-side programing
36. Function used to round down to the lowest integer
htmlspecialchars()
floor()
DTD
not
37. _____ is a logical operator
XOR
octal
$dbc = mysql_connect(hostname, username, password)
substr_count()
38. Used to check if a variable has a valid numerical value; strings with numerical values pass.
is_numeric()
str_word_count()
Notice
floor()
39. Operators used to operate and assign
foreach
+= or -= or *= or /=
.=
defined()
40. The concatenation operator?
the period; .
nl2br()
reassign
negative numbers
41. signed integer
curly braces
$$
int
Notice
42. Used to convert certain HTML tags into their entity versions.
boolean
isset()
htmlspecialchars()
float
43. Function that contains the highest value that rand() can have randomly
getrandmax()
!= inequality
Magic Constant
mysql
44. Variable names cannot begin with _______
decimal
Parse error
ceil()
numbers
45. used to round numeric values.
error_reporting (E_ALL)
sort()
===
round() Function
46. $_POST and $_GET are ________ variables.
loops
predefined
$_POST[]
float
47. container of ordered data elements
Array
server-side programing
preg_match()
string
48. standard notation
decimal
strlen()
array()
POST
49. To assign array element values to individual variables
POST
list()
fopen()
html_entity_decode()
50. To sort values of an array without regard to the keys
sort()
variable
SEO
>>