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. Shorthand used to increment and decrement
boolean
$var++ and $var
defined()
$_SESSION[]
2. $_SERVER is a ________ variable.
not
strtok()
predefined
control structure
3. Used to create a substring (referred to as a token) from a larger string
unset()
strtok()
client-side programing
AJAX
4. Function used to convert new lines in a variable from a form to <br /> tags so that the data can be formatted correctly.
nl2br()
associative array
rsort()
the dollar sign $
5. To close a connection between a database
for ($i = 0; $i < count($array); $i++) {statement(s);}
fopen()
mysql_close($dbc)
urlencode()
6. equivalence
array()
the period; .
==
Array
7. To delete a variable or an element of an array
WYSIWYG
unset()
error_reporting (0)
count()
8. Hyper Text Transfer Protocol
mysql_close($dbc)
HTTP
boolean
string
9. bitwise AND
empty()
&
ksort()
GET
10. identity
.=
HTML
===
boolean
11. To counter htmlentities()
empty()
Magic Constant
function error_reporting()
html_entity_decode()
12. bitwise XOR
^
$var++ and $var
server-side programing
superglobal
13. $_POST Data sent using POST found is sent to _______
associative array
predefined variable
Notice
getrandmax()
14. _______ is a comparison operator
!= inequality
bin2hex()
htmlspecialchars()
error_reporting (0)
15. Online applications and resources which are available to the general public with very few restrictions
Error
open source
nl2br()
Magic Constant
16. To assign keys to the values in an array
array()
str_ireplace()
function
arsort()
17. This fatal fatal is caused by a semantic mistake: omission of a semicolon or imbalance of quotations or parentheses or braces.
abs()
define()
reassign
Parse error
18. Variable names cannot begin with _______
string
strlen()
numbers
urlencode()
19. Used to convert certain HTML tags into their entity versions.
string
htmlspecialchars()
the dollar sign $
.=
20. Use _______ for passwords or pages that would not be bookmarked or pages that require security.
the period; .
POST
strip_tags()
int
21. This will show all errors that fall under E_ALL or E_STRICT - the pipe | is used for 'or' so that errors that fall under either will be shown.
html_entity_decode()
sql
chr()
error_reporting (E_ALL | E_STRICT)
22. Define(NAME,value)
$_SESSION[]
$array[] = item
Constant
mysql_fetch_object()
23. This error refers to a variable with no value.
the period; .
Notice
curly braces; ${$total}
empty()
24. Active Server Pages
<<
HTML
echo
ASP
25. standard notation
decimal
true
htmlentities()
foreach
26. Use ______ for search engines or catalogued pages or pages that would be bookmarked.
strtok()
associative array
GET
shuffle()
27. Used to check if a variable has any value (including 0 or FALSE or an empty string).
+= or -= or *= or /=
isset()
error_reporting (E_ALL)
$_SESSION[]
28. ___________ can be used with substr() to count backward
general
indexed array
negative numbers
mysql_close($dbc)
29. any programing language where the user must support the language the script is written in
index
client-side programing
mysql_close($dbc)
array()
30. bitwise left shift
mysql_close($dbc)
string
<<
floor()
31. Function that contains the highest value that rand() can have randomly
HTTP
the escape character ''
E_STRICT
getrandmax()
32. Alias of rtrim()
error_reporting (0)
chop()
sql
asort()
33. To sort by the keys while maintaining the correlation between the key and its value
+= or -= or *= or /=
rand()
ksort()
Shebang
34. Use ______ when there are no variables in the string
single quotes
numbers
string
variable
35. Used to check if a variable has a valid numerical value; strings with numerical values pass.
trim()
!= inequality
is_numeric()
float
36. An array of variables passed in the URL
$$
crypt()
$var++ and $var
$_GET[]
37. This will not show error reporting - it will be turned off.
error_reporting (0)
client-side programing
Hex
$array[] = item
38. print $_SERVER will _____ work if you use the print function on arrays.
htmlspecialchars()
DTD
not
Shebang
39. The output of var_export((float)array());
0
string
trim()
define()
40. To assign array element values to individual variables
$_REQUEST
list()
preg_replace()
$$
41. Returns a string with backslashes in front of predefined characters
getrandmax()
float
addslashes()
parentheses
42. All variables must begin with _________.
crypt()
string
?>
the dollar sign $
43. says 'if' this then do this 'else' do this or 'while' this do this
statement
DTD
addslashes()
Object
44. To reset an array _______ the array() function to the array
predefined
reassign
ksort()
===
45. To get time data
error_reporting (E_ALL | E_STRICT)
date()
1
the dollar sign $
46. Hypertext Preprocessor - a server-side programing language used to create webpages
WYSIWYG
PHP
rand()
$$
47. To sort the values while maintaining the correlation between each value and its key
null
html_entity_decode()
function
asort()
48. signed floating-point value
float
not
negative numbers
trim()
49. This error arises from misusing a function.
Warning
^
true
include() and require()
50. To determine the amount of elements in an array
count()
ceil()
Hex
boolean