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. 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 __________.
SGML
$_SESSION[]
curly braces; ${$total}
chop()
2. signed floating-point value
predefined
float
Error
octal
3. $_POST Data sent using POST found is sent to _______
predefined variable
reassign
array()
Notice
4. signed integer
mysql_fetch_array()
number_format()
nl2br()
int
5. identity
Notice
error_reporting (0)
===
Magic Constant
6. collection of binary data
number_format()
the period; .
$$
string
7. To reset an array _______ the array() function to the array
$array[] = item
function
rand()
reassign
8. a positive or negative number
$_SESSION[]
===
integer
$dbc = mysql_connect(hostname, username, password)
9. Control structure that continue exit - they perform specific statements for a determined number of iterations.
Notice
Warning
loops
number_format()
10. Leading 0x: 0x13F or 0xA23
strtok()
sort()
Hex
Magic Constant
11. Used to convert certain HTML tags into their entity versions.
control structure
Notice
htmlspecialchars()
$array[] = item
12. used to round numeric values.
round() Function
reassign
define()
getrandmax()
13. a storage location in the computer's memory that has a type & a name and a contents
open source
preg_replace()
int
variable
14. Returns a string with backslashes in front of predefined characters
float
ASP
define()
addslashes()
15. either hasn't yet been set or is assigned NULL value
null
empty()
ksort()
error_reporting (E_ALL | E_STRICT)
16. Converts a string of ASCII characters to hexadecimal values
$_POST[]
bin2hex()
sql
rand()
17. Used to find the length of a string
HTTP
preg_replace()
strlen()
strtok()
18. To refer to an element in a multidimensional array list the indices in order of _____ to more precise;
server-side programing
general
array
switch
19. Shorthand used to increment and decrement
define()
nl2br()
$var++ and $var
int
20. To determine the amount of elements in an array
count()
define()
list()
HTML
21. The name of the #! used to designate the location of the PHP binary
Shebang
ASP
sql
Constant
22. To find how many substrings are in a string
SEO
count()
substr_count()
$_GET[]
23. standard notation
abs()
parentheses
unset()
decimal
24. Used to check if a variable has any value (including 0 or FALSE or an empty string).
isset()
string
preg_split()
PHP
25. To refer to an item in an array
$varname[key]
float
indexed array
nl2br()
26. _______ is a comparison operator
open source
!= inequality
$$
chr()
27. Alias of rtrim()
the period; .
string
chop()
asort()
28. a language in which to make querys to a database with
error_reporting (E_ALL)
sql
<<
control structure
29. Function used to round down to the lowest integer
$array[] = item
1
statement
floor()
30. The syntax for connecting to a database
predefined
ksort()
true
$dbc = mysql_connect(hostname, username, password)
31. To word wrap after a certain amount of characters.
round() Function
wordwrap()
WYSIWYG
rsort()
32. To get time data
date()
^
0
client-side programing
33. The output of var_export((float)array());
0
addslashes()
define()
ksort()
34. To counter htmlentities()
html_entity_decode()
rand()
for ($i = 0; $i < count($array); $i++) {statement(s);}
preg_match()
35. PHP has two conditional: if and ______.
the period; .
switch
DTD
1
36. Function can you use to format a number with commas
strip_tags()
number_format()
associative array
!= inequality
37. Online applications and resources which are available to the general public with very few restrictions
include() and require()
1
error_reporting (E_ALL & -E_NOTICE)
open source
38. Used to create a substring (referred to as a token) from a larger string
strtok()
htmlentities()
shuffle()
ksort()
39. The seven main error reporting constants are: E_NOTICE - E_WARNING - E_PARSE - E_ERROR - E_ALL - _____ - E_DEPRECATED
urlencode()
array_merge()
Magic Constant
E_STRICT
40. Define(NAME,value)
defined()
Constant
AJAX
reassign
41. Used to encrypt values - it is a one-way encryption method
index
crypt()
wordwrap()
$array[] = item
42. Creates a pointer to a file with the declared mode (read - write -etc.).
predefined
DTD
fopen()
negative numbers
43. a type with two possible values: true and false
boolean
>>
WYSIWYG
array
44. Used to find the amount of words in a string.
substr_count()
0
str_word_count()
.=
45. The four main error types are:Notice - Warning - ________ and Error.
client-side programing
mysql_fetch_array()
WYSIWYG
Parse error
46. says 'if' this then do this 'else' do this or 'while' this do this
preg_match()
string
array()
statement
47. This error refers to a variable with no value.
$var++ and $var
Notice
unset()
$_GET[]
48. To append elements to an array - this will assign item to the next available index; associative arrays get messy.
unset()
general
list()
$array[] = item
49. Uses two arguments: constant name and constant definition
ksort()
define()
POST
Array
50. allows you to split strings based on more complex rules
preg_split()
round() Function
array()
loops