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. 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
2. equivalence
trim()
$array[] = item
preg_replace()
==
3. Document Type Definitions
Notice
empty()
DTD
HTML
4. To merge arrays
variable
array_merge()
the escape character ''
decimal
5. bitwise AND
XML
list()
&
+
6. Function that contains the highest value that rand() can have randomly
parentheses
drop
getrandmax()
$_GET[]
7. This will show all error reporting.
error_reporting (E_ALL)
unset()
str_ireplace()
single quotes
8. Tag to begin a php script
POST
?>
mysql_fetch_array()
<?php
9. Creates a pointer to a file with the declared mode (read - write -etc.).
fopen()
function error_reporting()
Parse error
predefined
10. To include files - _______ will give errors and _________ will terminate execution().
E_STRICT
function error_reporting()
include() and require()
Array
11. To remove all HTML and PHP tags.
PHP
^
floor()
strip_tags()
12. Function used to convert new lines in a variable from a form to <br /> tags so that the data can be formatted correctly.
drop
the escape character ''
nl2br()
associative array
13. Active Server Pages
ASP
strip_tags()
Parse error
$_GET[]
14. The syntax for connecting to a database
switch
mysql_fetch_object()
$dbc = mysql_connect(hostname, username, password)
open source
15. To iterate over the values of an array
for ($i = 0; $i < count($array); $i++) {statement(s);}
XOR
open source
rsort()
16. Use _______ for passwords or pages that would not be bookmarked or pages that require security.
is_numeric()
urlencode()
POST
<<
17. a line of information that can be stored in a variable or used in a function or statement
curly braces
$dbc = mysql_connect(hostname, username, password)
^
string
18. Alias of rtrim()
chop()
for ($i = 0; $i < count($array); $i++) {statement(s);}
negative numbers
nl2br()
19. An array of variables passed with <input /> data
ksort()
urlencode()
$_POST[]
array
20. The order of operations.
array()
urlencode()
preg_replace()
precedence
21. 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 __________.
!= inequality
Error
curly braces; ${$total}
list()
22. Tag to end a php script
rsort()
?>
substr_count()
statement
23. _______ is a comparison operator
!= inequality
indexed array
htmlentities()
Constant
24. Online applications and resources which are available to the general public with very few restrictions
POST
error_reporting (E_ALL)
getrandmax()
open source
25. Use ______ when a variable contains any amount of variables; in general.
double quotes
trim()
str_word_count()
htmlentities()
26. $_POST and $_GET are ________ variables.
GET
array()
index
predefined
27. The array that stores variables specific to a user's visit
reassign
associative array
$_SESSION[]
preg_match()
28. Use ______ for search engines or catalogued pages or pages that would be bookmarked.
GET
$$
true
DTD
29. a language in which to make querys to a database with
sql
the period; .
SEO
?>
30. does a certain action when called upon
empty()
fopen()
XML
function
31. The seven main SQL (structured query language) functions are alter - create - delete - _______ - insert - select - update
drop
wordwrap()
str_word_count()
general
32. Control structures that break exit
XML
if/elseif/else and switch statements
Parse error
Hex
33. This error arises from misusing a function.
fopen()
the dollar sign $
&
Warning
34. To assign array element values to individual variables
unset()
+= or -= or *= or /=
list()
substr_count()
35. Hyper Text Transfer Protocol
list()
HTTP
$var++ and $var
GET
36. An array whose keys are strings; also known as a hash.
<?php
Constant
associative array
count()
37. Standard Generalized Markup Language
<?php
SGML
round() Function
array_merge()
38. The output of var_export((float)array());
reassign
preg_split()
0
rsort()
39. _____ is a logical operator
0
XOR
preg_replace()
ceil()
40. ____ or key is referred to for a value within an array.
statement
index
list()
POST
41. To sort the values while maintaining the correlation between each value and its key
the dollar sign $
floor()
nl2br()
asort()
42. ___________ can be used with substr() to count backward
sql
negative numbers
$_SESSION[]
strlen()
43. a positive or negative number
SGML
the period; .
integer
preg_replace()
44. Use ________ to have multiple quotations in one string
indexed array
Shebang
error_reporting (0)
the escape character ''
45. Control structure that continue exit - they perform specific statements for a determined number of iterations.
rand()
ksort()
loops
octal
46. Function used to round down to the lowest integer
floor()
unset()
HTTP
ini_set ('display_errors', 1)
47. bitwise XOR
^
XOR
POST
the period; .
48. This fatal error arises from memory allocation problem.
Array
error_reporting (0)
Error
$array[] = item
49. collection of binary data
string
PHP
function error_reporting()
predefined variable
50. What You See Is What You Get
strlen()
strtok()
WYSIWYG
string