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.
Warning
superglobal
define()
foreach loop
2. The seven main error reporting constants are: E_NOTICE - E_WARNING - E_PARSE - E_ERROR - E_ALL - _____ - E_DEPRECATED
the escape character ''
E_STRICT
strtok()
$$
3. To append elements to an array - this will assign item to the next available index; associative arrays get messy.
boolean
POST
<<
$array[] = item
4. To get time data
date()
boolean
is_numeric()
trim()
5. EXtensible Markup Language
0
XML
statement
nl2br()
6. _________ can be used in conditional statements to set precedence
empty()
parentheses
function error_reporting()
integer
7. To check if a constant is already declared
defined()
html_entity_decode()
getrandmax()
switch
8. To merge arrays
array_merge()
html_entity_decode()
E_STRICT
open source
9. Used to encrypt values - it is a one-way encryption method
$_SESSION[]
crypt()
variable
array()
10. Hypertext Preprocessor - a server-side programing language used to create webpages
associative array
Constant
nl2br()
PHP
11. The four main error types are:Notice - Warning - ________ and Error.
fopen()
negative numbers
addslashes()
Parse error
12. The concatenation assignment operator?
the dollar sign $
Object
count()
.=
13. To sort values of an array in reversed order
define()
rsort()
Hex
html_entity_decode()
14. Used to convert all HTML tags into their entity versions.
client-side programing
array_merge()
htmlentities()
reassign
15. Returns a string with backslashes in front of predefined characters
addslashes()
function error_reporting()
double quotes
Object
16. To create an array
switch
Parse error
array()
Hex
17. Function used to round up to the highest integer
ceil()
SEO
preg_match()
underscores
18. Online applications and resources which are available to the general public with very few restrictions
open source
error_reporting (0)
Array
true
19. To find how many substrings are in a string
Shebang
arsort()
empty()
substr_count()
20. returns the number of matches found by a given search string under this format...
isset()
preg_match()
the escape character ''
htmlspecialchars()
21. To close a connection between a database
0
Error
mysql_close($dbc)
$varname[key]
22. Alias of rtrim()
chop()
<?php
decimal
sort()
23. The output of var_export((float)array(0));
1
addcslashes()
mysql
arsort()
24. a positive or negative number
integer
the period; .
decimal
ksort()
25. does a certain action when called upon
mysql
preg_replace()
function
DTD
26. Document Type Definitions
$dbc = mysql_connect(hostname, username, password)
DTD
asort()
int
27. a language in which to make querys to a database with
error_reporting (0)
arsort()
sql
$_POST[]
28. The syntax for connecting to a database
arsort()
?>
$dbc = mysql_connect(hostname, username, password)
htmlspecialchars()
29. Used to find the length of a string
count()
negative numbers
array
strlen()
30. Active Server Pages
wordwrap()
if/elseif/else and switch statements
POST
ASP
31. Control structures that break exit
GET
numbers
if/elseif/else and switch statements
superglobal
32. TRUE or FALSE
echo
XOR
string
boolean
33. To get over quotation marks while using arrays
chr()
!= inequality
curly braces
error_reporting (E_ALL)
34. To iterate over the keys and values of an array
sort()
superglobal
array()
foreach loop
35. collection of binary data
mysql_fetch_array()
boolean
curly braces; ${$total}
string
36. When used the value can be passed safely through the URL (GET).
str_word_count()
switch
trim()
urlencode()
37. 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 __________.
date()
list()
curly braces; ${$total}
+= or -= or *= or /=
38. signed integer
defined()
loops
int
reassign
39. To include files - _______ will give errors and _________ will terminate execution().
$$
include() and require()
ASP
chop()
40. bitwise AND
Magic Constant
<<
&
int
41. a line of information that can be stored in a variable or used in a function or statement
addcslashes()
string
boolean
numbers
42. Function used to convert new lines in a variable from a form to <br /> tags so that the data can be formatted correctly.
addcslashes()
rsort()
precedence
nl2br()
43. Returns a character from a specified ASCII value
drop
statement
chr()
$array[] = item
44. This error refers to a variable with no value.
Notice
true
array_merge()
curly braces
45. Search Engine Optimization
SEO
array()
date()
error_reporting (E_ALL & -E_NOTICE)
46. _____ is a logical operator
Constant
POST
XOR
client-side programing
47. equivalence
Parse error
==
Warning
is_numeric()
48. Similar to mysql_fetch_array() - but cannot be accessed by integer offset
mysql_fetch_object()
strtok()
Shebang
Parse error
49. This will show all error reporting except for notice errors.
array()
error_reporting (E_ALL & -E_NOTICE)
number_format()
control structure
50. standard notation
decimal
Array
<<
foreach