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. $_POST Data sent using POST found is sent to _______
predefined variable
bin2hex()
$var++ and $var
floor()
2. leading zero: 0100 or 0567
superglobal
octal
E_STRICT
client-side programing
3. To reset an array _______ the array() function to the array
negative numbers
reassign
not
loops
4. This error arises from misusing a function.
<<
Warning
array()
boolean
5. Standard Generalized Markup Language
SGML
chr()
boolean
parentheses
6. _________ can be used in conditional statements to set precedence
true
octal
parentheses
unset()
7. Use ________ to have multiple quotations in one string
==
loops
the escape character ''
htmlspecialchars()
8. bitwise XOR
^
strlen()
abs()
echo
9. addition
Warning
+
if/elseif/else and switch statements
string
10. 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 __________.
ceil()
array_merge()
str_word_count()
curly braces; ${$total}
11. Besides GET and POST ________ can be used to access data but $_POST and $_GET are more precise and therefore preferable.
sort()
unset()
$_REQUEST
$$
12. The concatenation operator?
mysql_fetch_object()
the period; .
underscores
sort()
13. To get time data
Parse error
addslashes()
date()
POST
14. standard notation
+= or -= or *= or /=
HTML
decimal
0
15. says 'if' this then do this 'else' do this or 'while' this do this
negative numbers
foreach
statement
sort()
16. An array whose keys are numbers.
indexed array
&
reassign
array_merge()
17. Converts a string of ASCII characters to hexadecimal values
DTD
bin2hex()
htmlentities()
Notice
18. Operators used to operate and assign
addslashes()
+= or -= or *= or /=
predefined
===
19. To close a connection between a database
XOR
$varname[key]
asort()
mysql_close($dbc)
20. Function used to convert new lines in a variable from a form to <br /> tags so that the data can be formatted correctly.
+
nl2br()
rand()
1
21. The seven main SQL (structured query language) functions are alter - create - delete - _______ - insert - select - update
drop
foreach loop
boolean
index
22. An array of variables passed with <input /> data
$_POST[]
$varname[key]
str_word_count()
echo
23. This fatal fatal is caused by a semantic mistake: omission of a semicolon or imbalance of quotations or parentheses or braces.
float
Parse error
statement
$varname[key]
24. The three types of loops in PHP are: for - while - ____.
foreach
indexed array
Constant
not
25. collection of binary data
string
reassign
mysql_fetch_object()
float
26. Used to convert all HTML tags into their entity versions.
predefined variable
ceil()
htmlentities()
==
27. Define(NAME,value)
array
Constant
index
preg_replace()
28. Used to check if a variable has any value (including 0 or FALSE or an empty string).
parentheses
isset()
^
sort()
29. Function can you use to format a number with commas
number_format()
preg_match()
count()
HTTP
30. Used to find the amount of words in a string.
numbers
===
underscores
str_word_count()
31. a language in which to make querys to a database with
preg_split()
sql
urlencode()
html_entity_decode()
32. When used the value can be passed safely through the URL (GET).
array_merge()
$_SESSION[]
urlencode()
function
33. To word wrap after a certain amount of characters.
asort()
SGML
ini_set ('display_errors', 1)
wordwrap()
34. To delete a variable or an element of an array
HTML
unset()
1
isset()
35. Function used to round down to the lowest integer
floor()
HTML
!= inequality
nl2br()
36. bitwise AND
array_merge()
1
.=
&
37. The order of operations.
date()
precedence
mysql
strip_tags()
38. signed floating-point value
fopen()
chop()
float
ksort()
39. used to round numeric values.
Parse error
urlencode()
round() Function
$$
40. a line of information that can be stored in a variable or used in a function or statement
array_merge()
string
rand()
single quotes
41. To refer to an item in an array
unset()
htmlspecialchars()
array()
$varname[key]
42. The syntax for connecting to a database
server-side programing
defined()
$dbc = mysql_connect(hostname, username, password)
.=
43. The four main error types are:Notice - Warning - ________ and Error.
boolean
Parse error
&
nl2br()
44. Used to remove any white space - spaces or newlines or tabs - from the beginning and end of a string - not the middle.
abs()
trim()
mysql
ksort()
45. Used to check if a variable has a valid numerical value; strings with numerical values pass.
bin2hex()
index
$$
is_numeric()
46. Similar to mysql_fetch_array() - but cannot be accessed by integer offset
mysql_fetch_object()
XOR
?>
Shebang
47. To counter htmlentities()
int
html_entity_decode()
DTD
sort()
48. equivalence
int
switch
==
1
49. Creates a pointer to a file with the declared mode (read - write -etc.).
fopen()
underscores
html_entity_decode()
PHP
50. a positive or negative number
foreach
client-side programing
error_reporting (E_ALL | E_STRICT)
integer