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. To determine the amount of elements in an array
count()
Array
mysql_fetch_array()
predefined
2. any programing language where the script is parsed on the server
AJAX
server-side programing
error_reporting (0)
isset()
3. print $_SERVER will _____ work if you use the print function on arrays.
variable
SGML
strtok()
not
4. The seven main SQL (structured query language) functions are alter - create - delete - _______ - insert - select - update
drop
echo
mysql_close($dbc)
Array
5. Control structures that break exit
!= inequality
1
if/elseif/else and switch statements
nl2br()
6. To assign array element values to individual variables
XOR
DTD
string
list()
7. Used to check if a given variable has an "empty" value - no value or 0 or FALSE.
addcslashes()
error_reporting (E_ALL)
empty()
HTTP
8. This will not show error reporting - it will be turned off.
is_numeric()
unset()
$$
error_reporting (0)
9. To counter htmlentities()
Error
the escape character ''
statement
html_entity_decode()
10. 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 __________.
curly braces; ${$total}
drop
preg_match()
strlen()
11. Used to create a substring (referred to as a token) from a larger string
strtok()
loops
index
ini_set ('display_errors', 1)
12. Document Type Definitions
the dollar sign $
curly braces
&
DTD
13. Search Engine Optimization
decimal
Array
date()
SEO
14. searches the subject for matches to a given pattern replaced with the given replacement text
superglobal
preg_replace()
predefined variable
client-side programing
15. addition
mysql_fetch_array()
$varname[key]
error_reporting (E_ALL | E_STRICT)
+
16. Function that contains the highest value that rand() can have randomly
function
strip_tags()
empty()
getrandmax()
17. To get time data
date()
array()
octal
numbers
18. bitwise XOR
^
wordwrap()
HTML
chr()
19. Used to encrypt values - it is a one-way encryption method
crypt()
mysql
<?php
error_reporting (0)
20. TRUE or FALSE
boolean
predefined
control structure
sql
21. _____ is a logical operator
mysql_close($dbc)
XOR
getrandmax()
Constant
22. Used to check if a variable has a valid numerical value; strings with numerical values pass.
Parse error
double quotes
is_numeric()
+= or -= or *= or /=
23. Function used to round down to the lowest integer
floor()
open source
strip_tags()
if/elseif/else and switch statements
24. Online applications and resources which are available to the general public with very few restrictions
decimal
nl2br()
open source
predefined
25. Use ______ when there are no variables in the string
mysql_fetch_object()
negative numbers
ASP
single quotes
26. Use _______ for passwords or pages that would not be bookmarked or pages that require security.
array()
POST
curly braces; ${$total}
ksort()
27. bitwise right shift
not
getrandmax()
>>
array()
28. Uses two arguments: constant name and constant definition
+= or -= or *= or /=
is_numeric()
floor()
define()
29. Returns a string with backslashes in front of predefined characters
$_POST[]
addslashes()
+= or -= or *= or /=
list()
30. Use ______ when a variable contains any amount of variables; in general.
double quotes
unset()
curly braces; ${$total}
error_reporting (E_ALL)
31. standard notation
array_merge()
urlencode()
true
decimal
32. The array that stores variables specific to a user's visit
addslashes()
$_SESSION[]
arsort()
mysql_fetch_array()
33. To include files - _______ will give errors and _________ will terminate execution().
sql
include() and require()
ceil()
!= inequality
34. function Function used to create a random number
$var++ and $var
general
rand()
count()
35. When used the value can be passed safely through the URL (GET).
drop
isset()
chop()
urlencode()
36. Creates a pointer to a file with the declared mode (read - write -etc.).
shuffle()
fopen()
Error
HTTP
37. The seven main error reporting constants are: E_NOTICE - E_WARNING - E_PARSE - E_ERROR - E_ALL - _____ - E_DEPRECATED
Constant
strtok()
E_STRICT
empty()
38. Function can you use to format a number with commas
count()
nl2br()
abs()
number_format()
39. Returns a string with backslashes in front of the specified characters
AJAX
addcslashes()
define()
SGML
40. The four main error types are:Notice - Warning - ________ and Error.
GET
Parse error
function
int
41. identity
===
true
error_reporting (E_ALL & -E_NOTICE)
predefined
42. The order of operations.
integer
precedence
DTD
chop()
43. Converts a string of ASCII characters to hexadecimal values
$varname[key]
float
bin2hex()
if/elseif/else and switch statements
44. Function used to convert new lines in a variable from a form to <br /> tags so that the data can be formatted correctly.
underscores
substr_count()
control structure
nl2br()
45. The concatenation assignment operator?
open source
.=
str_word_count()
Magic Constant
46. _______ is a comparison operator
Notice
Warning
!= inequality
round() Function
47. Use ________ to have multiple quotations in one string
integer
the escape character ''
htmlentities()
str_word_count()
48. To word wrap after a certain amount of characters.
wordwrap()
0
mysql_fetch_object()
Array
49. Used to replace a substring with another string - it is not case-sensitive.
nl2br()
ini_set ('display_errors', 1)
the period; .
str_ireplace()
50. used to round numeric values.
abs()
round() Function
strlen()
.=