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. The name of the #! used to designate the location of the PHP binary
Shebang
string
abs()
!= inequality
2. leading zero: 0100 or 0567
octal
foreach loop
strlen()
Constant
3. To set up error reporting
fopen()
index
Magic Constant
function error_reporting()
4. Used to encrypt values - it is a one-way encryption method
preg_replace()
===
superglobal
crypt()
5. This will not show error reporting - it will be turned off.
ASP
GET
array()
error_reporting (0)
6. 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 __________.
index
preg_replace()
<?php
curly braces; ${$total}
7. Hyper Text Transfer Protocol
$var++ and $var
HTTP
predefined variable
getrandmax()
8. a positive or negative number
Warning
curly braces; ${$total}
integer
chop()
9. Alias of rtrim()
preg_match()
associative array
chop()
error_reporting (E_ALL)
10. To assign array element values to individual variables
server-side programing
wordwrap()
indexed array
list()
11. Used to check if a variable has a valid numerical value; strings with numerical values pass.
Parse error
is_numeric()
$_POST[]
addcslashes()
12. Predefined constants such as __LINE__ or __FILE__ or __FUNCTION__ or __CLASS__ and __METHOD__
Magic Constant
index
drop
Error
13. bitwise left shift
GET
HTML
<<
rsort()
14. Used to display errors in a particular script - should be placed at top of script.
15. To refer to an item in an array
precedence
arsort()
$varname[key]
the period; .
16. PHP has two conditional: if and ______.
foreach loop
switch
addslashes()
curly braces
17. Document Type Definitions
error_reporting (E_ALL | E_STRICT)
mysql_fetch_object()
$_REQUEST
DTD
18. To merge arrays
number_format()
variable
predefined variable
array_merge()
19. This error arises from misusing a function.
statement
addslashes()
>>
Warning
20. To find how many substrings are in a string
mysql_fetch_object()
rand()
substr_count()
numbers
21. To create an array
array()
numbers
wordwrap()
abs()
22. Control structure that continue exit - they perform specific statements for a determined number of iterations.
abs()
mysql
precedence
loops
23. Use ________ to have multiple quotations in one string
the escape character ''
mysql_close($dbc)
sort()
foreach loop
24. To reset an array _______ the array() function to the array
int
predefined
$_REQUEST
reassign
25. Search Engine Optimization
error_reporting (E_ALL | E_STRICT)
SEO
predefined
string
26. To delete a variable or an element of an array
unset()
abs()
Object
===
27. any programing language where the script is parsed on the server
server-side programing
rsort()
$_SESSION[]
count()
28. Tag to end a php script
ksort()
index
?>
mysql
29. EXtensible Markup Language
$_REQUEST
Parse error
XML
addcslashes()
30. standard notation
predefined
if/elseif/else and switch statements
decimal
addslashes()
31. The seven main error reporting constants are: E_NOTICE - E_WARNING - E_PARSE - E_ERROR - E_ALL - _____ - E_DEPRECATED
switch
mysql
arsort()
E_STRICT
32. To get over quotation marks while using arrays
indexed array
string
curly braces
addcslashes()
33. Function used to convert new lines in a variable from a form to <br /> tags so that the data can be formatted correctly.
nl2br()
chop()
double quotes
ini_set ('display_errors', 1)
34. a storage location in the computer's memory that has a type & a name and a contents
unset()
variable
parentheses
nl2br()
35. used to round numeric values.
AJAX
round() Function
int
array()
36. The seven main SQL (structured query language) functions are alter - create - delete - _______ - insert - select - update
drop
GET
string
Hex
37. either hasn't yet been set or is assigned NULL value
arsort()
null
boolean
substr_count()
38. The concatenation operator?
the period; .
parentheses
count()
associative array
39. To iterate over the keys and values of an array
Notice
preg_replace()
foreach loop
error_reporting (E_ALL)
40. Used to remove any white space - spaces or newlines or tabs - from the beginning and end of a string - not the middle.
addcslashes()
SGML
trim()
isset()
41. To determine the amount of elements in an array
array
count()
+
WYSIWYG
42. A data structure that can hold a number of items of data of the same type eg. a list of names
array
XML
predefined variable
boolean
43. Asynchronous Javascript And XML
statement
asort()
trim()
AJAX
44. Used to convert certain HTML tags into their entity versions.
decimal
defined()
!= inequality
htmlspecialchars()
45. Variable names can begin with __________
$_REQUEST
fopen()
underscores
Magic Constant
46. The output of var_export((float)array());
urlencode()
boolean
addslashes()
0
47. Operators used to operate and assign
count()
crypt()
preg_match()
+= or -= or *= or /=
48. $_SERVER is a ________ variable.
substr_count()
define()
trim()
predefined
49. To assign keys to the values in an array
array()
==
DTD
general
50. A conditional or loop is a ________________.
control structure
single quotes
str_ireplace()
sql