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. The ouput of var_export((bool)"NULL");
predefined
true
Hex
.=
2. Used to create a substring (referred to as a token) from a larger string
unset()
$varname[key]
str_word_count()
strtok()
3. Used to remove any white space - spaces or newlines or tabs - from the beginning and end of a string - not the middle.
addcslashes()
trim()
foreach loop
Magic Constant
4. The output of var_export((float)array());
===
html_entity_decode()
0
preg_match()
5. any programing language where the user must support the language the script is written in
is_numeric()
client-side programing
POST
fopen()
6. equivalence
strip_tags()
$_POST[]
==
preg_replace()
7. To delete a variable or an element of an array
preg_match()
define()
AJAX
unset()
8. To refer to an item in an array
$varname[key]
Warning
sort()
indexed array
9. The four main error types are:Notice - Warning - ________ and Error.
Parse error
ceil()
!= inequality
wordwrap()
10. To iterate over the values of an array
HTML
not
for ($i = 0; $i < count($array); $i++) {statement(s);}
decimal
11. print $_SERVER will _____ work if you use the print function on arrays.
not
count()
foreach loop
predefined variable
12. This will show all error reporting.
Notice
ini_set ('display_errors', 1)
error_reporting (E_ALL)
preg_split()
13. Used to convert certain HTML tags into their entity versions.
HTML
integer
error_reporting (E_ALL | E_STRICT)
htmlspecialchars()
14. $_SERVER - $_POST - $_GET - $_COOKIE - $_SESSION - $_ENV; special arrays.
Error
ini_set ('display_errors', 1)
superglobal
mysql_fetch_array()
15. Hyper Text Transfer Protocol
null
HTTP
PHP
urlencode()
16. Leading 0x: 0x13F or 0xA23
Hex
string
$$
echo
17. This error refers to a variable with no value.
predefined
Notice
indexed array
AJAX
18. Used to check if a variable has a valid numerical value; strings with numerical values pass.
Array
round() Function
is_numeric()
array()
19. bitwise left shift
HTTP
<<
Parse error
0
20. To reorganise the array randomly
include() and require()
shuffle()
Shebang
negative numbers
21. What You See Is What You Get
floor()
$var++ and $var
SGML
WYSIWYG
22. Function used to round down to the lowest integer
strlen()
mysql_fetch_object()
superglobal
floor()
23. The three types of loops in PHP are: for - while - ____.
foreach
function error_reporting()
boolean
Object
24. Shorthand used to increment and decrement
GET
^
reassign
$var++ and $var
25. Returns a string with backslashes in front of the specified characters
empty()
GET
foreach
addcslashes()
26. This will not show error reporting - it will be turned off.
error_reporting (E_ALL | E_STRICT)
+
error_reporting (0)
DTD
27. To sort values of an array without regard to the keys
sort()
boolean
foreach loop
array()
28. To reset an array _______ the array() function to the array
curly braces; ${$total}
reassign
addcslashes()
define()
29. a storage location in the computer's memory that has a type & a name and a contents
GET
variable
Error
empty()
30. returns the number of matches found by a given search string under this format...
drop
parentheses
preg_match()
HTTP
31. says 'if' this then do this 'else' do this or 'while' this do this
integer
statement
switch
function
32. To sort values of an array in reversed order
rsort()
the period; .
Constant
$array[] = item
33. Control structure that continue exit - they perform specific statements for a determined number of iterations.
loops
defined()
true
integer
34. Converts a string of ASCII characters to hexadecimal values
float
strip_tags()
bin2hex()
+
35. Use ________ to have multiple quotations in one string
$var++ and $var
the escape character ''
SGML
crypt()
36. Predefined constants such as __LINE__ or __FILE__ or __FUNCTION__ or __CLASS__ and __METHOD__
control structure
.=
Magic Constant
rand()
37. To remove all HTML and PHP tags.
strip_tags()
server-side programing
bin2hex()
Object
38. Alias of rtrim()
chop()
substr_count()
preg_split()
error_reporting (E_ALL)
39. To iterate over the keys and values of an array
floor()
mysql
abs()
foreach loop
40. $_POST and $_GET are ________ variables.
date()
parentheses
predefined
$dbc = mysql_connect(hostname, username, password)
41. _____ is a logical operator
the escape character ''
strtok()
Array
XOR
42. addition
round() Function
ASP
negative numbers
+
43. This fatal error arises from memory allocation problem.
date()
open source
Error
ASP
44. Uses two arguments: constant name and constant definition
for ($i = 0; $i < count($array); $i++) {statement(s);}
server-side programing
unset()
define()
45. The prefix for a dynamic variable - also known as a variable variable
the dollar sign $
include() and require()
preg_match()
$$
46. Used to check if a given variable has an "empty" value - no value or 0 or FALSE.
count()
floor()
empty()
switch
47. allows you to split strings based on more complex rules
$_POST[]
WYSIWYG
preg_split()
rsort()
48. To declare a constant
&
define()
XOR
sql
49. Use ______ when a variable contains any amount of variables; in general.
predefined
for ($i = 0; $i < count($array); $i++) {statement(s);}
Warning
double quotes
50. An array whose keys are strings; also known as a hash.
$var++ and $var
foreach loop
associative array
Hex