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. Used to convert certain HTML tags into their entity versions.
htmlspecialchars()
floor()
is_numeric()
associative array
2. Use ______ when there are no variables in the string
is_numeric()
$_REQUEST
Constant
single quotes
3. Use ______ for search engines or catalogued pages or pages that would be bookmarked.
SGML
bin2hex()
GET
Magic Constant
4. The concatenation assignment operator?
crypt()
^
.=
array_merge()
5. Converts a string of ASCII characters to hexadecimal values
bin2hex()
ini_set ('display_errors', 1)
==
$_REQUEST
6. allows you to split strings based on more complex rules
index
error_reporting (E_ALL | E_STRICT)
preg_split()
isset()
7. signed floating-point value
addcslashes()
+
getrandmax()
float
8. Use _______ for passwords or pages that would not be bookmarked or pages that require security.
preg_split()
superglobal
POST
XOR
9. leading zero: 0100 or 0567
===
chop()
not
octal
10. Returns a string with backslashes in front of the specified characters
addcslashes()
empty()
chop()
<<
11. To create an array
array()
$_GET[]
ASP
chr()
12. Document Type Definitions
PHP
switch
DTD
define()
13. Online applications and resources which are available to the general public with very few restrictions
Array
ini_set ('display_errors', 1)
SGML
open source
14. Besides GET and POST ________ can be used to access data but $_POST and $_GET are more precise and therefore preferable.
str_word_count()
$_REQUEST
statement
null
15. The array that stores variables specific to a user's visit
$_SESSION[]
error_reporting (0)
associative array
empty()
16. To declare a constant
shuffle()
define()
asort()
XML
17. To counter htmlentities()
$var++ and $var
html_entity_decode()
+= or -= or *= or /=
index
18. To delete a variable or an element of an array
mysql_fetch_object()
strlen()
loops
unset()
19. Hyper Text Transfer Protocol
bin2hex()
define()
HTTP
int
20. To sort the values while maintaining the correlation between each value and its key - in reversed order
error_reporting (E_ALL | E_STRICT)
$_POST[]
arsort()
numbers
21. To refer to an element in a multidimensional array list the indices in order of _____ to more precise;
superglobal
preg_match()
XML
general
22. To assign array element values to individual variables
XML
substr_count()
list()
PHP
23. To close a connection between a database
array()
mysql_close($dbc)
negative numbers
$dbc = mysql_connect(hostname, username, password)
24. The syntax for connecting to a database
error_reporting (E_ALL & -E_NOTICE)
preg_match()
$dbc = mysql_connect(hostname, username, password)
Array
25. the most basic function in PHP used to output information to the page
GET
date()
empty()
echo
26. container of ordered data elements
str_ireplace()
addslashes()
predefined
Array
27. A data structure that can hold a number of items of data of the same type eg. a list of names
array
$array[] = item
addslashes()
$$
28. Hyper Text Markup Language
rand()
mysql
HTML
preg_match()
29. 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 __________.
&
curly braces; ${$total}
SEO
floor()
30. To get time data
XML
foreach loop
date()
str_word_count()
31. Asynchronous Javascript And XML
AJAX
DTD
float
PHP
32. To find how many substrings are in a string
Hex
substr_count()
predefined
round() Function
33. The ouput of var_export((bool)"NULL");
wordwrap()
SEO
true
XML
34. Tag to begin a php script
float
underscores
<?php
server-side programing
35. 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.
numbers
>>
$_GET[]
error_reporting (E_ALL | E_STRICT)
36. When used the value can be passed safely through the URL (GET).
===
urlencode()
Object
$varname[key]
37. An array of variables passed with <input /> data
$_POST[]
boolean
null
getrandmax()
38. The output of var_export((float)array());
defined()
Constant
+
0
39. Search Engine Optimization
ksort()
array
SEO
server-side programing
40. used to round numeric values.
$varname[key]
predefined variable
round() Function
date()
41. Control structures that break exit
if/elseif/else and switch statements
preg_replace()
addcslashes()
PHP
42. This error refers to a variable with no value.
Notice
drop
^
str_ireplace()
43. Returns a string with backslashes in front of predefined characters
preg_match()
error_reporting (E_ALL | E_STRICT)
addslashes()
<?php
44. says 'if' this then do this 'else' do this or 'while' this do this
1
html_entity_decode()
statement
error_reporting (E_ALL | E_STRICT)
45. Tag to end a php script
?>
==
control structure
strtok()
46. To reorganise the array randomly
shuffle()
floor()
function error_reporting()
html_entity_decode()
47. The four main error types are:Notice - Warning - ________ and Error.
statement
Parse error
nl2br()
mysql_fetch_object()
48. bitwise right shift
substr_count()
&
>>
server-side programing
49. $_POST Data sent using POST found is sent to _______
decimal
predefined variable
PHP
if/elseif/else and switch statements
50. print $_SERVER will _____ work if you use the print function on arrays.
POST
not
float
?>