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");
Parse error
true
ASP
Parse error
2. To word wrap after a certain amount of characters.
Parse error
empty()
wordwrap()
addcslashes()
3. The three types of loops in PHP are: for - while - ____.
Array
foreach
chop()
POST
4. The prefix for a dynamic variable - also known as a variable variable
HTTP
0
$$
mysql_fetch_array()
5. An array of variables passed in the URL
drop
bin2hex()
$_GET[]
mysql_fetch_array()
6. Function that contains the highest value that rand() can have randomly
getrandmax()
GET
1
mysql
7. To iterate over the values of an array
htmlentities()
true
mysql_fetch_array()
for ($i = 0; $i < count($array); $i++) {statement(s);}
8. ___________ can be used with substr() to count backward
negative numbers
foreach loop
ksort()
+= or -= or *= or /=
9. The four main error types are:Notice - Warning - ________ and Error.
Parse error
strtok()
chr()
==
10. Similar to mysql_fetch_array() - but cannot be accessed by integer offset
mysql_fetch_object()
drop
defined()
$var++ and $var
11. Predefined constants such as __LINE__ or __FILE__ or __FUNCTION__ or __CLASS__ and __METHOD__
array_merge()
Parse error
chr()
Magic Constant
12. bitwise right shift
>>
urlencode()
!= inequality
ASP
13. Asynchronous Javascript And XML
boolean
AJAX
==
define()
14. container of ordered data elements
double quotes
PHP
!= inequality
Array
15. This will show all error reporting.
error_reporting (E_ALL)
abs()
substr_count()
Parse error
16. does a certain action when called upon
$_GET[]
Constant
function
$_SESSION[]
17. PHP has two conditional: if and ______.
switch
error_reporting (E_ALL)
getrandmax()
defined()
18. bitwise AND
preg_split()
nl2br()
integer
&
19. The array that stores variables specific to a user's visit
+= or -= or *= or /=
rsort()
$_SESSION[]
$_REQUEST
20. To assign array element values to individual variables
===
int
list()
function
21. To counter htmlentities()
echo
include() and require()
html_entity_decode()
substr_count()
22. collection of binary data
string
addslashes()
+
$_POST[]
23. identity
?>
client-side programing
arsort()
===
24. Used to remove any white space - spaces or newlines or tabs - from the beginning and end of a string - not the middle.
trim()
html_entity_decode()
defined()
is_numeric()
25. $_SERVER - $_POST - $_GET - $_COOKIE - $_SESSION - $_ENV; special arrays.
superglobal
error_reporting (E_ALL & -E_NOTICE)
boolean
indexed array
26. The name of the #! used to designate the location of the PHP binary
double quotes
array
Shebang
count()
27. This error refers to a variable with no value.
Notice
!= inequality
null
function error_reporting()
28. To check if a constant is already declared
defined()
^
round() Function
boolean
29. To sort by the keys while maintaining the correlation between the key and its value
$array[] = item
superglobal
negative numbers
ksort()
30. Returns a string with backslashes in front of the specified characters
strlen()
addcslashes()
error_reporting (0)
unset()
31. To create an array
preg_replace()
integer
array()
null
32. Returns a string with backslashes in front of predefined characters
addslashes()
the escape character ''
$_GET[]
ini_set ('display_errors', 1)
33. Active Server Pages
superglobal
htmlentities()
ASP
$_REQUEST
34. Document Type Definitions
DTD
client-side programing
Parse error
predefined
35. Control structures that break exit
$var++ and $var
Array
if/elseif/else and switch statements
function error_reporting()
36. addition
associative array
$var++ and $var
+
getrandmax()
37. Use _______ for passwords or pages that would not be bookmarked or pages that require security.
<?php
POST
numbers
Constant
38. To merge arrays
function
array_merge()
preg_split()
ASP
39. used to round numeric values.
precedence
round() Function
error_reporting (E_ALL & -E_NOTICE)
preg_split()
40. equivalence
mysql
XOR
==
defined()
41. To assign keys to the values in an array
nl2br()
$_SESSION[]
array()
?>
42. EXtensible Markup Language
variable
WYSIWYG
XML
mysql
43. allows you to split strings based on more complex rules
drop
preg_split()
mysql
function
44. Used to convert all HTML tags into their entity versions.
error_reporting (E_ALL | E_STRICT)
bin2hex()
abs()
htmlentities()
45. Function used to convert new lines in a variable from a form to <br /> tags so that the data can be formatted correctly.
nl2br()
crypt()
getrandmax()
>>
46. Standard Generalized Markup Language
null
SGML
curly braces; ${$total}
strip_tags()
47. Leading 0x: 0x13F or 0xA23
error_reporting (E_ALL)
define()
decimal
Hex
48. signed integer
int
sql
negative numbers
chop()
49. Used to replace a substring with another string - it is not case-sensitive.
string
html_entity_decode()
is_numeric()
str_ireplace()
50. To reset an array _______ the array() function to the array
error_reporting (0)
$$
null
reassign