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 refer to an element in a multidimensional array list the indices in order of _____ to more precise;
str_word_count()
>>
general
underscores
2. any programing language where the user must support the language the script is written in
client-side programing
string
preg_match()
control structure
3. The seven main SQL (structured query language) functions are alter - create - delete - _______ - insert - select - update
sql
asort()
HTTP
drop
4. Used to convert all HTML tags into their entity versions.
arsort()
sql
htmlentities()
curly braces
5. equivalence
$array[] = item
integer
statement
==
6. This error arises from misusing a function.
array_merge()
Warning
control structure
&
7. collection of binary data
$array[] = item
statement
Constant
string
8. The output of var_export((float)array(0));
1
for ($i = 0; $i < count($array); $i++) {statement(s);}
$_REQUEST
superglobal
9. Creates a pointer to a file with the declared mode (read - write -etc.).
fopen()
substr_count()
+
$array[] = item
10. Tag to begin a php script
str_word_count()
urlencode()
error_reporting (E_ALL | E_STRICT)
<?php
11. Predefined constants such as __LINE__ or __FILE__ or __FUNCTION__ or __CLASS__ and __METHOD__
wordwrap()
Magic Constant
single quotes
float
12. Function used to convert new lines in a variable from a form to <br /> tags so that the data can be formatted correctly.
+
error_reporting (E_ALL & -E_NOTICE)
AJAX
nl2br()
13. Returns a string with backslashes in front of the specified characters
addcslashes()
asort()
echo
&
14. Search Engine Optimization
SEO
+
string
error_reporting (E_ALL)
15. Used to find the length of a string
===
sort()
index
strlen()
16. addition
error_reporting (E_ALL)
$_SESSION[]
+
preg_match()
17. To refer to an item in an array
error_reporting (E_ALL | E_STRICT)
$varname[key]
double quotes
htmlspecialchars()
18. To get time data
loops
chr()
statement
date()
19. Returns a character from a specified ASCII value
chr()
floor()
Constant
define()
20. A conditional or loop is a ________________.
single quotes
0
error_reporting (0)
control structure
21. says 'if' this then do this 'else' do this or 'while' this do this
statement
POST
fopen()
1
22. The name of the #! used to designate the location of the PHP binary
Shebang
integer
+
crypt()
23. Use ______ for search engines or catalogued pages or pages that would be bookmarked.
arsort()
Magic Constant
GET
client-side programing
24. any programing language where the script is parsed on the server
associative array
server-side programing
define()
variable
25. Function used to round down to the lowest integer
floor()
count()
string
str_ireplace()
26. To close a connection between a database
mysql_close($dbc)
HTTP
^
error_reporting (E_ALL & -E_NOTICE)
27. Function used to round up to the highest integer
ceil()
SEO
statement
AJAX
28. Variable names can begin with __________
underscores
mysql_close($dbc)
numbers
DTD
29. The prefix for a dynamic variable - also known as a variable variable
round() Function
$$
abs()
string
30. standard notation
array_merge()
XML
decimal
index
31. function Function used to create a random number
abs()
statement
rand()
shuffle()
32. used to round numeric values.
str_word_count()
POST
urlencode()
round() Function
33. a storage location in the computer's memory that has a type & a name and a contents
GET
variable
Shebang
addcslashes()
34. The concatenation operator?
shuffle()
Array
foreach
the period; .
35. $_SERVER - $_POST - $_GET - $_COOKIE - $_SESSION - $_ENV; special arrays.
superglobal
DTD
array_merge()
ksort()
36. An array whose keys are numbers.
>>
arsort()
open source
indexed array
37. Used to convert certain HTML tags into their entity versions.
htmlspecialchars()
the period; .
Hex
sql
38. returns the number of matches found by a given search string under this format...
html_entity_decode()
preg_match()
$_REQUEST
E_STRICT
39. bitwise XOR
^
Object
sql
function error_reporting()
40. This will not show error reporting - it will be turned off.
loops
curly braces; ${$total}
error_reporting (0)
$_SESSION[]
41. The order of operations.
precedence
the dollar sign $
integer
index
42. signed integer
sql
nl2br()
int
array()
43. Similar to mysql_fetch_array() - but cannot be accessed by integer offset
single quotes
not
XML
mysql_fetch_object()
44. Tag to end a php script
?>
Hex
SEO
sort()
45. Used to check if a variable has a valid numerical value; strings with numerical values pass.
is_numeric()
switch
foreach loop
null
46. All variables must begin with _________.
the dollar sign $
double quotes
Parse error
$$
47. To word wrap after a certain amount of characters.
array()
chr()
Shebang
wordwrap()
48. Function used to find the absolute value of a number or numeric variable
float
open source
abs()
0
49. To iterate over the values of an array
for ($i = 0; $i < count($array); $i++) {statement(s);}
sort()
Constant
===
50. identity
error_reporting (E_ALL)
===
$_SESSION[]
loops