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 error arises from misusing a function.
boolean
Warning
htmlspecialchars()
error_reporting (E_ALL)
2. _________ can be used in conditional statements to set precedence
!= inequality
underscores
shuffle()
parentheses
3. Variable names can begin with __________
XML
Notice
strip_tags()
underscores
4. function Function used to create a random number
crypt()
rand()
control structure
0
5. equivalence
.=
==
define()
predefined
6. the most basic function in PHP used to output information to the page
single quotes
DTD
$_REQUEST
echo
7. When used the value can be passed safely through the URL (GET).
urlencode()
HTML
Array
defined()
8. The prefix for a dynamic variable - also known as a variable variable
HTTP
$$
predefined variable
superglobal
9. To declare a constant
define()
+
true
for ($i = 0; $i < count($array); $i++) {statement(s);}
10. This error refers to a variable with no value.
number_format()
chr()
Notice
reassign
11. Active Server Pages
error_reporting (E_ALL)
string
htmlspecialchars()
ASP
12. The concatenation assignment operator?
.=
float
drop
mysql_fetch_array()
13. Use _______ for passwords or pages that would not be bookmarked or pages that require security.
POST
crypt()
sql
mysql
14. TRUE or FALSE
single quotes
boolean
empty()
PHP
15. Used to display errors in a particular script - should be placed at top of script.
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
16. Used to replace a substring with another string - it is not case-sensitive.
error_reporting (E_ALL & -E_NOTICE)
string
mysql_fetch_object()
str_ireplace()
17. To word wrap after a certain amount of characters.
error_reporting (E_ALL)
wordwrap()
1
getrandmax()
18. To find how many substrings are in a string
substr_count()
1
?>
chop()
19. Used to convert all HTML tags into their entity versions.
&
predefined
client-side programing
htmlentities()
20. The concatenation operator?
the period; .
abs()
getrandmax()
HTTP
21. Search Engine Optimization
empty()
SEO
array()
strtok()
22. Uses two arguments: constant name and constant definition
GET
html_entity_decode()
define()
list()
23. To counter htmlentities()
html_entity_decode()
include() and require()
>>
empty()
24. Shorthand used to increment and decrement
Parse error
$var++ and $var
empty()
arsort()
25. Standard Generalized Markup Language
htmlspecialchars()
SGML
$var++ and $var
$_REQUEST
26. container of both data and code
Object
statement
predefined
double quotes
27. Used to check if a given variable has an "empty" value - no value or 0 or FALSE.
is_numeric()
&
empty()
XOR
28. Document Type Definitions
Parse error
GET
the period; .
DTD
29. a type with two possible values: true and false
SGML
server-side programing
mysql_fetch_array()
boolean
30. searches the subject for matches to a given pattern replaced with the given replacement text
<?php
is_numeric()
preg_replace()
reassign
31. a line of information that can be stored in a variable or used in a function or statement
control structure
string
predefined
curly braces
32. $_SERVER - $_POST - $_GET - $_COOKIE - $_SESSION - $_ENV; special arrays.
html_entity_decode()
underscores
superglobal
for ($i = 0; $i < count($array); $i++) {statement(s);}
33. any programing language where the script is parsed on the server
parentheses
server-side programing
error_reporting (E_ALL & -E_NOTICE)
boolean
34. Hypertext Preprocessor - a server-side programing language used to create webpages
superglobal
PHP
float
AJAX
35. To determine the amount of elements in an array
preg_replace()
<<
round() Function
count()
36. This will show all error reporting.
mysql_close($dbc)
error_reporting (E_ALL)
rand()
error_reporting (0)
37. Used to find the length of a string
addcslashes()
strlen()
PHP
number_format()
38. To close a connection between a database
shuffle()
predefined variable
mysql_close($dbc)
date()
39. Asynchronous Javascript And XML
AJAX
preg_replace()
control structure
superglobal
40. $_SERVER is a ________ variable.
count()
array_merge()
predefined
mysql
41. $_POST Data sent using POST found is sent to _______
predefined variable
XML
numbers
htmlentities()
42. The array that stores variables specific to a user's visit
$_SESSION[]
open source
HTTP
index
43. a storage location in the computer's memory that has a type & a name and a contents
str_ireplace()
double quotes
round() Function
variable
44. The output of var_export((float)array(0));
1
error_reporting (E_ALL)
Magic Constant
control structure
45. Used to remove any white space - spaces or newlines or tabs - from the beginning and end of a string - not the middle.
trim()
octal
<?php
Object
46. To refer to an item in an array
htmlspecialchars()
$varname[key]
preg_match()
<?php
47. Returns an array that corresponds to the fetched row of MySQL data and moves the internal data pointer ahead
strlen()
null
mysql_fetch_array()
str_ireplace()
48. What You See Is What You Get
array()
decimal
string
WYSIWYG
49. The ouput of var_export((bool)"NULL");
true
>>
Notice
preg_match()
50. To assign array element values to individual variables
fopen()
Parse error
>>
list()