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 concatenation assignment operator?
$_POST[]
XML
.=
==
2. collection of binary data
the dollar sign $
floor()
rand()
string
3. either hasn't yet been set or is assigned NULL value
<?php
chr()
$dbc = mysql_connect(hostname, username, password)
null
4. Use _______ for passwords or pages that would not be bookmarked or pages that require security.
mysql_fetch_array()
statement
POST
getrandmax()
5. To counter htmlentities()
shuffle()
?>
html_entity_decode()
boolean
6. Used to replace a substring with another string - it is not case-sensitive.
negative numbers
$$
str_ireplace()
!= inequality
7. equivalence
sort()
html_entity_decode()
==
.=
8. To reorganise the array randomly
urlencode()
XOR
shuffle()
not
9. Alias of rtrim()
list()
chop()
error_reporting (E_ALL)
&
10. a positive or negative number
.=
Shebang
$_POST[]
integer
11. Returns a string with backslashes in front of predefined characters
if/elseif/else and switch statements
wordwrap()
<<
addslashes()
12. To iterate over the keys and values of an array
str_ireplace()
foreach loop
function error_reporting()
curly braces
13. To determine the amount of elements in an array
round() Function
if/elseif/else and switch statements
count()
$_POST[]
14. Define(NAME,value)
PHP
float
error_reporting (E_ALL)
Constant
15. When used the value can be passed safely through the URL (GET).
function
unset()
preg_replace()
urlencode()
16. Used to check if a variable has a valid numerical value; strings with numerical values pass.
define()
if/elseif/else and switch statements
is_numeric()
strtok()
17. $_SERVER - $_POST - $_GET - $_COOKIE - $_SESSION - $_ENV; special arrays.
superglobal
foreach loop
mysql_fetch_array()
statement
18. To close a connection between a database
E_STRICT
mysql_close($dbc)
1
<?php
19. leading zero: 0100 or 0567
array
single quotes
octal
decimal
20. bitwise left shift
rand()
mysql_close($dbc)
<<
addslashes()
21. ____ or key is referred to for a value within an array.
index
boolean
$var++ and $var
switch
22. container of both data and code
function error_reporting()
boolean
true
Object
23. identity
crypt()
===
open source
==
24. Tag to end a php script
!= inequality
+
?>
error_reporting (E_ALL)
25. To set up error reporting
>>
asort()
unset()
function error_reporting()
26. To sort the values while maintaining the correlation between each value and its key
ksort()
error_reporting (E_ALL)
asort()
^
27. What You See Is What You Get
int
WYSIWYG
0
associative array
28. Function can you use to format a number with commas
array_merge()
preg_replace()
$_REQUEST
number_format()
29. To remove all HTML and PHP tags.
<?php
nl2br()
strip_tags()
unset()
30. To assign array element values to individual variables
error_reporting (E_ALL | E_STRICT)
htmlentities()
list()
boolean
31. function Function used to create a random number
string
substr_count()
count()
rand()
32. Hyper Text Transfer Protocol
HTTP
getrandmax()
the dollar sign $
+
33. a language in which to make querys to a database with
isset()
E_STRICT
Warning
sql
34. The array that stores variables specific to a user's visit
SEO
$_SESSION[]
string
string
35. The seven main error reporting constants are: E_NOTICE - E_WARNING - E_PARSE - E_ERROR - E_ALL - _____ - E_DEPRECATED
unset()
function
ini_set ('display_errors', 1)
E_STRICT
36. Used to check if a variable has any value (including 0 or FALSE or an empty string).
isset()
string
is_numeric()
chop()
37. $_POST Data sent using POST found is sent to _______
==
+
integer
predefined variable
38. The four main error types are:Notice - Warning - ________ and Error.
number_format()
Parse error
XML
switch
39. container of ordered data elements
strtok()
server-side programing
numbers
Array
40. the most basic function in PHP used to output information to the page
number_format()
Parse error
urlencode()
echo
41. To refer to an element in a multidimensional array list the indices in order of _____ to more precise;
preg_split()
loops
$array[] = item
general
42. a database which is best supported by PHP
arsort()
string
mysql
preg_match()
43. Hypertext Preprocessor - a server-side programing language used to create webpages
statement
PHP
$array[] = item
mysql_fetch_array()
44. ___________ can be used with substr() to count backward
str_word_count()
negative numbers
ceil()
strip_tags()
45. $_POST and $_GET are ________ variables.
wordwrap()
error_reporting (E_ALL | E_STRICT)
control structure
predefined
46. Used to remove any white space - spaces or newlines or tabs - from the beginning and end of a string - not the middle.
^
arsort()
trim()
$_POST[]
47. An array whose keys are numbers.
POST
precedence
string
indexed array
48. A conditional or loop is a ________________.
chop()
preg_match()
list()
control structure
49. Control structure that continue exit - they perform specific statements for a determined number of iterations.
strip_tags()
server-side programing
loops
Parse error
50. Used to find the amount of words in a string.
DTD
shuffle()
str_word_count()
<<