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. This will not show error reporting - it will be turned off.
array()
?>
error_reporting (0)
trim()
2. A conditional or loop is a ________________.
control structure
!= inequality
rsort()
preg_replace()
3. bitwise left shift
superglobal
error_reporting (E_ALL | E_STRICT)
<<
htmlentities()
4. The ouput of var_export((bool)"NULL");
error_reporting (E_ALL)
GET
?>
true
5. Leading 0x: 0x13F or 0xA23
date()
substr_count()
Hex
floor()
6. To assign array element values to individual variables
Error
list()
function
$_SESSION[]
7. _______ is a comparison operator
Parse error
boolean
the period; .
!= inequality
8. Used to remove any white space - spaces or newlines or tabs - from the beginning and end of a string - not the middle.
urlencode()
Shebang
trim()
mysql_fetch_object()
9. To close a connection between a database
===
preg_split()
string
mysql_close($dbc)
10. $_POST Data sent using POST found is sent to _______
shuffle()
predefined variable
predefined
$varname[key]
11. allows you to split strings based on more complex rules
preg_split()
mysql_fetch_object()
string
function
12. Hyper Text Transfer Protocol
define()
HTTP
null
ceil()
13. collection of binary data
strip_tags()
string
^
for ($i = 0; $i < count($array); $i++) {statement(s);}
14. Shorthand used to increment and decrement
string
array()
echo
$var++ and $var
15. bitwise right shift
addcslashes()
htmlspecialchars()
>>
predefined variable
16. To include files - _______ will give errors and _________ will terminate execution().
+= or -= or *= or /=
include() and require()
error_reporting (0)
chr()
17. Converts a string of ASCII characters to hexadecimal values
bin2hex()
nl2br()
$dbc = mysql_connect(hostname, username, password)
!= inequality
18. Tag to end a php script
^
$_POST[]
?>
empty()
19. The concatenation operator?
the period; .
mysql_fetch_object()
int
double quotes
20. Hypertext Preprocessor - a server-side programing language used to create webpages
PHP
html_entity_decode()
$_SESSION[]
integer
21. ___________ can be used with substr() to count backward
define()
$array[] = item
negative numbers
!= inequality
22. The seven main error reporting constants are: E_NOTICE - E_WARNING - E_PARSE - E_ERROR - E_ALL - _____ - E_DEPRECATED
open source
curly braces
E_STRICT
substr_count()
23. Uses two arguments: constant name and constant definition
define()
+
client-side programing
curly braces; ${$total}
24. Used to find the amount of words in a string.
^
str_word_count()
foreach
Parse error
25. To sort by the keys while maintaining the correlation between the key and its value
integer
ksort()
.=
predefined variable
26. Used to check if a variable has any value (including 0 or FALSE or an empty string).
Warning
date()
isset()
<<
27. TRUE or FALSE
$varname[key]
boolean
function
urlencode()
28. To get time data
date()
boolean
0
defined()
29. Control structure that continue exit - they perform specific statements for a determined number of iterations.
not
for ($i = 0; $i < count($array); $i++) {statement(s);}
loops
Hex
30. To refer to an item in an array
$varname[key]
Object
1
0
31. To sort the values while maintaining the correlation between each value and its key - in reversed order
function error_reporting()
empty()
arsort()
$dbc = mysql_connect(hostname, username, password)
32. To find how many substrings are in a string
getrandmax()
parentheses
substr_count()
the dollar sign $
33. Used to check if a variable has a valid numerical value; strings with numerical values pass.
is_numeric()
float
XOR
ASP
34. signed integer
int
preg_split()
reassign
double quotes
35. The array that stores variables specific to a user's visit
Hex
parentheses
open source
$_SESSION[]
36. does a certain action when called upon
htmlentities()
$dbc = mysql_connect(hostname, username, password)
function
PHP
37. returns the number of matches found by a given search string under this format...
!= inequality
preg_match()
DTD
<?php
38. This will show all error reporting except for notice errors.
error_reporting (E_ALL & -E_NOTICE)
general
==
mysql_fetch_object()
39. To create an array
boolean
0
predefined variable
array()
40. $_SERVER - $_POST - $_GET - $_COOKIE - $_SESSION - $_ENV; special arrays.
mysql_fetch_array()
superglobal
getrandmax()
ini_set ('display_errors', 1)
41. $_POST and $_GET are ________ variables.
is_numeric()
predefined
the dollar sign $
+
42. Similar to mysql_fetch_array() - but cannot be accessed by integer offset
ksort()
error_reporting (E_ALL & -E_NOTICE)
POST
mysql_fetch_object()
43. Use _______ for passwords or pages that would not be bookmarked or pages that require security.
POST
echo
Warning
define()
44. To sort the values while maintaining the correlation between each value and its key
asort()
curly braces
strtok()
nl2br()
45. bitwise XOR
^
XML
float
array_merge()
46. To set up error reporting
shuffle()
null
function error_reporting()
SEO
47. To reorganise the array randomly
$_REQUEST
float
shuffle()
boolean
48. Used to convert all HTML tags into their entity versions.
html_entity_decode()
XML
PHP
htmlentities()
49. EXtensible Markup Language
list()
preg_split()
XML
double quotes
50. Use ________ to have multiple quotations in one string
the escape character ''
strip_tags()
GET
$dbc = mysql_connect(hostname, username, password)