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. $_SERVER is a ________ variable.
predefined
+
Hex
boolean
2. An array of variables passed with <input /> data
error_reporting (E_ALL & -E_NOTICE)
$array[] = item
$_POST[]
htmlentities()
3. This fatal error arises from memory allocation problem.
Error
boolean
array_merge()
indexed array
4. a line of information that can be stored in a variable or used in a function or statement
number_format()
Magic Constant
isset()
string
5. To iterate over the keys and values of an array
foreach loop
not
<<
is_numeric()
6. any programing language where the script is parsed on the server
server-side programing
$_SESSION[]
function error_reporting()
Constant
7. The order of operations.
XML
numbers
Magic Constant
precedence
8. used to round numeric values.
!= inequality
round() Function
===
<?php
9. 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
10. To find how many substrings are in a string
loops
<<
substr_count()
WYSIWYG
11. To append elements to an array - this will assign item to the next available index; associative arrays get messy.
include() and require()
$array[] = item
abs()
mysql_fetch_array()
12. The seven main SQL (structured query language) functions are alter - create - delete - _______ - insert - select - update
drop
===
if/elseif/else and switch statements
^
13. To get time data
date()
addcslashes()
variable
ASP
14. Function used to round up to the highest integer
statement
===
+
ceil()
15. the most basic function in PHP used to output information to the page
empty()
isset()
preg_match()
echo
16. All variables must begin with _________.
null
error_reporting (E_ALL | E_STRICT)
preg_replace()
the dollar sign $
17. An array whose keys are numbers.
array()
ASP
rsort()
indexed array
18. To reset an array _______ the array() function to the array
string
reassign
not
associative array
19. Used to remove any white space - spaces or newlines or tabs - from the beginning and end of a string - not the middle.
fopen()
trim()
client-side programing
is_numeric()
20. Tag to begin a php script
mysql
define()
<?php
curly braces
21. Predefined constants such as __LINE__ or __FILE__ or __FUNCTION__ or __CLASS__ and __METHOD__
reassign
$varname[key]
HTTP
Magic Constant
22. Used to convert all HTML tags into their entity versions.
XML
DTD
XOR
htmlentities()
23. 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 __________.
switch
curly braces; ${$total}
addcslashes()
HTTP
24. ____ or key is referred to for a value within an array.
PHP
variable
trim()
index
25. print $_SERVER will _____ work if you use the print function on arrays.
not
getrandmax()
function error_reporting()
predefined
26. Function used to round down to the lowest integer
unset()
predefined variable
floor()
Array
27. Active Server Pages
associative array
ASP
string
$_REQUEST
28. To refer to an element in a multidimensional array list the indices in order of _____ to more precise;
Error
general
Object
floor()
29. Creates a pointer to a file with the declared mode (read - write -etc.).
superglobal
fopen()
>>
shuffle()
30. Returns a string with backslashes in front of the specified characters
addcslashes()
XML
$_REQUEST
asort()
31. This will show all error reporting except for notice errors.
error_reporting (E_ALL & -E_NOTICE)
preg_split()
1
==
32. collection of binary data
boolean
superglobal
shuffle()
string
33. To sort by the keys while maintaining the correlation between the key and its value
array
ksort()
negative numbers
.=
34. Function used to convert new lines in a variable from a form to <br /> tags so that the data can be formatted correctly.
+= or -= or *= or /=
single quotes
nl2br()
?>
35. To word wrap after a certain amount of characters.
POST
wordwrap()
Hex
ini_set ('display_errors', 1)
36. Used to create a substring (referred to as a token) from a larger string
strtok()
empty()
Hex
XOR
37. The four main error types are:Notice - Warning - ________ and Error.
defined()
Parse error
POST
Error
38. Returns a character from a specified ASCII value
error_reporting (E_ALL & -E_NOTICE)
POST
defined()
chr()
39. Alias of rtrim()
string
list()
chop()
Warning
40. container of both data and code
trim()
Parse error
Object
Magic Constant
41. Besides GET and POST ________ can be used to access data but $_POST and $_GET are more precise and therefore preferable.
$_REQUEST
define()
Parse error
error_reporting (0)
42. equivalence
ASP
$var++ and $var
==
$_GET[]
43. identity
addslashes()
open source
getrandmax()
===
44. standard notation
decimal
the escape character ''
array
trim()
45. This will not show error reporting - it will be turned off.
$varname[key]
boolean
error_reporting (0)
isset()
46. Operators used to operate and assign
predefined
+= or -= or *= or /=
is_numeric()
PHP
47. To assign keys to the values in an array
asort()
addslashes()
float
array()
48. bitwise left shift
<<
HTML
chr()
POST
49. To delete a variable or an element of an array
ASP
predefined
array()
unset()
50. Used to check if a variable has any value (including 0 or FALSE or an empty string).
array()
Constant
isset()
<?php