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. Used to find the amount of words in a string.
str_word_count()
associative array
isset()
strip_tags()
2. a line of information that can be stored in a variable or used in a function or statement
drop
error_reporting (E_ALL & -E_NOTICE)
string
Parse error
3. To word wrap after a certain amount of characters.
number_format()
GET
wordwrap()
define()
4. Used to convert certain HTML tags into their entity versions.
array
$array[] = item
htmlspecialchars()
GET
5. This error refers to a variable with no value.
ksort()
Notice
===
mysql
6. function Function used to create a random number
XOR
<<
string
rand()
7. Hyper Text Transfer Protocol
preg_match()
function error_reporting()
HTTP
for ($i = 0; $i < count($array); $i++) {statement(s);}
8. Define(NAME,value)
decimal
Constant
WYSIWYG
asort()
9. _______ is a comparison operator
!= inequality
HTTP
underscores
DTD
10. Use ________ to have multiple quotations in one string
empty()
the escape character ''
?>
int
11. standard notation
function
SEO
decimal
boolean
12. To set up error reporting
function
parentheses
function error_reporting()
define()
13. a storage location in the computer's memory that has a type & a name and a contents
variable
list()
?>
error_reporting (E_ALL | E_STRICT)
14. To sort the values while maintaining the correlation between each value and its key - in reversed order
arsort()
the escape character ''
array_merge()
htmlspecialchars()
15. To delete a variable or an element of an array
rsort()
control structure
crypt()
unset()
16. Used to remove any white space - spaces or newlines or tabs - from the beginning and end of a string - not the middle.
integer
trim()
html_entity_decode()
crypt()
17. searches the subject for matches to a given pattern replaced with the given replacement text
preg_replace()
Object
>>
trim()
18. To determine the amount of elements in an array
count()
array_merge()
float
addcslashes()
19. Converts a string of ASCII characters to hexadecimal values
bin2hex()
str_ireplace()
echo
str_word_count()
20. To close a connection between a database
index
mysql_fetch_array()
decimal
mysql_close($dbc)
21. The syntax for connecting to a database
switch
$dbc = mysql_connect(hostname, username, password)
htmlspecialchars()
control structure
22. Function used to find the absolute value of a number or numeric variable
abs()
addslashes()
single quotes
crypt()
23. says 'if' this then do this 'else' do this or 'while' this do this
GET
error_reporting (E_ALL | E_STRICT)
statement
int
24. Uses two arguments: constant name and constant definition
define()
Hex
1
error_reporting (E_ALL)
25. PHP has two conditional: if and ______.
switch
the escape character ''
$_GET[]
curly braces
26. collection of binary data
Object
Error
string
curly braces; ${$total}
27. a language in which to make querys to a database with
loops
html_entity_decode()
integer
sql
28. This will not show error reporting - it will be turned off.
empty()
control structure
error_reporting (0)
nl2br()
29. Used to convert all HTML tags into their entity versions.
drop
htmlentities()
decimal
substr_count()
30. TRUE or FALSE
define()
boolean
error_reporting (E_ALL | E_STRICT)
strip_tags()
31. bitwise right shift
boolean
floor()
>>
string
32. Function used to round up to the highest integer
boolean
decimal
the dollar sign $
ceil()
33. signed floating-point value
float
$_REQUEST
octal
$array[] = item
34. To iterate over the values of an array
addcslashes()
for ($i = 0; $i < count($array); $i++) {statement(s);}
error_reporting (E_ALL | E_STRICT)
.=
35. The ouput of var_export((bool)"NULL");
error_reporting (E_ALL & -E_NOTICE)
loops
true
htmlspecialchars()
36. The three types of loops in PHP are: for - while - ____.
superglobal
numbers
foreach
Warning
37. Use _______ for passwords or pages that would not be bookmarked or pages that require security.
boolean
POST
addslashes()
HTTP
38. Function can you use to format a number with commas
number_format()
numbers
$varname[key]
substr_count()
39. This error arises from misusing a function.
Warning
ini_set ('display_errors', 1)
date()
for ($i = 0; $i < count($array); $i++) {statement(s);}
40. bitwise AND
loops
strlen()
&
===
41. Hyper Text Markup Language
HTML
DTD
preg_split()
<?php
42. Returns a string with backslashes in front of predefined characters
.=
string
negative numbers
addslashes()
43. $_SERVER - $_POST - $_GET - $_COOKIE - $_SESSION - $_ENV; special arrays.
===
superglobal
underscores
DTD
44. Used to replace a substring with another string - it is not case-sensitive.
Shebang
str_ireplace()
$var++ and $var
numbers
45. _________ can be used in conditional statements to set precedence
parentheses
loops
boolean
SEO
46. The seven main error reporting constants are: E_NOTICE - E_WARNING - E_PARSE - E_ERROR - E_ALL - _____ - E_DEPRECATED
E_STRICT
the escape character ''
POST
mysql
47. Control structure that continue exit - they perform specific statements for a determined number of iterations.
ini_set ('display_errors', 1)
<<
error_reporting (0)
loops
48. any programing language where the script is parsed on the server
wordwrap()
$_SESSION[]
server-side programing
superglobal
49. ___________ can be used with substr() to count backward
parentheses
integer
DTD
negative numbers
50. To refer to an element in a multidimensional array list the indices in order of _____ to more precise;
general
Hex
include() and require()
error_reporting (E_ALL)