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. An array whose keys are strings; also known as a hash.
XOR
define()
Warning
associative array
2. any programing language where the script is parsed on the server
for ($i = 0; $i < count($array); $i++) {statement(s);}
0
server-side programing
str_ireplace()
3. The syntax for connecting to a database
associative array
$$
html_entity_decode()
$dbc = mysql_connect(hostname, username, password)
4. bitwise XOR
^
$varname[key]
floor()
addcslashes()
5. The prefix for a dynamic variable - also known as a variable variable
$$
unset()
client-side programing
error_reporting (0)
6. a storage location in the computer's memory that has a type & a name and a contents
floor()
variable
function
drop
7. Hypertext Preprocessor - a server-side programing language used to create webpages
unset()
PHP
ASP
curly braces; ${$total}
8. Returns a string with backslashes in front of predefined characters
index
addslashes()
abs()
variable
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 __________.
curly braces; ${$total}
error_reporting (E_ALL)
getrandmax()
ASP
10. TRUE or FALSE
Array
drop
if/elseif/else and switch statements
boolean
11. Active Server Pages
the escape character ''
isset()
ASP
for ($i = 0; $i < count($array); $i++) {statement(s);}
12. To delete a variable or an element of an array
str_ireplace()
unset()
+= or -= or *= or /=
crypt()
13. Function used to round down to the lowest integer
chop()
floor()
mysql_close($dbc)
true
14. The output of var_export((float)array(0));
1
mysql_close($dbc)
Warning
bin2hex()
15. To sort the values while maintaining the correlation between each value and its key
WYSIWYG
Constant
asort()
array
16. The concatenation operator?
the period; .
>>
0
HTTP
17. To sort the values while maintaining the correlation between each value and its key - in reversed order
array
error_reporting (E_ALL | E_STRICT)
XOR
arsort()
18. To get time data
PHP
the escape character ''
chr()
date()
19. Control structure that continue exit - they perform specific statements for a determined number of iterations.
preg_match()
$_GET[]
loops
control structure
20. returns the number of matches found by a given search string under this format...
underscores
$$
shuffle()
preg_match()
21. Use ________ to have multiple quotations in one string
integer
arsort()
$dbc = mysql_connect(hostname, username, password)
the escape character ''
22. An array of variables passed in the URL
addslashes()
substr_count()
wordwrap()
$_GET[]
23. bitwise left shift
fopen()
octal
<<
&
24. Used to remove any white space - spaces or newlines or tabs - from the beginning and end of a string - not the middle.
preg_replace()
trim()
array_merge()
precedence
25. To iterate over the keys and values of an array
define()
0
urlencode()
foreach loop
26. Tag to begin a php script
<?php
double quotes
reassign
1
27. a database which is best supported by PHP
fopen()
echo
list()
mysql
28. collection of binary data
string
switch
predefined
preg_split()
29. A conditional or loop is a ________________.
the period; .
client-side programing
true
control structure
30. Used to find the length of a string
WYSIWYG
crypt()
strlen()
index
31. Used to check if a variable has a valid numerical value; strings with numerical values pass.
wordwrap()
getrandmax()
AJAX
is_numeric()
32. Returns a string with backslashes in front of the specified characters
addcslashes()
single quotes
number_format()
is_numeric()
33. This will show all error reporting.
error_reporting (E_ALL)
!= inequality
decimal
defined()
34. a line of information that can be stored in a variable or used in a function or statement
predefined
string
variable
preg_replace()
35. This will not show error reporting - it will be turned off.
chr()
Parse error
error_reporting (0)
Array
36. Function used to find the absolute value of a number or numeric variable
substr_count()
indexed array
abs()
decimal
37. Use ______ when a variable contains any amount of variables; in general.
double quotes
not
include() and require()
WYSIWYG
38. A data structure that can hold a number of items of data of the same type eg. a list of names
floor()
include() and require()
$_POST[]
array
39. To set up error reporting
DTD
function error_reporting()
$$
negative numbers
40. 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.
round() Function
error_reporting (E_ALL | E_STRICT)
statement
boolean
41. Hyper Text Transfer Protocol
ksort()
HTTP
numbers
round() Function
42. $_SERVER is a ________ variable.
predefined
function error_reporting()
error_reporting (E_ALL | E_STRICT)
PHP
43. identity
shuffle()
defined()
===
if/elseif/else and switch statements
44. The seven main SQL (structured query language) functions are alter - create - delete - _______ - insert - select - update
$array[] = item
drop
preg_split()
$_REQUEST
45. Used to display errors in a particular script - should be placed at top of script.
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
46. To sort by the keys while maintaining the correlation between the key and its value
+= or -= or *= or /=
Warning
E_STRICT
ksort()
47. Asynchronous Javascript And XML
AJAX
str_ireplace()
str_word_count()
trim()
48. The array that stores variables specific to a user's visit
$_SESSION[]
strlen()
boolean
htmlspecialchars()
49. Document Type Definitions
preg_replace()
DTD
Array
Object
50. The ouput of var_export((bool)"NULL");
==
true
strip_tags()
HTML