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 sort the values while maintaining the correlation between each value and its key - in reversed order
arsort()
array_merge()
array()
asort()
2. Asynchronous Javascript And XML
AJAX
str_ireplace()
foreach loop
E_STRICT
3. a type with two possible values: true and false
boolean
abs()
XOR
curly braces; ${$total}
4. The syntax for connecting to a database
!= inequality
define()
chop()
$dbc = mysql_connect(hostname, username, password)
5. Function used to round down to the lowest integer
sort()
null
floor()
Notice
6. Active Server Pages
mysql_fetch_object()
.=
Parse error
ASP
7. bitwise left shift
PHP
client-side programing
$$
<<
8. Shorthand used to increment and decrement
===
<?php
chop()
$var++ and $var
9. To get time data
$_SESSION[]
number_format()
date()
ini_set ('display_errors', 1)
10. container of ordered data elements
$varname[key]
^
Array
predefined
11. Used to convert certain HTML tags into their entity versions.
error_reporting (E_ALL | E_STRICT)
round() Function
htmlspecialchars()
curly braces; ${$total}
12. To get over quotation marks while using arrays
getrandmax()
strip_tags()
ASP
curly braces
13. The array that stores variables specific to a user's visit
$$
double quotes
indexed array
$_SESSION[]
14. a database which is best supported by PHP
html_entity_decode()
!= inequality
mysql
$_REQUEST
15. leading zero: 0100 or 0567
urlencode()
$_SESSION[]
octal
double quotes
16. An array of variables passed with <input /> data
chr()
PHP
octal
$_POST[]
17. This error refers to a variable with no value.
htmlentities()
bin2hex()
Notice
open source
18. a storage location in the computer's memory that has a type & a name and a contents
preg_match()
GET
variable
predefined variable
19. To iterate over the values of an array
for ($i = 0; $i < count($array); $i++) {statement(s);}
Parse error
Shebang
$_POST[]
20. _____ is a logical operator
$var++ and $var
XOR
AJAX
curly braces; ${$total}
21. any programing language where the script is parsed on the server
server-side programing
mysql_fetch_array()
curly braces
error_reporting (E_ALL & -E_NOTICE)
22. An array whose keys are strings; also known as a hash.
mysql_fetch_array()
number_format()
associative array
defined()
23. Use ______ when there are no variables in the string
Array
single quotes
HTTP
PHP
24. Similar to mysql_fetch_array() - but cannot be accessed by integer offset
Parse error
mysql_fetch_object()
general
drop
25. This will show all error reporting.
SEO
error_reporting (E_ALL)
preg_split()
asort()
26. To assign keys to the values in an array
round() Function
mysql_fetch_object()
htmlspecialchars()
array()
27. To iterate over the keys and values of an array
ini_set ('display_errors', 1)
htmlspecialchars()
statement
foreach loop
28. The ouput of var_export((bool)"NULL");
htmlspecialchars()
^
true
===
29. says 'if' this then do this 'else' do this or 'while' this do this
$dbc = mysql_connect(hostname, username, password)
statement
array()
predefined
30. To close a connection between a database
XOR
underscores
mysql_close($dbc)
urlencode()
31. To word wrap after a certain amount of characters.
precedence
AJAX
wordwrap()
mysql_close($dbc)
32. To reset an array _______ the array() function to the array
string
int
reassign
ASP
33. print $_SERVER will _____ work if you use the print function on arrays.
not
0
string
predefined
34. What You See Is What You Get
?>
curly braces
indexed array
WYSIWYG
35. This will show all error reporting except for notice errors.
$var++ and $var
error_reporting (E_ALL & -E_NOTICE)
1
<?php
36. $_POST Data sent using POST found is sent to _______
$$
WYSIWYG
strtok()
predefined variable
37. addition
1
PHP
rsort()
+
38. To check if a constant is already declared
defined()
curly braces
POST
wordwrap()
39. Search Engine Optimization
float
precedence
SEO
array_merge()
40. This fatal fatal is caused by a semantic mistake: omission of a semicolon or imbalance of quotations or parentheses or braces.
Parse error
preg_replace()
HTTP
Error
41. Used to encrypt values - it is a one-way encryption method
Parse error
crypt()
echo
mysql_close($dbc)
42. Use ______ for search engines or catalogued pages or pages that would be bookmarked.
str_word_count()
GET
string
asort()
43. Control structures that break exit
if/elseif/else and switch statements
HTTP
mysql
array_merge()
44. Used to check if a variable has any value (including 0 or FALSE or an empty string).
drop
isset()
defined()
underscores
45. Use ________ to have multiple quotations in one string
the escape character ''
if/elseif/else and switch statements
index
double quotes
46. Function used to convert new lines in a variable from a form to <br /> tags so that the data can be formatted correctly.
curly braces; ${$total}
error_reporting (0)
nl2br()
preg_split()
47. bitwise right shift
>>
date()
nl2br()
chop()
48. Function can you use to format a number with commas
general
number_format()
str_ireplace()
the period; .
49. Tag to end a php script
numbers
?>
html_entity_decode()
error_reporting (E_ALL)
50. returns the number of matches found by a given search string under this format...
octal
preg_match()
general
$_GET[]