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. Similar to mysql_fetch_array() - but cannot be accessed by integer offset
echo
sort()
mysql_fetch_object()
variable
2. Hypertext Preprocessor - a server-side programing language used to create webpages
Constant
PHP
mysql_close($dbc)
+= or -= or *= or /=
3. Function used to convert new lines in a variable from a form to <br /> tags so that the data can be formatted correctly.
nl2br()
preg_match()
empty()
decimal
4. When used the value can be passed safely through the URL (GET).
isset()
urlencode()
chr()
Object
5. Define(NAME,value)
crypt()
echo
error_reporting (0)
Constant
6. a language in which to make querys to a database with
0
mysql_close($dbc)
sql
^
7. This will show all error reporting except for notice errors.
loops
===
define()
error_reporting (E_ALL & -E_NOTICE)
8. An array of variables passed with <input /> data
function error_reporting()
double quotes
strip_tags()
$_POST[]
9. To create an array
int
$dbc = mysql_connect(hostname, username, password)
array()
floor()
10. a line of information that can be stored in a variable or used in a function or statement
trim()
string
integer
html_entity_decode()
11. Used to check if a variable has a valid numerical value; strings with numerical values pass.
single quotes
$varname[key]
is_numeric()
define()
12. Function that contains the highest value that rand() can have randomly
mysql
getrandmax()
sql
echo
13. Function used to round up to the highest integer
nl2br()
<<
ceil()
the period; .
14. This will not show error reporting - it will be turned off.
bin2hex()
error_reporting (0)
control structure
nl2br()
15. To get time data
date()
str_ireplace()
indexed array
echo
16. Use ______ when a variable contains any amount of variables; in general.
html_entity_decode()
the period; .
double quotes
underscores
17. To sort values of an array without regard to the keys
negative numbers
count()
sort()
define()
18. TRUE or FALSE
strtok()
boolean
$_GET[]
>>
19. To set up error reporting
function error_reporting()
$_POST[]
AJAX
array
20. Operators used to operate and assign
ceil()
+= or -= or *= or /=
round() Function
E_STRICT
21. Returns a character from a specified ASCII value
number_format()
array()
urlencode()
chr()
22. PHP has two conditional: if and ______.
urlencode()
array_merge()
switch
htmlentities()
23. container of both data and code
is_numeric()
list()
Object
define()
24. Used to convert certain HTML tags into their entity versions.
htmlspecialchars()
shuffle()
int
defined()
25. Function used to find the absolute value of a number or numeric variable
abs()
ksort()
str_word_count()
preg_match()
26. Used to find the amount of words in a string.
for ($i = 0; $i < count($array); $i++) {statement(s);}
statement
error_reporting (E_ALL)
str_word_count()
27. Use ______ when there are no variables in the string
single quotes
defined()
negative numbers
html_entity_decode()
28. This fatal fatal is caused by a semantic mistake: omission of a semicolon or imbalance of quotations or parentheses or braces.
Parse error
foreach
preg_split()
<?php
29. This error refers to a variable with no value.
+= or -= or *= or /=
define()
Notice
predefined
30. Hyper Text Transfer Protocol
POST
HTTP
date()
sort()
31. To delete a variable or an element of an array
SEO
fopen()
Magic Constant
unset()
32. To sort values of an array in reversed order
predefined
rsort()
boolean
strtok()
33. says 'if' this then do this 'else' do this or 'while' this do this
PHP
strip_tags()
predefined
statement
34. To assign keys to the values in an array
SEO
1
float
array()
35. Tag to end a php script
?>
htmlentities()
variable
single quotes
36. The prefix for a dynamic variable - also known as a variable variable
$$
htmlentities()
html_entity_decode()
Error
37. The order of operations.
isset()
precedence
open source
function
38. To include files - _______ will give errors and _________ will terminate execution().
&
predefined variable
include() and require()
fopen()
39. Function can you use to format a number with commas
number_format()
bin2hex()
loops
int
40. Used to display errors in a particular script - should be placed at top of script.
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
41. To assign array element values to individual variables
drop
round() Function
sql
list()
42. To check if a constant is already declared
defined()
getrandmax()
rsort()
statement
43. This will show all error reporting.
error_reporting (E_ALL)
chop()
superglobal
define()
44. Creates a pointer to a file with the declared mode (read - write -etc.).
<<
list()
variable
fopen()
45. container of ordered data elements
Array
Hex
negative numbers
ksort()
46. identity
!= inequality
numbers
empty()
===
47. any programing language where the script is parsed on the server
index
server-side programing
array
mysql_close($dbc)
48. print $_SERVER will _____ work if you use the print function on arrays.
not
mysql
htmlentities()
$var++ and $var
49. ____ or key is referred to for a value within an array.
&
index
PHP
str_word_count()
50. To reset an array _______ the array() function to the array
Parse error
boolean
reassign
error_reporting (0)