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
Array
?>
error_reporting (E_ALL)
indexed array
2. Predefined constants such as __LINE__ or __FILE__ or __FUNCTION__ or __CLASS__ and __METHOD__
if/elseif/else and switch statements
addslashes()
strip_tags()
Magic Constant
3. To sort by the keys while maintaining the correlation between the key and its value
Magic Constant
Error
curly braces; ${$total}
ksort()
4. a storage location in the computer's memory that has a type & a name and a contents
E_STRICT
int
$_GET[]
variable
5. A conditional or loop is a ________________.
index
.=
decimal
control structure
6. addition
null
Error
boolean
+
7. When used the value can be passed safely through the URL (GET).
mysql_fetch_object()
curly braces
urlencode()
function error_reporting()
8. returns the number of matches found by a given search string under this format...
parentheses
abs()
preg_match()
chop()
9. Returns a string with backslashes in front of predefined characters
addslashes()
date()
asort()
statement
10. Variable names can begin with __________
underscores
defined()
substr_count()
associative array
11. identity
Constant
ASP
error_reporting (E_ALL & -E_NOTICE)
===
12. any programing language where the script is parsed on the server
server-side programing
isset()
getrandmax()
octal
13. Function used to round up to the highest integer
string
list()
strtok()
ceil()
14. The array that stores variables specific to a user's visit
HTML
$_SESSION[]
ksort()
addslashes()
15. To sort values of an array in reversed order
ASP
curly braces
numbers
rsort()
16. Operators used to operate and assign
Parse error
preg_split()
+= or -= or *= or /=
shuffle()
17. Used to display errors in a particular script - should be placed at top of script.
18. To get over quotation marks while using arrays
curly braces
===
if/elseif/else and switch statements
index
19. Used to replace a substring with another string - it is not case-sensitive.
rand()
define()
string
str_ireplace()
20. An array of variables passed with <input /> data
statement
$_POST[]
sort()
empty()
21. To remove all HTML and PHP tags.
wordwrap()
null
trim()
strip_tags()
22. 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 __________.
$var++ and $var
trim()
empty()
curly braces; ${$total}
23. This will show all error reporting.
XOR
error_reporting (E_ALL)
sql
Shebang
24. does a certain action when called upon
abs()
function
Error
client-side programing
25. Uses two arguments: constant name and constant definition
control structure
define()
decimal
E_STRICT
26. Function can you use to format a number with commas
number_format()
crypt()
define()
foreach loop
27. To sort the values while maintaining the correlation between each value and its key - in reversed order
htmlspecialchars()
the escape character ''
arsort()
fopen()
28. The seven main error reporting constants are: E_NOTICE - E_WARNING - E_PARSE - E_ERROR - E_ALL - _____ - E_DEPRECATED
string
server-side programing
E_STRICT
array()
29. ____ or key is referred to for a value within an array.
str_word_count()
preg_replace()
index
==
30. Define(NAME,value)
Constant
strip_tags()
$dbc = mysql_connect(hostname, username, password)
Parse error
31. Asynchronous Javascript And XML
array_merge()
AJAX
1
$_POST[]
32. To declare a constant
ASP
$_POST[]
if/elseif/else and switch statements
define()
33. To determine the amount of elements in an array
count()
crypt()
urlencode()
switch
34. $_SERVER is a ________ variable.
float
shuffle()
1
predefined
35. To refer to an element in a multidimensional array list the indices in order of _____ to more precise;
general
$_SESSION[]
ksort()
error_reporting (E_ALL)
36. Hypertext Preprocessor - a server-side programing language used to create webpages
^
superglobal
trim()
PHP
37. Hyper Text Transfer Protocol
count()
bin2hex()
HTTP
function
38. The concatenation operator?
the period; .
SGML
rsort()
HTML
39. EXtensible Markup Language
XML
+
Array
abs()
40. Used to find the length of a string
strlen()
getrandmax()
is_numeric()
+= or -= or *= or /=
41. To word wrap after a certain amount of characters.
octal
open source
wordwrap()
sort()
42. Besides GET and POST ________ can be used to access data but $_POST and $_GET are more precise and therefore preferable.
getrandmax()
$_REQUEST
Hex
1
43. Hyper Text Markup Language
HTML
array
curly braces
float
44. ___________ can be used with substr() to count backward
urlencode()
define()
Shebang
negative numbers
45. The four main error types are:Notice - Warning - ________ and Error.
sort()
strlen()
Parse error
ini_set ('display_errors', 1)
46. function Function used to create a random number
for ($i = 0; $i < count($array); $i++) {statement(s);}
predefined
rand()
number_format()
47. An array whose keys are numbers.
not
nl2br()
boolean
indexed array
48. bitwise AND
array
define()
mysql_fetch_object()
&
49. This fatal fatal is caused by a semantic mistake: omission of a semicolon or imbalance of quotations or parentheses or braces.
echo
error_reporting (E_ALL & -E_NOTICE)
Parse error
isset()
50. searches the subject for matches to a given pattern replaced with the given replacement text
the escape character ''
rand()
preg_replace()
rsort()