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. Converts a string of ASCII characters to hexadecimal values
not
$var++ and $var
bin2hex()
PHP
2. signed floating-point value
predefined
float
XOR
bin2hex()
3. To sort by the keys while maintaining the correlation between the key and its value
Array
string
ksort()
+= or -= or *= or /=
4. Online applications and resources which are available to the general public with very few restrictions
boolean
mysql_fetch_array()
Object
open source
5. Use ______ when a variable contains any amount of variables; in general.
str_word_count()
double quotes
>>
wordwrap()
6. $_POST Data sent using POST found is sent to _______
$$
predefined variable
Error
SEO
7. leading zero: 0100 or 0567
include() and require()
count()
octal
echo
8. Returns a string with backslashes in front of predefined characters
addslashes()
predefined variable
int
$_GET[]
9. A conditional or loop is a ________________.
include() and require()
$array[] = item
SGML
control structure
10. Creates a pointer to a file with the declared mode (read - write -etc.).
if/elseif/else and switch statements
fopen()
SGML
mysql_fetch_object()
11. An array of variables passed with <input /> data
$_POST[]
substr_count()
abs()
HTML
12. Function can you use to format a number with commas
str_word_count()
count()
number_format()
curly braces
13. function Function used to create a random number
switch
rand()
ini_set ('display_errors', 1)
statement
14. The seven main error reporting constants are: E_NOTICE - E_WARNING - E_PARSE - E_ERROR - E_ALL - _____ - E_DEPRECATED
E_STRICT
mysql_fetch_object()
curly braces; ${$total}
list()
15. Function used to convert new lines in a variable from a form to <br /> tags so that the data can be formatted correctly.
define()
nl2br()
date()
strlen()
16. The output of var_export((float)array());
===
0
floor()
precedence
17. Similar to mysql_fetch_array() - but cannot be accessed by integer offset
foreach loop
indexed array
mysql_fetch_object()
integer
18. An array of variables passed in the URL
str_ireplace()
chop()
$_GET[]
E_STRICT
19. Used to find the amount of words in a string.
getrandmax()
array_merge()
str_word_count()
XML
20. identity
not
array()
===
include() and require()
21. Function used to round up to the highest integer
ceil()
addcslashes()
SEO
associative array
22. bitwise right shift
index
curly braces
>>
POST
23. bitwise AND
$_SESSION[]
&
+= or -= or *= or /=
error_reporting (E_ALL | E_STRICT)
24. collection of binary data
string
error_reporting (E_ALL)
error_reporting (E_ALL & -E_NOTICE)
negative numbers
25. $_SERVER is a ________ variable.
predefined
count()
defined()
strip_tags()
26. Define(NAME,value)
boolean
crypt()
Constant
decimal
27. This error refers to a variable with no value.
round() Function
$$
Notice
E_STRICT
28. Used to convert all HTML tags into their entity versions.
urlencode()
drop
htmlentities()
the escape character ''
29. Leading 0x: 0x13F or 0xA23
define()
echo
trim()
Hex
30. To assign keys to the values in an array
$_POST[]
HTTP
define()
array()
31. To sort the values while maintaining the correlation between each value and its key - in reversed order
bin2hex()
arsort()
shuffle()
int
32. The seven main SQL (structured query language) functions are alter - create - delete - _______ - insert - select - update
html_entity_decode()
function error_reporting()
date()
drop
33. Tag to end a php script
htmlentities()
?>
POST
foreach
34. ____ or key is referred to for a value within an array.
index
include() and require()
general
associative array
35. Besides GET and POST ________ can be used to access data but $_POST and $_GET are more precise and therefore preferable.
preg_split()
index
$_REQUEST
array_merge()
36. Returns an array that corresponds to the fetched row of MySQL data and moves the internal data pointer ahead
getrandmax()
echo
GET
mysql_fetch_array()
37. Asynchronous Javascript And XML
chr()
AJAX
reassign
$_SESSION[]
38. Use ______ for search engines or catalogued pages or pages that would be bookmarked.
foreach loop
wordwrap()
GET
+= or -= or *= or /=
39. To check if a constant is already declared
defined()
boolean
array()
0
40. Used to convert certain HTML tags into their entity versions.
array_merge()
shuffle()
E_STRICT
htmlspecialchars()
41. Returns a character from a specified ASCII value
foreach
double quotes
chr()
list()
42. Use ________ to have multiple quotations in one string
server-side programing
chop()
?>
the escape character ''
43. a type with two possible values: true and false
arsort()
boolean
chr()
ksort()
44. Control structure that continue exit - they perform specific statements for a determined number of iterations.
Object
$dbc = mysql_connect(hostname, username, password)
loops
bin2hex()
45. signed integer
list()
mysql
int
switch
46. The output of var_export((float)array(0));
single quotes
associative array
1
error_reporting (0)
47. To append elements to an array - this will assign item to the next available index; associative arrays get messy.
boolean
DTD
$array[] = item
SEO
48. This will show all error reporting except for notice errors.
number_format()
mysql_fetch_array()
array_merge()
error_reporting (E_ALL & -E_NOTICE)
49. EXtensible Markup Language
XML
Array
error_reporting (E_ALL | E_STRICT)
error_reporting (E_ALL & -E_NOTICE)
50. Used to check if a given variable has an "empty" value - no value or 0 or FALSE.
array
^
empty()
abs()