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 item in an array
curly braces; ${$total}
isset()
Array
$varname[key]
2. any programing language where the script is parsed on the server
server-side programing
count()
Hex
addslashes()
3. a storage location in the computer's memory that has a type & a name and a contents
indexed array
variable
Array
mysql_fetch_object()
4. To counter htmlentities()
associative array
decimal
DTD
html_entity_decode()
5. Used to check if a given variable has an "empty" value - no value or 0 or FALSE.
SGML
<?php
empty()
abs()
6. Variable names can begin with __________
control structure
isset()
double quotes
underscores
7. allows you to split strings based on more complex rules
==
sort()
rsort()
preg_split()
8. Control structures that break exit
list()
rsort()
if/elseif/else and switch statements
nl2br()
9. All variables must begin with _________.
echo
the dollar sign $
ASP
string
10. container of both data and code
Error
count()
===
Object
11. To word wrap after a certain amount of characters.
mysql
mysql_fetch_object()
wordwrap()
string
12. To reset an array _______ the array() function to the array
PHP
reassign
Notice
double quotes
13. Used to encrypt values - it is a one-way encryption method
null
error_reporting (E_ALL | E_STRICT)
crypt()
rsort()
14. To assign array element values to individual variables
$_REQUEST
list()
array()
POST
15. Operators used to operate and assign
===
associative array
round() Function
+= or -= or *= or /=
16. The order of operations.
loops
foreach loop
precedence
rand()
17. used to round numeric values.
+
round() Function
sort()
drop
18. any programing language where the user must support the language the script is written in
decimal
client-side programing
chop()
wordwrap()
19. To find how many substrings are in a string
double quotes
abs()
substr_count()
SGML
20. PHP has two conditional: if and ______.
switch
html_entity_decode()
define()
variable
21. An array whose keys are numbers.
indexed array
Parse error
str_ireplace()
wordwrap()
22. Control structure that continue exit - they perform specific statements for a determined number of iterations.
+= or -= or *= or /=
decimal
curly braces
loops
23. Search Engine Optimization
the dollar sign $
SEO
$array[] = item
fopen()
24. Uses two arguments: constant name and constant definition
predefined variable
define()
Hex
boolean
25. print $_SERVER will _____ work if you use the print function on arrays.
asort()
not
1
E_STRICT
26. This will show all error reporting except for notice errors.
function error_reporting()
$_GET[]
error_reporting (E_ALL & -E_NOTICE)
predefined variable
27. Returns an array that corresponds to the fetched row of MySQL data and moves the internal data pointer ahead
mysql_fetch_array()
.=
===
$dbc = mysql_connect(hostname, username, password)
28. Hyper Text Markup Language
server-side programing
HTML
string
foreach
29. A conditional or loop is a ________________.
predefined
addslashes()
int
control structure
30. Tag to end a php script
mysql_close($dbc)
$_POST[]
wordwrap()
?>
31. Used to find the amount of words in a string.
fopen()
$var++ and $var
str_word_count()
error_reporting (E_ALL & -E_NOTICE)
32. This error refers to a variable with no value.
is_numeric()
the dollar sign $
bin2hex()
Notice
33. To determine the amount of elements in an array
count()
if/elseif/else and switch statements
precedence
addcslashes()
34. Use ________ to have multiple quotations in one string
Hex
!= inequality
the escape character ''
predefined
35. EXtensible Markup Language
error_reporting (0)
decimal
XML
===
36. The output of var_export((float)array(0));
the escape character ''
preg_split()
1
unset()
37. bitwise right shift
>>
strlen()
PHP
string
38. The prefix for a dynamic variable - also known as a variable variable
<<
$$
function error_reporting()
shuffle()
39. Document Type Definitions
associative array
DTD
include() and require()
server-side programing
40. When used the value can be passed safely through the URL (GET).
urlencode()
precedence
the dollar sign $
GET
41. To refer to an element in a multidimensional array list the indices in order of _____ to more precise;
str_word_count()
Parse error
general
count()
42. Returns a string with backslashes in front of predefined characters
substr_count()
int
addslashes()
XML
43. Function used to find the absolute value of a number or numeric variable
abs()
float
unset()
date()
44. bitwise left shift
<<
sql
+= or -= or *= or /=
fopen()
45. A data structure that can hold a number of items of data of the same type eg. a list of names
boolean
+= or -= or *= or /=
array
octal
46. The output of var_export((float)array());
string
nl2br()
single quotes
0
47. An array of variables passed in the URL
strlen()
predefined
$_REQUEST
$_GET[]
48. identity
abs()
Parse error
===
==
49. The ouput of var_export((bool)"NULL");
variable
WYSIWYG
$array[] = item
true
50. addition
+
string
reassign
integer