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. a storage location in the computer's memory that has a type & a name and a contents
variable
str_ireplace()
null
!= inequality
2. The seven main SQL (structured query language) functions are alter - create - delete - _______ - insert - select - update
float
indexed array
drop
function error_reporting()
3. Function used to round down to the lowest integer
bin2hex()
floor()
index
Shebang
4. An array of variables passed in the URL
str_ireplace()
!= inequality
Warning
$_GET[]
5. To sort values of an array in reversed order
shuffle()
echo
sort()
rsort()
6. Search Engine Optimization
htmlentities()
switch
substr_count()
SEO
7. The output of var_export((float)array());
Shebang
0
Magic Constant
POST
8. leading zero: 0100 or 0567
underscores
chr()
XOR
octal
9. $_SERVER is a ________ variable.
predefined
is_numeric()
ASP
ceil()
10. Creates a pointer to a file with the declared mode (read - write -etc.).
Error
Hex
curly braces; ${$total}
fopen()
11. 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 __________.
true
$$
array()
curly braces; ${$total}
12. The syntax for connecting to a database
WYSIWYG
$dbc = mysql_connect(hostname, username, password)
curly braces
empty()
13. To sort the values while maintaining the correlation between each value and its key
function error_reporting()
bin2hex()
boolean
asort()
14. Function can you use to format a number with commas
predefined
open source
rand()
number_format()
15. Alias of rtrim()
integer
rand()
chop()
>>
16. To sort by the keys while maintaining the correlation between the key and its value
function error_reporting()
crypt()
Shebang
ksort()
17. Function used to round up to the highest integer
precedence
+= or -= or *= or /=
?>
ceil()
18. Used to find the amount of words in a string.
HTML
error_reporting (E_ALL & -E_NOTICE)
curly braces
str_word_count()
19. Variable names can begin with __________
$varname[key]
underscores
integer
is_numeric()
20. print $_SERVER will _____ work if you use the print function on arrays.
drop
curly braces
list()
not
21. Used to encrypt values - it is a one-way encryption method
crypt()
preg_replace()
ksort()
<<
22. Function that contains the highest value that rand() can have randomly
WYSIWYG
mysql_fetch_object()
getrandmax()
>>
23. To assign array element values to individual variables
predefined variable
list()
wordwrap()
sort()
24. The prefix for a dynamic variable - also known as a variable variable
HTTP
string
$$
Error
25. An array whose keys are strings; also known as a hash.
integer
asort()
associative array
addslashes()
26. When used the value can be passed safely through the URL (GET).
associative array
$$
urlencode()
curly braces
27. This will show all error reporting.
foreach
associative array
error_reporting (E_ALL)
HTTP
28. Define(NAME,value)
Hex
$dbc = mysql_connect(hostname, username, password)
html_entity_decode()
Constant
29. 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.
boolean
string
error_reporting (E_ALL | E_STRICT)
mysql
30. bitwise AND
superglobal
Array
nl2br()
&
31. Tag to begin a php script
$$
<?php
switch
WYSIWYG
32. signed integer
$varname[key]
Error
int
predefined
33. To iterate over the values of an array
ini_set ('display_errors', 1)
for ($i = 0; $i < count($array); $i++) {statement(s);}
isset()
$_REQUEST
34. To word wrap after a certain amount of characters.
predefined
wordwrap()
XML
DTD
35. Document Type Definitions
Warning
DTD
POST
unset()
36. To iterate over the keys and values of an array
curly braces
boolean
negative numbers
foreach loop
37. The output of var_export((float)array(0));
XOR
1
not
list()
38. Use _______ for passwords or pages that would not be bookmarked or pages that require security.
POST
server-side programing
error_reporting (0)
SGML
39. Used to create a substring (referred to as a token) from a larger string
Notice
strtok()
define()
client-side programing
40. returns the number of matches found by a given search string under this format...
array()
+
strtok()
preg_match()
41. Uses two arguments: constant name and constant definition
mysql
define()
the period; .
number_format()
42. To reset an array _______ the array() function to the array
Warning
reassign
htmlspecialchars()
negative numbers
43. To determine the amount of elements in an array
boolean
Parse error
count()
strlen()
44. Hypertext Preprocessor - a server-side programing language used to create webpages
is_numeric()
str_ireplace()
PHP
strtok()
45. To sort the values while maintaining the correlation between each value and its key - in reversed order
arsort()
?>
function error_reporting()
numbers
46. To set up error reporting
decimal
fopen()
crypt()
function error_reporting()
47. What You See Is What You Get
GET
WYSIWYG
reassign
Hex
48. _________ can be used in conditional statements to set precedence
array_merge()
bin2hex()
asort()
parentheses
49. Used to find the length of a string
strlen()
date()
octal
index
50. To refer to an element in a multidimensional array list the indices in order of _____ to more precise;
$varname[key]
PHP
double quotes
general