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. signed integer
client-side programing
Array
int
preg_match()
2. searches the subject for matches to a given pattern replaced with the given replacement text
preg_replace()
mysql
null
htmlspecialchars()
3. a storage location in the computer's memory that has a type & a name and a contents
Parse error
$_REQUEST
round() Function
variable
4. When used the value can be passed safely through the URL (GET).
Warning
predefined
is_numeric()
urlencode()
5. This fatal error arises from memory allocation problem.
<<
error_reporting (E_ALL)
Error
$varname[key]
6. Use ______ when there are no variables in the string
$array[] = item
single quotes
preg_split()
substr_count()
7. Variable names can begin with __________
date()
==
underscores
error_reporting (E_ALL | E_STRICT)
8. Hyper Text Markup Language
HTML
define()
strip_tags()
string
9. used to round numeric values.
round() Function
curly braces
ASP
associative array
10. An array of variables passed in the URL
$_GET[]
htmlspecialchars()
echo
Parse error
11. equivalence
&
ksort()
array
==
12. To declare a constant
define()
foreach loop
bin2hex()
urlencode()
13. $_POST Data sent using POST found is sent to _______
predefined variable
negative numbers
Parse error
str_ireplace()
14. To sort the values while maintaining the correlation between each value and its key - in reversed order
Constant
arsort()
foreach loop
list()
15. Used to remove any white space - spaces or newlines or tabs - from the beginning and end of a string - not the middle.
$varname[key]
getrandmax()
trim()
Notice
16. Used to find the amount of words in a string.
str_word_count()
float
server-side programing
SEO
17. The four main error types are:Notice - Warning - ________ and Error.
int
reassign
predefined
Parse error
18. To reset an array _______ the array() function to the array
predefined
unset()
reassign
general
19. _____ is a logical operator
client-side programing
XOR
GET
isset()
20. Used to check if a given variable has an "empty" value - no value or 0 or FALSE.
curly braces
empty()
Parse error
numbers
21. To get over quotation marks while using arrays
curly braces
reassign
html_entity_decode()
!= inequality
22. _______ is a comparison operator
>>
strlen()
addcslashes()
!= inequality
23. container of both data and code
integer
Object
general
Constant
24. The order of operations.
null
error_reporting (E_ALL | E_STRICT)
>>
precedence
25. Tag to end a php script
array_merge()
PHP
?>
loops
26. The concatenation operator?
the period; .
!= inequality
drop
strlen()
27. ___________ can be used with substr() to count backward
define()
decimal
negative numbers
null
28. The three types of loops in PHP are: for - while - ____.
getrandmax()
preg_match()
client-side programing
foreach
29. To delete a variable or an element of an array
Parse error
open source
PHP
unset()
30. either hasn't yet been set or is assigned NULL value
null
$_POST[]
drop
server-side programing
31. function Function used to create a random number
define()
the dollar sign $
echo
rand()
32. the most basic function in PHP used to output information to the page
htmlspecialchars()
echo
mysql_fetch_object()
int
33. Online applications and resources which are available to the general public with very few restrictions
shuffle()
defined()
Array
open source
34. any programing language where the script is parsed on the server
general
server-side programing
arsort()
urlencode()
35. To assign array element values to individual variables
list()
mysql_fetch_array()
array()
server-side programing
36. Hypertext Preprocessor - a server-side programing language used to create webpages
decimal
array()
floor()
PHP
37. identity
===
$$
if/elseif/else and switch statements
loops
38. The name of the #! used to designate the location of the PHP binary
Shebang
nl2br()
error_reporting (E_ALL & -E_NOTICE)
foreach loop
39. Besides GET and POST ________ can be used to access data but $_POST and $_GET are more precise and therefore preferable.
$_REQUEST
crypt()
control structure
the escape character ''
40. 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 __________.
curly braces; ${$total}
+
general
for ($i = 0; $i < count($array); $i++) {statement(s);}
41. collection of binary data
$varname[key]
HTML
substr_count()
string
42. allows you to split strings based on more complex rules
preg_split()
string
preg_replace()
list()
43. Function used to round down to the lowest integer
XML
predefined
floor()
string
44. An array whose keys are numbers.
string
boolean
predefined variable
indexed array
45. 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
46. All variables must begin with _________.
PHP
foreach loop
the dollar sign $
Parse error
47. To append elements to an array - this will assign item to the next available index; associative arrays get messy.
strtok()
$array[] = item
HTML
true
48. Alias of rtrim()
chop()
null
fopen()
Error
49. To sort values of an array in reversed order
strlen()
curly braces
WYSIWYG
rsort()
50. Use _______ for passwords or pages that would not be bookmarked or pages that require security.
>>
Parse error
POST
general