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. Document Type Definitions
function error_reporting()
include() and require()
DTD
+
2. All variables must begin with _________.
float
$varname[key]
the dollar sign $
preg_split()
3. either hasn't yet been set or is assigned NULL value
null
preg_match()
>>
isset()
4. To refer to an element in a multidimensional array list the indices in order of _____ to more precise;
define()
HTTP
Constant
general
5. Returns an array that corresponds to the fetched row of MySQL data and moves the internal data pointer ahead
mysql_fetch_array()
$_POST[]
preg_split()
predefined
6. The output of var_export((float)array(0));
wordwrap()
Array
1
strip_tags()
7. signed floating-point value
$varname[key]
<<
.=
float
8. An array of variables passed with <input /> data
Warning
$_POST[]
rsort()
precedence
9. To word wrap after a certain amount of characters.
wordwrap()
$varname[key]
!= inequality
htmlspecialchars()
10. Function can you use to format a number with commas
the period; .
number_format()
for ($i = 0; $i < count($array); $i++) {statement(s);}
include() and require()
11. An array whose keys are strings; also known as a hash.
DTD
associative array
arsort()
Constant
12. Function that contains the highest value that rand() can have randomly
double quotes
SEO
sql
getrandmax()
13. Use ________ to have multiple quotations in one string
substr_count()
predefined
the escape character ''
Parse error
14. bitwise XOR
Parse error
preg_replace()
associative array
^
15. Tag to begin a php script
not
float
<?php
WYSIWYG
16. Function used to convert new lines in a variable from a form to <br /> tags so that the data can be formatted correctly.
function error_reporting()
<<
nl2br()
Error
17. a database which is best supported by PHP
mysql
underscores
array_merge()
unset()
18. To sort values of an array in reversed order
rsort()
error_reporting (E_ALL | E_STRICT)
<<
numbers
19. Returns a string with backslashes in front of the specified characters
foreach
$var++ and $var
addcslashes()
the escape character ''
20. Use ______ when a variable contains any amount of variables; in general.
double quotes
strlen()
rsort()
wordwrap()
21. This error arises from misusing a function.
Warning
HTML
boolean
string
22. To remove all HTML and PHP tags.
strip_tags()
string
HTML
switch
23. An array whose keys are numbers.
AJAX
indexed array
trim()
^
24. An array of variables passed in the URL
$_GET[]
associative array
decimal
SEO
25. The seven main SQL (structured query language) functions are alter - create - delete - _______ - insert - select - update
$_POST[]
preg_match()
crypt()
drop
26. Alias of rtrim()
chop()
underscores
Shebang
variable
27. Used to check if a given variable has an "empty" value - no value or 0 or FALSE.
rand()
<<
SEO
empty()
28. To reorganise the array randomly
not
shuffle()
index
.=
29. To get over quotation marks while using arrays
mysql_fetch_object()
array()
is_numeric()
curly braces
30. Used to find the amount of words in a string.
XML
preg_replace()
str_word_count()
list()
31. To merge arrays
string
wordwrap()
addslashes()
array_merge()
32. Use _______ for passwords or pages that would not be bookmarked or pages that require security.
Shebang
statement
POST
date()
33. To assign array element values to individual variables
list()
array
predefined
loops
34. To assign keys to the values in an array
array()
Error
error_reporting (E_ALL)
define()
35. leading zero: 0100 or 0567
open source
strip_tags()
octal
XOR
36. identity
^
$varname[key]
switch
===
37. returns the number of matches found by a given search string under this format...
DTD
control structure
preg_match()
mysql_close($dbc)
38. used to round numeric values.
round() Function
$_GET[]
1
html_entity_decode()
39. Tag to end a php script
drop
?>
<?php
$dbc = mysql_connect(hostname, username, password)
40. The array that stores variables specific to a user's visit
$_POST[]
$_SESSION[]
mysql
crypt()
41. Creates a pointer to a file with the declared mode (read - write -etc.).
octal
fopen()
$_REQUEST
ASP
42. the most basic function in PHP used to output information to the page
HTTP
indexed array
echo
>>
43. says 'if' this then do this 'else' do this or 'while' this do this
^
reassign
the period; .
statement
44. Function used to round down to the lowest integer
wordwrap()
SEO
htmlspecialchars()
floor()
45. allows you to split strings based on more complex rules
double quotes
preg_split()
preg_replace()
fopen()
46. Uses two arguments: constant name and constant definition
define()
Hex
POST
mysql_fetch_object()
47. This error refers to a variable with no value.
error_reporting (E_ALL & -E_NOTICE)
foreach loop
Notice
arsort()
48. Hypertext Preprocessor - a server-side programing language used to create webpages
$_GET[]
the period; .
PHP
XML
49. $_SERVER - $_POST - $_GET - $_COOKIE - $_SESSION - $_ENV; special arrays.
superglobal
preg_match()
shuffle()
Array
50. $_POST and $_GET are ________ variables.
preg_match()
predefined
isset()
mysql