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. a type with two possible values: true and false
boolean
$_REQUEST
ASP
arsort()
2. Used to check if a given variable has an "empty" value - no value or 0 or FALSE.
true
E_STRICT
mysql
empty()
3. leading zero: 0100 or 0567
octal
negative numbers
boolean
$_GET[]
4. This fatal error arises from memory allocation problem.
$_POST[]
SGML
$_SESSION[]
Error
5. returns the number of matches found by a given search string under this format...
!= inequality
preg_match()
$_GET[]
==
6. Used to check if a variable has a valid numerical value; strings with numerical values pass.
rsort()
is_numeric()
strlen()
defined()
7. EXtensible Markup Language
floor()
mysql_fetch_object()
variable
XML
8. To sort the values while maintaining the correlation between each value and its key - in reversed order
function error_reporting()
arsort()
preg_match()
ini_set ('display_errors', 1)
9. To iterate over the keys and values of an array
foreach loop
shuffle()
ini_set ('display_errors', 1)
+= or -= or *= or /=
10. Use ______ when there are no variables in the string
single quotes
open source
WYSIWYG
statement
11. Standard Generalized Markup Language
XOR
Magic Constant
SGML
.=
12. Creates a pointer to a file with the declared mode (read - write -etc.).
fopen()
WYSIWYG
client-side programing
negative numbers
13. Use _______ for passwords or pages that would not be bookmarked or pages that require security.
drop
urlencode()
POST
defined()
14. $_SERVER is a ________ variable.
predefined
0
Object
urlencode()
15. To merge arrays
array()
function error_reporting()
defined()
array_merge()
16. To refer to an item in an array
>>
$varname[key]
echo
$dbc = mysql_connect(hostname, username, password)
17. identity
===
E_STRICT
list()
array()
18. print $_SERVER will _____ work if you use the print function on arrays.
not
getrandmax()
error_reporting (0)
str_ireplace()
19. This will show all error reporting except for notice errors.
mysql_fetch_array()
Warning
error_reporting (E_ALL & -E_NOTICE)
index
20. PHP has two conditional: if and ______.
str_ireplace()
Warning
server-side programing
switch
21. To determine the amount of elements in an array
float
$varname[key]
count()
&
22. To create an array
mysql_fetch_object()
array()
shuffle()
associative array
23. allows you to split strings based on more complex rules
HTML
^
fopen()
preg_split()
24. ___________ can be used with substr() to count backward
strip_tags()
negative numbers
$var++ and $var
loops
25. Function can you use to format a number with commas
string
define()
number_format()
decimal
26. To assign array element values to individual variables
preg_split()
function error_reporting()
list()
htmlentities()
27. Function that contains the highest value that rand() can have randomly
getrandmax()
Parse error
int
null
28. The four main error types are:Notice - Warning - ________ and Error.
string
Parse error
strtok()
string
29. a line of information that can be stored in a variable or used in a function or statement
rsort()
string
&
crypt()
30. To counter htmlentities()
html_entity_decode()
sort()
rand()
curly braces
31. used to round numeric values.
round() Function
error_reporting (0)
mysql
ceil()
32. To include files - _______ will give errors and _________ will terminate execution().
function error_reporting()
include() and require()
bin2hex()
define()
33. This will not show error reporting - it will be turned off.
1
error_reporting (0)
htmlspecialchars()
preg_split()
34. signed floating-point value
float
server-side programing
is_numeric()
Array
35. Control structure that continue exit - they perform specific statements for a determined number of iterations.
loops
Shebang
GET
ASP
36. Tag to end a php script
>>
is_numeric()
?>
preg_replace()
37. says 'if' this then do this 'else' do this or 'while' this do this
mysql
>>
the escape character ''
statement
38. Function used to convert new lines in a variable from a form to <br /> tags so that the data can be formatted correctly.
htmlspecialchars()
+
nl2br()
error_reporting (E_ALL)
39. The seven main error reporting constants are: E_NOTICE - E_WARNING - E_PARSE - E_ERROR - E_ALL - _____ - E_DEPRECATED
variable
count()
E_STRICT
predefined
40. Function used to round up to the highest integer
ceil()
$_POST[]
Magic Constant
wordwrap()
41. Variable names cannot begin with _______
the period; .
numbers
date()
include() and require()
42. $_POST Data sent using POST found is sent to _______
addslashes()
Parse error
predefined variable
floor()
43. The order of operations.
precedence
htmlspecialchars()
mysql
$_POST[]
44. To delete a variable or an element of an array
preg_split()
integer
decimal
unset()
45. The concatenation assignment operator?
count()
unset()
.=
Magic Constant
46. collection of binary data
fopen()
string
addslashes()
E_STRICT
47. To check if a constant is already declared
defined()
string
curly braces
the period; .
48. signed integer
str_word_count()
defined()
echo
int
49. addition
negative numbers
mysql
wordwrap()
+
50. a storage location in the computer's memory that has a type & a name and a contents
parentheses
statement
$_SESSION[]
variable