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. Online applications and resources which are available to the general public with very few restrictions
nl2br()
addcslashes()
trim()
open source
2. To set up error reporting
urlencode()
round() Function
function error_reporting()
isset()
3. Used to remove any white space - spaces or newlines or tabs - from the beginning and end of a string - not the middle.
indexed array
octal
foreach loop
trim()
4. This will not show error reporting - it will be turned off.
error_reporting (0)
substr_count()
associative array
crypt()
5. _____ is a logical operator
foreach
mysql
XOR
asort()
6. Used to check if a variable has a valid numerical value; strings with numerical values pass.
loops
&
list()
is_numeric()
7. _______ is a comparison operator
error_reporting (0)
!= inequality
chr()
&
8. Used to find the amount of words in a string.
===
==
str_word_count()
index
9. addition
+
int
array
error_reporting (E_ALL & -E_NOTICE)
10. To sort values of an array in reversed order
ASP
date()
double quotes
rsort()
11. $_SERVER is a ________ variable.
curly braces
list()
predefined
$_GET[]
12. ___________ can be used with substr() to count backward
echo
negative numbers
$_POST[]
$var++ and $var
13. Tag to begin a php script
<?php
float
str_word_count()
!= inequality
14. Use ________ to have multiple quotations in one string
addslashes()
GET
define()
the escape character ''
15. _________ can be used in conditional statements to set precedence
parentheses
Error
array_merge()
Constant
16. leading zero: 0100 or 0567
htmlspecialchars()
octal
arsort()
?>
17. Use _______ for passwords or pages that would not be bookmarked or pages that require security.
$varname[key]
curly braces; ${$total}
array
POST
18. Use ______ when there are no variables in the string
single quotes
html_entity_decode()
index
!= inequality
19. Similar to mysql_fetch_array() - but cannot be accessed by integer offset
arsort()
$varname[key]
htmlentities()
mysql_fetch_object()
20. When used the value can be passed safely through the URL (GET).
crypt()
the period; .
urlencode()
sql
21. To refer to an item in an array
double quotes
rsort()
octal
$varname[key]
22. Search Engine Optimization
chr()
echo
SEO
rand()
23. returns the number of matches found by a given search string under this format...
preg_match()
Warning
$_REQUEST
HTML
24. The concatenation assignment operator?
$array[] = item
+= or -= or *= or /=
shuffle()
.=
25. signed integer
mysql_fetch_array()
$_REQUEST
int
round() Function
26. To declare a constant
define()
bin2hex()
addslashes()
SGML
27. Used to create a substring (referred to as a token) from a larger string
string
parentheses
strtok()
for ($i = 0; $i < count($array); $i++) {statement(s);}
28. To refer to an element in a multidimensional array list the indices in order of _____ to more precise;
decimal
integer
general
^
29. function Function used to create a random number
AJAX
rand()
Error
urlencode()
30. Define(NAME,value)
Constant
wordwrap()
mysql_close($dbc)
$_GET[]
31. $_SERVER - $_POST - $_GET - $_COOKIE - $_SESSION - $_ENV; special arrays.
superglobal
define()
switch
$$
32. To word wrap after a certain amount of characters.
Parse error
sql
wordwrap()
strtok()
33. A conditional or loop is a ________________.
control structure
Error
superglobal
array()
34. Variable names cannot begin with _______
Constant
trim()
statement
numbers
35. Used to convert all HTML tags into their entity versions.
error_reporting (0)
foreach
htmlentities()
Constant
36. print $_SERVER will _____ work if you use the print function on arrays.
substr_count()
>>
not
shuffle()
37. either hasn't yet been set or is assigned NULL value
predefined
+
null
asort()
38. The seven main error reporting constants are: E_NOTICE - E_WARNING - E_PARSE - E_ERROR - E_ALL - _____ - E_DEPRECATED
negative numbers
wordwrap()
for ($i = 0; $i < count($array); $i++) {statement(s);}
E_STRICT
39. To append elements to an array - this will assign item to the next available index; associative arrays get messy.
boolean
list()
$array[] = item
HTTP
40. 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 __________.
getrandmax()
$array[] = item
1
curly braces; ${$total}
41. To assign keys to the values in an array
asort()
array()
Error
the period; .
42. Used to check if a given variable has an "empty" value - no value or 0 or FALSE.
count()
number_format()
isset()
empty()
43. says 'if' this then do this 'else' do this or 'while' this do this
statement
decimal
HTML
not
44. a language in which to make querys to a database with
Parse error
sql
Error
$var++ and $var
45. The array that stores variables specific to a user's visit
PHP
$_SESSION[]
the dollar sign $
addcslashes()
46. TRUE or FALSE
boolean
parentheses
indexed array
addcslashes()
47. Returns a character from a specified ASCII value
mysql
$var++ and $var
chr()
WYSIWYG
48. To determine the amount of elements in an array
floor()
count()
&
preg_replace()
49. To merge arrays
$_REQUEST
array_merge()
substr_count()
XOR
50. Uses two arguments: constant name and constant definition
boolean
define()
POST
PHP