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. When used the value can be passed safely through the URL (GET).
DTD
abs()
urlencode()
reassign
2. All variables must begin with _________.
htmlspecialchars()
boolean
null
the dollar sign $
3. Control structures that break exit
Parse error
error_reporting (E_ALL & -E_NOTICE)
if/elseif/else and switch statements
function error_reporting()
4. Standard Generalized Markup Language
variable
null
SGML
mysql_fetch_array()
5. Use ________ to have multiple quotations in one string
the escape character ''
indexed array
the escape character ''
curly braces; ${$total}
6. Use ______ for search engines or catalogued pages or pages that would be bookmarked.
client-side programing
nl2br()
SGML
GET
7. Variable names can begin with __________
underscores
mysql_fetch_array()
the dollar sign $
str_ireplace()
8. Variable names cannot begin with _______
numbers
error_reporting (0)
round() Function
Object
9. Returns a string with backslashes in front of predefined characters
addslashes()
crypt()
$$
mysql
10. This error arises from misusing a function.
decimal
!= inequality
Warning
Error
11. Creates a pointer to a file with the declared mode (read - write -etc.).
$array[] = item
double quotes
POST
fopen()
12. To remove all HTML and PHP tags.
floor()
SEO
strip_tags()
include() and require()
13. Use _______ for passwords or pages that would not be bookmarked or pages that require security.
POST
Shebang
associative array
trim()
14. bitwise left shift
1
^
<<
WYSIWYG
15. addition
+
XML
not
asort()
16. Predefined constants such as __LINE__ or __FILE__ or __FUNCTION__ or __CLASS__ and __METHOD__
Magic Constant
bin2hex()
0
chop()
17. EXtensible Markup Language
error_reporting (E_ALL | E_STRICT)
addslashes()
==
XML
18. Active Server Pages
wordwrap()
ASP
associative array
asort()
19. Similar to mysql_fetch_array() - but cannot be accessed by integer offset
htmlentities()
mysql_fetch_object()
addcslashes()
indexed array
20. leading zero: 0100 or 0567
not
octal
html_entity_decode()
SGML
21. This fatal error arises from memory allocation problem.
asort()
open source
echo
Error
22. says 'if' this then do this 'else' do this or 'while' this do this
number_format()
single quotes
statement
Object
23. $_SERVER is a ________ variable.
associative array
bin2hex()
predefined
shuffle()
24. does a certain action when called upon
function
true
boolean
?>
25. Function used to round up to the highest integer
ceil()
error_reporting (E_ALL | E_STRICT)
preg_replace()
floor()
26. Used to remove any white space - spaces or newlines or tabs - from the beginning and end of a string - not the middle.
trim()
number_format()
+
underscores
27. To refer to an item in an array
crypt()
mysql_fetch_object()
$varname[key]
urlencode()
28. To declare a constant
$var++ and $var
sql
list()
define()
29. This will show all error reporting except for notice errors.
html_entity_decode()
error_reporting (E_ALL & -E_NOTICE)
function
fopen()
30. An array whose keys are numbers.
float
mysql_close($dbc)
indexed array
addslashes()
31. identity
sql
rand()
define()
===
32. An array of variables passed in the URL
not
Error
html_entity_decode()
$_GET[]
33. allows you to split strings based on more complex rules
int
superglobal
POST
preg_split()
34. To word wrap after a certain amount of characters.
?>
wordwrap()
addcslashes()
$$
35. ___________ can be used with substr() to count backward
negative numbers
SGML
sort()
mysql_close($dbc)
36. Function can you use to format a number with commas
htmlentities()
number_format()
$_GET[]
foreach loop
37. The order of operations.
addslashes()
decimal
precedence
POST
38. Besides GET and POST ________ can be used to access data but $_POST and $_GET are more precise and therefore preferable.
$_REQUEST
$$
trim()
mysql
39. container of ordered data elements
trim()
htmlentities()
Array
chr()
40. Used to find the amount of words in a string.
str_word_count()
the escape character ''
chr()
curly braces; ${$total}
41. TRUE or FALSE
!= inequality
boolean
mysql_fetch_object()
defined()
42. The ouput of var_export((bool)"NULL");
HTML
true
ceil()
open source
43. equivalence
precedence
==
date()
<<
44. To check if a constant is already declared
reassign
arsort()
ASP
defined()
45. _____ is a logical operator
PHP
precedence
XOR
bin2hex()
46. Hyper Text Transfer Protocol
$$
AJAX
include() and require()
HTTP
47. a database which is best supported by PHP
mysql
Error
predefined
shuffle()
48. a storage location in the computer's memory that has a type & a name and a contents
string
array_merge()
variable
if/elseif/else and switch statements
49. signed integer
crypt()
int
include() and require()
>>
50. $_POST Data sent using POST found is sent to _______
?>
XML
predefined variable
integer