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. Besides GET and POST ________ can be used to access data but $_POST and $_GET are more precise and therefore preferable.
string
$_REQUEST
str_word_count()
control structure
2. Search Engine Optimization
boolean
precedence
arsort()
SEO
3. Used to check if a variable has a valid numerical value; strings with numerical values pass.
is_numeric()
sort()
Shebang
html_entity_decode()
4. bitwise right shift
the escape character ''
>>
defined()
WYSIWYG
5. Function used to find the absolute value of a number or numeric variable
superglobal
$varname[key]
abs()
round() Function
6. Function used to round down to the lowest integer
list()
preg_replace()
general
floor()
7. To assign array element values to individual variables
predefined
decimal
list()
foreach loop
8. Function that contains the highest value that rand() can have randomly
Magic Constant
open source
getrandmax()
define()
9. A data structure that can hold a number of items of data of the same type eg. a list of names
superglobal
asort()
htmlentities()
array
10. Online applications and resources which are available to the general public with very few restrictions
not
addcslashes()
open source
addslashes()
11. Hypertext Preprocessor - a server-side programing language used to create webpages
PHP
define()
?>
numbers
12. Function can you use to format a number with commas
rand()
echo
number_format()
floor()
13. Document Type Definitions
underscores
DTD
error_reporting (E_ALL & -E_NOTICE)
$_GET[]
14. $_SERVER - $_POST - $_GET - $_COOKIE - $_SESSION - $_ENV; special arrays.
superglobal
float
client-side programing
E_STRICT
15. EXtensible Markup Language
XML
floor()
ksort()
sort()
16. signed floating-point value
foreach
float
&
if/elseif/else and switch statements
17. either hasn't yet been set or is assigned NULL value
server-side programing
AJAX
null
statement
18. Standard Generalized Markup Language
server-side programing
substr_count()
SGML
string
19. 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.
bin2hex()
$_SESSION[]
error_reporting (E_ALL | E_STRICT)
abs()
20. Tag to begin a php script
null
for ($i = 0; $i < count($array); $i++) {statement(s);}
preg_match()
<?php
21. To sort the values while maintaining the correlation between each value and its key - in reversed order
.=
asort()
arsort()
round() Function
22. returns the number of matches found by a given search string under this format...
0
predefined
sql
preg_match()
23. To determine the amount of elements in an array
$dbc = mysql_connect(hostname, username, password)
<<
count()
+
24. Returns a string with backslashes in front of the specified characters
not
addcslashes()
rsort()
htmlentities()
25. a language in which to make querys to a database with
crypt()
predefined variable
indexed array
sql
26. PHP has two conditional: if and ______.
server-side programing
switch
XOR
parentheses
27. any programing language where the script is parsed on the server
array
error_reporting (0)
drop
server-side programing
28. The syntax for connecting to a database
$dbc = mysql_connect(hostname, username, password)
strtok()
DTD
reassign
29. To refer to an element in a multidimensional array list the indices in order of _____ to more precise;
predefined
double quotes
ASP
general
30. ____ or key is referred to for a value within an array.
mysql
index
trim()
superglobal
31. collection of binary data
Magic Constant
decimal
string
chop()
32. The output of var_export((float)array());
predefined
0
sql
string
33. To get over quotation marks while using arrays
curly braces
if/elseif/else and switch statements
1
for ($i = 0; $i < count($array); $i++) {statement(s);}
34. When used the value can be passed safely through the URL (GET).
count()
urlencode()
mysql
SEO
35. Alias of rtrim()
array
ksort()
chop()
abs()
36. This will not show error reporting - it will be turned off.
E_STRICT
single quotes
error_reporting (0)
open source
37. To sort values of an array without regard to the keys
echo
sort()
htmlspecialchars()
Notice
38. Used to create a substring (referred to as a token) from a larger string
PHP
error_reporting (0)
strtok()
boolean
39. Used to remove any white space - spaces or newlines or tabs - from the beginning and end of a string - not the middle.
statement
unset()
mysql_fetch_array()
trim()
40. Define(NAME,value)
Constant
rand()
control structure
error_reporting (E_ALL & -E_NOTICE)
41. The three types of loops in PHP are: for - while - ____.
foreach
array
Error
date()
42. Use ______ when a variable contains any amount of variables; in general.
mysql_close($dbc)
double quotes
$array[] = item
precedence
43. a type with two possible values: true and false
E_STRICT
Object
SGML
boolean
44. To append elements to an array - this will assign item to the next available index; associative arrays get messy.
$array[] = item
DTD
superglobal
wordwrap()
45. $_POST and $_GET are ________ variables.
predefined
if/elseif/else and switch statements
reassign
E_STRICT
46. What You See Is What You Get
predefined
$varname[key]
WYSIWYG
general
47. Shorthand used to increment and decrement
POST
$var++ and $var
+
strtok()
48. does a certain action when called upon
abs()
function
isset()
open source
49. This fatal error arises from memory allocation problem.
Constant
function error_reporting()
Error
strip_tags()
50. To create an array
urlencode()
array()
string
DTD