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 language in which to make querys to a database with
sql
$_GET[]
control structure
crypt()
2. Creates a pointer to a file with the declared mode (read - write -etc.).
associative array
fopen()
SEO
client-side programing
3. used to round numeric values.
asort()
round() Function
strtok()
Array
4. $_POST and $_GET are ________ variables.
error_reporting (E_ALL & -E_NOTICE)
preg_replace()
predefined
Shebang
5. The three types of loops in PHP are: for - while - ____.
foreach
ceil()
strip_tags()
HTML
6. Used to encrypt values - it is a one-way encryption method
urlencode()
mysql_fetch_object()
parentheses
crypt()
7. identity
general
str_ireplace()
unset()
===
8. To sort the values while maintaining the correlation between each value and its key - in reversed order
curly braces; ${$total}
decimal
function
arsort()
9. The concatenation assignment operator?
list()
htmlentities()
.=
curly braces; ${$total}
10. Used to replace a substring with another string - it is not case-sensitive.
round() Function
str_ireplace()
addcslashes()
XML
11. ____ or key is referred to for a value within an array.
strlen()
Parse error
urlencode()
index
12. The order of operations.
Warning
parentheses
precedence
Array
13. To append elements to an array - this will assign item to the next available index; associative arrays get messy.
Object
Error
$array[] = item
Parse error
14. The array that stores variables specific to a user's visit
&
not
array()
$_SESSION[]
15. To refer to an item in an array
array
precedence
$varname[key]
count()
16. To sort by the keys while maintaining the correlation between the key and its value
arsort()
date()
ksort()
empty()
17. Variable names can begin with __________
==
array()
str_word_count()
underscores
18. $_SERVER is a ________ variable.
true
Constant
trim()
predefined
19. To check if a constant is already declared
Parse error
defined()
define()
asort()
20. leading zero: 0100 or 0567
+
the escape character ''
octal
index
21. Tag to end a php script
htmlspecialchars()
double quotes
?>
PHP
22. The output of var_export((float)array(0));
control structure
server-side programing
$$
1
23. What You See Is What You Get
SEO
+= or -= or *= or /=
underscores
WYSIWYG
24. Uses two arguments: constant name and constant definition
define()
wordwrap()
0
control structure
25. To sort values of an array without regard to the keys
strtok()
$$
sort()
error_reporting (E_ALL | E_STRICT)
26. Online applications and resources which are available to the general public with very few restrictions
crypt()
open source
arsort()
statement
27. To word wrap after a certain amount of characters.
client-side programing
wordwrap()
open source
htmlspecialchars()
28. _______ is a comparison operator
octal
$varname[key]
error_reporting (E_ALL)
!= inequality
29. a line of information that can be stored in a variable or used in a function or statement
array()
array()
string
fopen()
30. This fatal error arises from memory allocation problem.
Error
number_format()
str_ireplace()
error_reporting (E_ALL & -E_NOTICE)
31. Variable names cannot begin with _______
indexed array
client-side programing
the escape character ''
numbers
32. returns the number of matches found by a given search string under this format...
Parse error
integer
preg_match()
chr()
33. Used to check if a variable has any value (including 0 or FALSE or an empty string).
isset()
$_POST[]
decimal
curly braces; ${$total}
34. The name of the #! used to designate the location of the PHP binary
number_format()
Shebang
XOR
for ($i = 0; $i < count($array); $i++) {statement(s);}
35. A conditional or loop is a ________________.
control structure
associative array
Constant
bin2hex()
36. standard notation
getrandmax()
decimal
single quotes
function error_reporting()
37. function Function used to create a random number
error_reporting (E_ALL)
superglobal
rand()
strtok()
38. Search Engine Optimization
empty()
Parse error
sort()
SEO
39. container of ordered data elements
Array
error_reporting (E_ALL)
string
sort()
40. the most basic function in PHP used to output information to the page
Parse error
Constant
echo
the dollar sign $
41. All variables must begin with _________.
numbers
the dollar sign $
<<
curly braces
42. Function that contains the highest value that rand() can have randomly
true
defined()
for ($i = 0; $i < count($array); $i++) {statement(s);}
getrandmax()
43. searches the subject for matches to a given pattern replaced with the given replacement text
drop
octal
mysql
preg_replace()
44. bitwise XOR
error_reporting (E_ALL | E_STRICT)
^
decimal
&
45. a database which is best supported by PHP
float
null
control structure
mysql
46. ___________ can be used with substr() to count backward
negative numbers
rand()
preg_match()
empty()
47. a type with two possible values: true and false
boolean
predefined
getrandmax()
curly braces
48. To include files - _______ will give errors and _________ will terminate execution().
$dbc = mysql_connect(hostname, username, password)
$_REQUEST
include() and require()
html_entity_decode()
49. Converts a string of ASCII characters to hexadecimal values
ksort()
bin2hex()
sql
^
50. Define(NAME,value)
Constant
foreach
htmlentities()
<?php