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. says 'if' this then do this 'else' do this or 'while' this do this
strip_tags()
preg_split()
XML
statement
2. Control structures that break exit
predefined
for ($i = 0; $i < count($array); $i++) {statement(s);}
if/elseif/else and switch statements
POST
3. Used to replace a substring with another string - it is not case-sensitive.
statement
trim()
Warning
str_ireplace()
4. The output of var_export((float)array());
htmlentities()
0
reassign
server-side programing
5. TRUE or FALSE
html_entity_decode()
chr()
boolean
predefined
6. either hasn't yet been set or is assigned NULL value
null
^
error_reporting (0)
string
7. The four main error types are:Notice - Warning - ________ and Error.
general
Parse error
array
underscores
8. Use _______ for passwords or pages that would not be bookmarked or pages that require security.
$array[] = item
0
htmlentities()
POST
9. To counter htmlentities()
Shebang
GET
+= or -= or *= or /=
html_entity_decode()
10. $_POST and $_GET are ________ variables.
mysql_fetch_array()
parentheses
strlen()
predefined
11. To declare a constant
empty()
XOR
client-side programing
define()
12. Document Type Definitions
DTD
sort()
getrandmax()
rsort()
13. Shorthand used to increment and decrement
$var++ and $var
crypt()
boolean
drop
14. Used to convert certain HTML tags into their entity versions.
error_reporting (0)
mysql_fetch_array()
1
htmlspecialchars()
15. To find how many substrings are in a string
$array[] = item
substr_count()
rand()
include() and require()
16. To create an array
preg_match()
array()
Object
client-side programing
17. Search Engine Optimization
define()
<?php
$array[] = item
SEO
18. container of both data and code
E_STRICT
nl2br()
Object
fopen()
19. To sort the values while maintaining the correlation between each value and its key
define()
asort()
chop()
string
20. Hypertext Preprocessor - a server-side programing language used to create webpages
negative numbers
PHP
$array[] = item
getrandmax()
21. Similar to mysql_fetch_array() - but cannot be accessed by integer offset
predefined
XML
wordwrap()
mysql_fetch_object()
22. The seven main error reporting constants are: E_NOTICE - E_WARNING - E_PARSE - E_ERROR - E_ALL - _____ - E_DEPRECATED
bin2hex()
ksort()
<<
E_STRICT
23. collection of binary data
$varname[key]
$array[] = item
string
SGML
24. ___________ can be used with substr() to count backward
0
negative numbers
isset()
loops
25. EXtensible Markup Language
?>
unset()
XML
==
26. a storage location in the computer's memory that has a type & a name and a contents
variable
float
echo
addcslashes()
27. Uses two arguments: constant name and constant definition
<<
===
define()
error_reporting (E_ALL | E_STRICT)
28. All variables must begin with _________.
the dollar sign $
array()
array()
0
29. Used to find the length of a string
preg_replace()
strlen()
+
asort()
30. To close a connection between a database
asort()
curly braces; ${$total}
mysql_close($dbc)
integer
31. To iterate over the values of an array
string
decimal
for ($i = 0; $i < count($array); $i++) {statement(s);}
$_REQUEST
32. To get over quotation marks while using arrays
curly braces
predefined
fopen()
$$
33. Hyper Text Markup Language
HTML
strlen()
0
AJAX
34. a language in which to make querys to a database with
strtok()
sql
decimal
XML
35. To sort by the keys while maintaining the correlation between the key and its value
ksort()
POST
$array[] = item
statement
36. allows you to split strings based on more complex rules
switch
preg_split()
single quotes
echo
37. Asynchronous Javascript And XML
string
sql
AJAX
Error
38. To sort values of an array in reversed order
octal
rsort()
not
PHP
39. Converts a string of ASCII characters to hexadecimal values
list()
str_word_count()
bin2hex()
server-side programing
40. Function used to round down to the lowest integer
count()
floor()
round() Function
Parse error
41. standard notation
decimal
rsort()
error_reporting (E_ALL & -E_NOTICE)
open source
42. This will not show error reporting - it will be turned off.
error_reporting (0)
XOR
$var++ and $var
$_REQUEST
43. Returns a string with backslashes in front of predefined characters
underscores
the dollar sign $
addslashes()
Array
44. Variable names can begin with __________
decimal
precedence
array()
underscores
45. To determine the amount of elements in an array
open source
count()
list()
statement
46. To iterate over the keys and values of an array
preg_replace()
foreach loop
===
int
47. bitwise AND
&
substr_count()
error_reporting (E_ALL | E_STRICT)
Hex
48. To include files - _______ will give errors and _________ will terminate execution().
rand()
include() and require()
parentheses
negative numbers
49. print $_SERVER will _____ work if you use the print function on arrays.
octal
$_SESSION[]
not
the period; .
50. To reset an array _______ the array() function to the array
str_word_count()
reassign
Warning
the dollar sign $