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. Use ______ when there are no variables in the string
Array
mysql_close($dbc)
integer
single quotes
2. To word wrap after a certain amount of characters.
E_STRICT
DTD
bin2hex()
wordwrap()
3. Active Server Pages
str_ireplace()
ksort()
ASP
ini_set ('display_errors', 1)
4. Returns a character from a specified ASCII value
fopen()
sort()
chr()
predefined
5. leading zero: 0100 or 0567
statement
octal
error_reporting (E_ALL)
isset()
6. function Function used to create a random number
rand()
fopen()
predefined
!= inequality
7. bitwise XOR
error_reporting (E_ALL & -E_NOTICE)
^
Array
POST
8. To find how many substrings are in a string
substr_count()
predefined variable
mysql_close($dbc)
float
9. Used to replace a substring with another string - it is not case-sensitive.
Array
str_ireplace()
preg_replace()
$$
10. ___________ can be used with substr() to count backward
PHP
$array[] = item
loops
negative numbers
11. container of ordered data elements
for ($i = 0; $i < count($array); $i++) {statement(s);}
Array
strlen()
ASP
12. Use ______ when a variable contains any amount of variables; in general.
number_format()
error_reporting (0)
double quotes
str_ireplace()
13. any programing language where the script is parsed on the server
control structure
server-side programing
preg_match()
bin2hex()
14. The syntax for connecting to a database
^
control structure
index
$dbc = mysql_connect(hostname, username, password)
15. To reset an array _______ the array() function to the array
reassign
associative array
echo
statement
16. This error refers to a variable with no value.
Notice
curly braces
round() Function
predefined
17. Similar to mysql_fetch_array() - but cannot be accessed by integer offset
Parse error
mysql_fetch_object()
ASP
round() Function
18. To sort the values while maintaining the correlation between each value and its key - in reversed order
arsort()
Notice
null
==
19. To remove all HTML and PHP tags.
control structure
Object
strip_tags()
function
20. Asynchronous Javascript And XML
echo
integer
AJAX
$_POST[]
21. a storage location in the computer's memory that has a type & a name and a contents
variable
null
underscores
$array[] = item
22. The concatenation assignment operator?
$varname[key]
ksort()
.=
abs()
23. Function used to round down to the lowest integer
WYSIWYG
count()
floor()
curly braces
24. TRUE or FALSE
$_SESSION[]
boolean
echo
reassign
25. The seven main SQL (structured query language) functions are alter - create - delete - _______ - insert - select - update
include() and require()
drop
ksort()
Notice
26. signed floating-point value
predefined
$_POST[]
define()
float
27. Variable names cannot begin with _______
error_reporting (E_ALL)
numbers
addcslashes()
Constant
28. Used to convert certain HTML tags into their entity versions.
predefined variable
client-side programing
htmlspecialchars()
rsort()
29. Tag to end a php script
$_SESSION[]
GET
Hex
?>
30. any programing language where the user must support the language the script is written in
strlen()
mysql_fetch_object()
client-side programing
HTML
31. To determine the amount of elements in an array
predefined variable
count()
$array[] = item
chr()
32. Used to find the amount of words in a string.
$$
empty()
str_word_count()
loops
33. Operators used to operate and assign
index
preg_match()
+= or -= or *= or /=
number_format()
34. To assign keys to the values in an array
integer
mysql_fetch_array()
rand()
array()
35. To set up error reporting
$array[] = item
function error_reporting()
mysql_fetch_array()
open source
36. equivalence
==
ceil()
foreach
preg_split()
37. bitwise left shift
<<
ASP
bin2hex()
include() and require()
38. To refer to an element in a multidimensional array list the indices in order of _____ to more precise;
general
superglobal
ceil()
mysql
39. a line of information that can be stored in a variable or used in a function or statement
underscores
bin2hex()
string
str_ireplace()
40. Predefined constants such as __LINE__ or __FILE__ or __FUNCTION__ or __CLASS__ and __METHOD__
Magic Constant
Error
AJAX
GET
41. 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
42. The seven main error reporting constants are: E_NOTICE - E_WARNING - E_PARSE - E_ERROR - E_ALL - _____ - E_DEPRECATED
E_STRICT
==
if/elseif/else and switch statements
error_reporting (E_ALL & -E_NOTICE)
43. An array whose keys are strings; also known as a hash.
associative array
PHP
$_GET[]
double quotes
44. _____ is a logical operator
<<
XOR
crypt()
single quotes
45. Use _______ for passwords or pages that would not be bookmarked or pages that require security.
Shebang
htmlspecialchars()
POST
preg_replace()
46. Used to find the length of a string
curly braces; ${$total}
strlen()
XOR
define()
47. A conditional or loop is a ________________.
control structure
+
.=
general
48. Shorthand used to increment and decrement
addcslashes()
ceil()
>>
$var++ and $var
49. PHP has two conditional: if and ______.
switch
?>
array()
list()
50. _______ is a comparison operator
POST
is_numeric()
!= inequality
error_reporting (E_ALL | E_STRICT)