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. $_POST and $_GET are ________ variables.
control structure
predefined
htmlspecialchars()
array()
2. Returns a string with backslashes in front of predefined characters
define()
addslashes()
$_SESSION[]
floor()
3. used to round numeric values.
1
htmlentities()
curly braces
round() Function
4. returns the number of matches found by a given search string under this format...
htmlentities()
$_POST[]
preg_match()
==
5. Used to find the amount of words in a string.
string
function
parentheses
str_word_count()
6. An array whose keys are numbers.
indexed array
preg_match()
open source
$array[] = item
7. To merge arrays
Magic Constant
date()
array_merge()
sort()
8. The output of var_export((float)array(0));
preg_replace()
$array[] = item
1
drop
9. Use ______ when there are no variables in the string
single quotes
defined()
preg_split()
crypt()
10. This error arises from misusing a function.
Warning
Shebang
str_ireplace()
indexed array
11. a storage location in the computer's memory that has a type & a name and a contents
variable
strtok()
underscores
array
12. Control structures that break exit
define()
floor()
array()
if/elseif/else and switch statements
13. When used the value can be passed safely through the URL (GET).
?>
<?php
Notice
urlencode()
14. Function can you use to format a number with commas
?>
number_format()
str_word_count()
control structure
15. An array of variables passed in the URL
define()
$_GET[]
is_numeric()
PHP
16. Use ________ to have multiple quotations in one string
0
the escape character ''
string
ini_set ('display_errors', 1)
17. Function used to convert new lines in a variable from a form to <br /> tags so that the data can be formatted correctly.
ASP
function
nl2br()
==
18. Used to find the length of a string
SEO
boolean
strlen()
mysql
19. The concatenation assignment operator?
.=
decimal
not
is_numeric()
20. Used to check if a given variable has an "empty" value - no value or 0 or FALSE.
unset()
error_reporting (E_ALL)
empty()
arsort()
21. Used to convert certain HTML tags into their entity versions.
htmlspecialchars()
preg_replace()
include() and require()
string
22. A conditional or loop is a ________________.
chop()
Notice
mysql_fetch_array()
control structure
23. equivalence
==
ksort()
defined()
htmlspecialchars()
24. $_SERVER is a ________ variable.
.=
float
predefined
reassign
25. ___________ can be used with substr() to count backward
XOR
negative numbers
<?php
1
26. The ouput of var_export((bool)"NULL");
ksort()
Parse error
true
Object
27. To get over quotation marks while using arrays
predefined
the dollar sign $
curly braces
POST
28. What You See Is What You Get
variable
^
WYSIWYG
foreach loop
29. Hypertext Preprocessor - a server-side programing language used to create webpages
PHP
<?php
mysql_close($dbc)
preg_replace()
30. Used to check if a variable has a valid numerical value; strings with numerical values pass.
sort()
underscores
XML
is_numeric()
31. $_SERVER - $_POST - $_GET - $_COOKIE - $_SESSION - $_ENV; special arrays.
superglobal
WYSIWYG
<<
POST
32. a type with two possible values: true and false
isset()
boolean
defined()
strip_tags()
33. To sort by the keys while maintaining the correlation between the key and its value
fopen()
index
ksort()
Error
34. To sort values of an array without regard to the keys
SEO
$var++ and $var
numbers
sort()
35. Use ______ for search engines or catalogued pages or pages that would be bookmarked.
Object
bin2hex()
GET
round() Function
36. This error refers to a variable with no value.
trim()
precedence
integer
Notice
37. The seven main SQL (structured query language) functions are alter - create - delete - _______ - insert - select - update
not
drop
strlen()
preg_replace()
38. signed integer
AJAX
mysql_fetch_object()
$_GET[]
int
39. To sort values of an array in reversed order
html_entity_decode()
Error
rsort()
sql
40. either hasn't yet been set or is assigned NULL value
null
general
preg_replace()
predefined
41. Online applications and resources which are available to the general public with very few restrictions
isset()
open source
unset()
asort()
42. Used to create a substring (referred to as a token) from a larger string
rand()
null
DTD
strtok()
43. To delete a variable or an element of an array
GET
Warning
unset()
html_entity_decode()
44. To reset an array _______ the array() function to the array
Object
the dollar sign $
$_POST[]
reassign
45. $_POST Data sent using POST found is sent to _______
count()
substr_count()
define()
predefined variable
46. Tag to begin a php script
predefined
mysql_fetch_array()
<?php
str_ireplace()
47. Similar to mysql_fetch_array() - but cannot be accessed by integer offset
mysql_fetch_object()
crypt()
addcslashes()
echo
48. identity
parentheses
^
===
strlen()
49. any programing language where the user must support the language the script is written in
chop()
client-side programing
is_numeric()
variable
50. To put a dollar sign before a variable like $10 where 10 is the variable's value - you can escape the first dollar sign; $$cost; or you can use __________.
strlen()
curly braces; ${$total}
ceil()
precedence