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 user must support the language the script is written in
client-side programing
HTTP
trim()
fopen()
2. returns the number of matches found by a given search string under this format...
preg_match()
foreach
drop
Parse error
3. To include files - _______ will give errors and _________ will terminate execution().
unset()
predefined
Constant
include() and require()
4. The concatenation assignment operator?
list()
underscores
.=
XML
5. Variable names can begin with __________
underscores
<<
arsort()
predefined
6. Used to create a substring (referred to as a token) from a larger string
indexed array
strtok()
function error_reporting()
Object
7. To refer to an element in a multidimensional array list the indices in order of _____ to more precise;
general
statement
mysql_fetch_array()
echo
8. The syntax for connecting to a database
curly braces
Parse error
$dbc = mysql_connect(hostname, username, password)
.=
9. This will show all error reporting except for notice errors.
<?php
$$
error_reporting (E_ALL & -E_NOTICE)
&
10. The output of var_export((float)array(0));
fopen()
1
isset()
error_reporting (E_ALL & -E_NOTICE)
11. Returns a string with backslashes in front of predefined characters
addslashes()
string
str_word_count()
addcslashes()
12. allows you to split strings based on more complex rules
preg_split()
mysql_close($dbc)
double quotes
html_entity_decode()
13. Asynchronous Javascript And XML
arsort()
is_numeric()
AJAX
include() and require()
14. any programing language where the script is parsed on the server
server-side programing
GET
Array
drop
15. To reorganise the array randomly
ksort()
shuffle()
0
foreach loop
16. bitwise right shift
isset()
shuffle()
>>
preg_split()
17. Active Server Pages
boolean
preg_replace()
ASP
+= or -= or *= or /=
18. _______ is a comparison operator
!= inequality
function error_reporting()
string
date()
19. Online applications and resources which are available to the general public with very few restrictions
array()
chop()
$_SESSION[]
open source
20. PHP has two conditional: if and ______.
function error_reporting()
switch
Notice
htmlspecialchars()
21. EXtensible Markup Language
number_format()
sql
XML
index
22. the most basic function in PHP used to output information to the page
decimal
abs()
$_POST[]
echo
23. To counter htmlentities()
<?php
html_entity_decode()
getrandmax()
string
24. To sort values of an array in reversed order
AJAX
general
rsort()
Object
25. Search Engine Optimization
str_ireplace()
double quotes
SEO
the period; .
26. Function used to round up to the highest integer
rsort()
asort()
ceil()
mysql_fetch_object()
27. To iterate over the values of an array
>>
ASP
for ($i = 0; $i < count($array); $i++) {statement(s);}
SGML
28. A data structure that can hold a number of items of data of the same type eg. a list of names
?>
$var++ and $var
array
+
29. Use _______ for passwords or pages that would not be bookmarked or pages that require security.
WYSIWYG
POST
.=
$varname[key]
30. Predefined constants such as __LINE__ or __FILE__ or __FUNCTION__ or __CLASS__ and __METHOD__
strlen()
Magic Constant
PHP
bin2hex()
31. bitwise AND
abs()
&
empty()
E_STRICT
32. collection of binary data
WYSIWYG
<?php
octal
string
33. Besides GET and POST ________ can be used to access data but $_POST and $_GET are more precise and therefore preferable.
XML
$_REQUEST
drop
AJAX
34. Hyper Text Markup Language
negative numbers
error_reporting (0)
foreach
HTML
35. To get time data
str_ireplace()
date()
WYSIWYG
function
36. Used to remove any white space - spaces or newlines or tabs - from the beginning and end of a string - not the middle.
AJAX
trim()
define()
+= or -= or *= or /=
37. The array that stores variables specific to a user's visit
0
not
general
$_SESSION[]
38. The three types of loops in PHP are: for - while - ____.
foreach
bin2hex()
superglobal
foreach loop
39. To sort values of an array without regard to the keys
Parse error
mysql
sort()
the escape character ''
40. a positive or negative number
integer
Magic Constant
array_merge()
&
41. The prefix for a dynamic variable - also known as a variable variable
indexed array
getrandmax()
$$
string
42. To delete a variable or an element of an array
unset()
nl2br()
the period; .
not
43. The seven main error reporting constants are: E_NOTICE - E_WARNING - E_PARSE - E_ERROR - E_ALL - _____ - E_DEPRECATED
==
str_ireplace()
SGML
E_STRICT
44. This will show all errors that fall under E_ALL or E_STRICT - the pipe | is used for 'or' so that errors that fall under either will be shown.
int
$var++ and $var
array_merge()
error_reporting (E_ALL | E_STRICT)
45. identity
precedence
parentheses
===
define()
46. This will show all error reporting.
statement
error_reporting (E_ALL)
str_ireplace()
curly braces; ${$total}
47. To determine the amount of elements in an array
Constant
negative numbers
count()
Magic Constant
48. equivalence
DTD
XOR
$varname[key]
==
49. To get over quotation marks while using arrays
defined()
wordwrap()
rsort()
curly braces
50. Tag to end a php script
DTD
?>
htmlspecialchars()
preg_split()