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. Creates a pointer to a file with the declared mode (read - write -etc.).
fopen()
$_SESSION[]
superglobal
mysql
2. does a certain action when called upon
strlen()
POST
general
function
3. An array of variables passed in the URL
$_GET[]
loops
the dollar sign $
drop
4. Used to remove any white space - spaces or newlines or tabs - from the beginning and end of a string - not the middle.
floor()
trim()
control structure
mysql_fetch_array()
5. a line of information that can be stored in a variable or used in a function or statement
strip_tags()
preg_match()
htmlentities()
string
6. Standard Generalized Markup Language
SGML
chop()
^
nl2br()
7. 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
8. To iterate over the keys and values of an array
floor()
predefined
error_reporting (0)
foreach loop
9. This error arises from misusing a function.
!= inequality
associative array
Warning
getrandmax()
10. Returns a string with backslashes in front of predefined characters
asort()
$array[] = item
1
addslashes()
11. The seven main SQL (structured query language) functions are alter - create - delete - _______ - insert - select - update
defined()
drop
XML
XOR
12. container of ordered data elements
mysql
Array
decimal
predefined
13. $_POST and $_GET are ________ variables.
general
error_reporting (E_ALL)
crypt()
predefined
14. either hasn't yet been set or is assigned NULL value
server-side programing
for ($i = 0; $i < count($array); $i++) {statement(s);}
Hex
null
15. To sort values of an array without regard to the keys
the dollar sign $
number_format()
.=
sort()
16. Use ______ when a variable contains any amount of variables; in general.
ASP
is_numeric()
double quotes
array()
17. Hypertext Preprocessor - a server-side programing language used to create webpages
fopen()
PHP
int
htmlspecialchars()
18. TRUE or FALSE
boolean
function error_reporting()
mysql_fetch_object()
substr_count()
19. allows you to split strings based on more complex rules
preg_split()
SGML
string
predefined
20. returns the number of matches found by a given search string under this format...
preg_match()
predefined variable
$var++ and $var
Array
21. To find how many substrings are in a string
arsort()
substr_count()
open source
single quotes
22. signed integer
define()
int
the dollar sign $
$_POST[]
23. $_SERVER - $_POST - $_GET - $_COOKIE - $_SESSION - $_ENV; special arrays.
string
superglobal
crypt()
Hex
24. Define(NAME,value)
str_ireplace()
Constant
sql
isset()
25. This error refers to a variable with no value.
Notice
$_REQUEST
function error_reporting()
int
26. The name of the #! used to designate the location of the PHP binary
Shebang
indexed array
sql
===
27. When used the value can be passed safely through the URL (GET).
urlencode()
error_reporting (0)
boolean
reassign
28. bitwise left shift
include() and require()
error_reporting (E_ALL | E_STRICT)
<<
$_REQUEST
29. Document Type Definitions
statement
str_word_count()
error_reporting (E_ALL)
DTD
30. This will show all error reporting except for notice errors.
sort()
for ($i = 0; $i < count($array); $i++) {statement(s);}
Shebang
error_reporting (E_ALL & -E_NOTICE)
31. To sort by the keys while maintaining the correlation between the key and its value
ksort()
defined()
strlen()
array()
32. To iterate over the values of an array
HTML
for ($i = 0; $i < count($array); $i++) {statement(s);}
foreach loop
date()
33. Variable names can begin with __________
string
underscores
sql
WYSIWYG
34. The four main error types are:Notice - Warning - ________ and Error.
wordwrap()
double quotes
Parse error
$var++ and $var
35. This will show all error reporting.
parentheses
error_reporting (E_ALL)
$_GET[]
decimal
36. The prefix for a dynamic variable - also known as a variable variable
htmlentities()
?>
int
$$
37. To sort the values while maintaining the correlation between each value and its key - in reversed order
===
arsort()
Constant
unset()
38. To reorganise the array randomly
htmlspecialchars()
shuffle()
PHP
$array[] = item
39. Hyper Text Transfer Protocol
HTTP
boolean
sort()
DTD
40. Used to convert all HTML tags into their entity versions.
?>
error_reporting (E_ALL | E_STRICT)
ASP
htmlentities()
41. The array that stores variables specific to a user's visit
$_SESSION[]
$dbc = mysql_connect(hostname, username, password)
$varname[key]
PHP
42. 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.
count()
htmlspecialchars()
sort()
error_reporting (E_ALL | E_STRICT)
43. Asynchronous Javascript And XML
Error
AJAX
echo
empty()
44. The three types of loops in PHP are: for - while - ____.
unset()
foreach
abs()
null
45. signed floating-point value
sql
Object
Notice
float
46. Function can you use to format a number with commas
$$
mysql
number_format()
wordwrap()
47. Function used to round down to the lowest integer
<?php
error_reporting (E_ALL | E_STRICT)
function error_reporting()
floor()
48. identity
Magic Constant
negative numbers
PHP
===
49. _______ is a comparison operator
statement
!= inequality
substr_count()
reassign
50. To include files - _______ will give errors and _________ will terminate execution().
include() and require()
mysql
ini_set ('display_errors', 1)
list()