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 length of a string
strlen()
htmlentities()
chop()
^
2. The three types of loops in PHP are: for - while - ____.
asort()
list()
ceil()
foreach
3. Use ______ for search engines or catalogued pages or pages that would be bookmarked.
mysql
GET
associative array
preg_split()
4. any programing language where the user must support the language the script is written in
nl2br()
function
number_format()
client-side programing
5. A conditional or loop is a ________________.
html_entity_decode()
control structure
.=
<<
6. To delete a variable or an element of an array
unset()
predefined
trim()
index
7. returns the number of matches found by a given search string under this format...
preg_match()
error_reporting (E_ALL | E_STRICT)
Shebang
drop
8. The seven main SQL (structured query language) functions are alter - create - delete - _______ - insert - select - update
preg_match()
urlencode()
include() and require()
drop
9. This will show all errors that fall under E_ALL or E_STRICT - the pipe | is used for 'or' so that errors that fall under either will be shown.
error_reporting (E_ALL | E_STRICT)
error_reporting (0)
$$
arsort()
10. ____ or key is referred to for a value within an array.
htmlspecialchars()
index
isset()
sql
11. To iterate over the values of an array
$_REQUEST
for ($i = 0; $i < count($array); $i++) {statement(s);}
$array[] = item
SEO
12. Active Server Pages
ASP
error_reporting (E_ALL & -E_NOTICE)
trim()
mysql
13. EXtensible Markup Language
$array[] = item
E_STRICT
XML
general
14. identity
===
variable
HTML
preg_replace()
15. _________ can be used in conditional statements to set precedence
$varname[key]
chr()
HTML
parentheses
16. signed floating-point value
error_reporting (E_ALL | E_STRICT)
superglobal
index
float
17. To create an array
array()
PHP
ceil()
error_reporting (E_ALL)
18. Online applications and resources which are available to the general public with very few restrictions
XML
open source
the escape character ''
$varname[key]
19. Tag to begin a php script
<?php
true
mysql_fetch_array()
boolean
20. To iterate over the keys and values of an array
===
foreach loop
list()
html_entity_decode()
21. When used the value can be passed safely through the URL (GET).
urlencode()
ini_set ('display_errors', 1)
Parse error
E_STRICT
22. To sort values of an array in reversed order
strlen()
&
rsort()
define()
23. The concatenation assignment operator?
index
.=
XML
function error_reporting()
24. To word wrap after a certain amount of characters.
wordwrap()
addcslashes()
asort()
^
25. To get time data
list()
abs()
date()
html_entity_decode()
26. To sort the values while maintaining the correlation between each value and its key - in reversed order
control structure
underscores
boolean
arsort()
27. a line of information that can be stored in a variable or used in a function or statement
Array
string
error_reporting (E_ALL | E_STRICT)
HTTP
28. Control structure that continue exit - they perform specific statements for a determined number of iterations.
>>
loops
GET
sort()
29. a type with two possible values: true and false
error_reporting (E_ALL)
count()
boolean
$$
30. $_POST and $_GET are ________ variables.
drop
defined()
HTTP
predefined
31. Used to encrypt values - it is a one-way encryption method
fopen()
crypt()
WYSIWYG
precedence
32. The syntax for connecting to a database
$_GET[]
sql
$varname[key]
$dbc = mysql_connect(hostname, username, password)
33. This will show all error reporting except for notice errors.
nl2br()
+= or -= or *= or /=
error_reporting (E_ALL & -E_NOTICE)
htmlspecialchars()
34. The order of operations.
drop
$_POST[]
the dollar sign $
precedence
35. Returns a character from a specified ASCII value
chr()
indexed array
strlen()
list()
36. To sort by the keys while maintaining the correlation between the key and its value
Warning
ksort()
>>
mysql
37. Used to display errors in a particular script - should be placed at top of script.
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
38. Used to check if a variable has any value (including 0 or FALSE or an empty string).
isset()
variable
mysql
list()
39. Used to check if a variable has a valid numerical value; strings with numerical values pass.
curly braces; ${$total}
is_numeric()
count()
predefined
40. bitwise right shift
>>
single quotes
control structure
round() Function
41. $_SERVER is a ________ variable.
predefined
getrandmax()
str_ireplace()
server-side programing
42. The array that stores variables specific to a user's visit
$_SESSION[]
Object
shuffle()
^
43. Function used to round down to the lowest integer
floor()
single quotes
Shebang
indexed array
44. Standard Generalized Markup Language
SGML
reassign
array()
open source
45. standard notation
chop()
decimal
control structure
substr_count()
46. The prefix for a dynamic variable - also known as a variable variable
octal
count()
$$
if/elseif/else and switch statements
47. Besides GET and POST ________ can be used to access data but $_POST and $_GET are more precise and therefore preferable.
is_numeric()
$_REQUEST
predefined variable
reassign
48. Hyper Text Transfer Protocol
!= inequality
HTTP
the dollar sign $
addcslashes()
49. This error arises from misusing a function.
Warning
strip_tags()
?>
array()
50. To assign array element values to individual variables
decimal
WYSIWYG
array_merge()
list()