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 word wrap after a certain amount of characters.
Error
$varname[key]
wordwrap()
preg_split()
2. An array of variables passed in the URL
define()
POST
true
$_GET[]
3. When used the value can be passed safely through the URL (GET).
urlencode()
^
Notice
SGML
4. Returns a string with backslashes in front of predefined characters
chop()
0
array_merge()
addslashes()
5. To refer to an item in an array
$varname[key]
Hex
chr()
superglobal
6. The concatenation assignment operator?
.=
?>
SEO
defined()
7. Asynchronous Javascript And XML
superglobal
error_reporting (E_ALL & -E_NOTICE)
AJAX
SGML
8. Use ________ to have multiple quotations in one string
ini_set ('display_errors', 1)
SEO
the escape character ''
not
9. Used to encrypt values - it is a one-way encryption method
include() and require()
crypt()
foreach loop
for ($i = 0; $i < count($array); $i++) {statement(s);}
10. The concatenation operator?
the period; .
Object
error_reporting (0)
array()
11. To iterate over the values of an array
+
number_format()
for ($i = 0; $i < count($array); $i++) {statement(s);}
POST
12. This error arises from misusing a function.
mysql_fetch_object()
unset()
sql
Warning
13. Tag to end a php script
htmlspecialchars()
addslashes()
XOR
?>
14. ___________ can be used with substr() to count backward
shuffle()
$array[] = item
SGML
negative numbers
15. Alias of rtrim()
open source
function
chop()
boolean
16. bitwise XOR
strip_tags()
^
include() and require()
==
17. Operators used to operate and assign
asort()
PHP
Notice
+= or -= or *= or /=
18. signed integer
addcslashes()
float
sort()
int
19. To sort values of an array in reversed order
decimal
rsort()
GET
error_reporting (0)
20. any programing language where the script is parsed on the server
wordwrap()
server-side programing
number_format()
ceil()
21. either hasn't yet been set or is assigned NULL value
predefined
sql
mysql_fetch_object()
null
22. Control structures that break exit
if/elseif/else and switch statements
sql
POST
error_reporting (0)
23. Used to remove any white space - spaces or newlines or tabs - from the beginning and end of a string - not the middle.
+
the escape character ''
trim()
array_merge()
24. a positive or negative number
underscores
array_merge()
mysql_fetch_object()
integer
25. Used to convert all HTML tags into their entity versions.
for ($i = 0; $i < count($array); $i++) {statement(s);}
htmlentities()
>>
wordwrap()
26. Leading 0x: 0x13F or 0xA23
$array[] = item
$dbc = mysql_connect(hostname, username, password)
$_GET[]
Hex
27. says 'if' this then do this 'else' do this or 'while' this do this
$array[] = item
error_reporting (E_ALL & -E_NOTICE)
statement
superglobal
28. Variable names can begin with __________
underscores
null
htmlentities()
$_GET[]
29. Used to find the amount of words in a string.
asort()
str_word_count()
integer
is_numeric()
30. Shorthand used to increment and decrement
array()
$_REQUEST
$var++ and $var
include() and require()
31. Control structure that continue exit - they perform specific statements for a determined number of iterations.
function
loops
Shebang
$var++ and $var
32. Used to check if a variable has any value (including 0 or FALSE or an empty string).
isset()
Shebang
Array
shuffle()
33. Function used to find the absolute value of a number or numeric variable
Hex
==
rand()
abs()
34. Converts a string of ASCII characters to hexadecimal values
bin2hex()
POST
ceil()
preg_match()
35. Used to check if a variable has a valid numerical value; strings with numerical values pass.
mysql
abs()
Magic Constant
is_numeric()
36. Active Server Pages
HTTP
predefined
predefined
ASP
37. To delete a variable or an element of an array
SEO
precedence
unset()
int
38. The four main error types are:Notice - Warning - ________ and Error.
parentheses
^
Parse error
curly braces
39. Used to create a substring (referred to as a token) from a larger string
empty()
function
<<
strtok()
40. ____ or key is referred to for a value within an array.
array_merge()
Notice
index
rsort()
41. a storage location in the computer's memory that has a type & a name and a contents
date()
mysql_close($dbc)
variable
<<
42. Define(NAME,value)
array_merge()
$array[] = item
Constant
indexed array
43. Function used to round up to the highest integer
ceil()
!= inequality
urlencode()
arsort()
44. Returns a string with backslashes in front of the specified characters
array()
addcslashes()
nl2br()
negative numbers
45. To get time data
define()
date()
count()
curly braces; ${$total}
46. Function that contains the highest value that rand() can have randomly
error_reporting (0)
Shebang
string
getrandmax()
47. PHP has two conditional: if and ______.
$array[] = item
switch
error_reporting (E_ALL)
round() Function
48. To check if a constant is already declared
boolean
defined()
echo
wordwrap()
49. To iterate over the keys and values of an array
is_numeric()
arsort()
foreach loop
nl2br()
50. To create an array
array()
htmlentities()
null
>>