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 prefix for a dynamic variable - also known as a variable variable
DTD
predefined
$$
variable
2. a language in which to make querys to a database with
indexed array
sql
loops
predefined variable
3. Use ______ when there are no variables in the string
GET
array()
single quotes
SEO
4. Asynchronous Javascript And XML
AJAX
array()
strtok()
indexed array
5. says 'if' this then do this 'else' do this or 'while' this do this
curly braces; ${$total}
statement
htmlentities()
addcslashes()
6. either hasn't yet been set or is assigned NULL value
control structure
boolean
mysql_fetch_object()
null
7. Returns an array that corresponds to the fetched row of MySQL data and moves the internal data pointer ahead
0
loops
addslashes()
mysql_fetch_array()
8. To get over quotation marks while using arrays
XML
curly braces
open source
$$
9. returns the number of matches found by a given search string under this format...
ini_set ('display_errors', 1)
defined()
preg_match()
true
10. To word wrap after a certain amount of characters.
predefined variable
fopen()
wordwrap()
unset()
11. Besides GET and POST ________ can be used to access data but $_POST and $_GET are more precise and therefore preferable.
$_REQUEST
foreach loop
array
true
12. To set up error reporting
Constant
function error_reporting()
addcslashes()
error_reporting (E_ALL)
13. Returns a string with backslashes in front of the specified characters
function
addcslashes()
underscores
+
14. To include files - _______ will give errors and _________ will terminate execution().
crypt()
underscores
ceil()
include() and require()
15. All variables must begin with _________.
indexed array
the dollar sign $
XOR
control structure
16. Operators used to operate and assign
+= or -= or *= or /=
abs()
$_GET[]
trim()
17. collection of binary data
string
rsort()
if/elseif/else and switch statements
Hex
18. Function used to round up to the highest integer
ceil()
function
<<
numbers
19. Hyper Text Transfer Protocol
$varname[key]
HTTP
superglobal
<?php
20. The output of var_export((float)array());
$_POST[]
0
error_reporting (E_ALL & -E_NOTICE)
date()
21. The four main error types are:Notice - Warning - ________ and Error.
Parse error
date()
strtok()
client-side programing
22. PHP has two conditional: if and ______.
arsort()
Error
switch
for ($i = 0; $i < count($array); $i++) {statement(s);}
23. Define(NAME,value)
Constant
preg_replace()
sql
nl2br()
24. the most basic function in PHP used to output information to the page
number_format()
foreach loop
mysql_fetch_array()
echo
25. Variable names can begin with __________
not
underscores
echo
string
26. equivalence
drop
parentheses
==
true
27. Predefined constants such as __LINE__ or __FILE__ or __FUNCTION__ or __CLASS__ and __METHOD__
htmlspecialchars()
$_REQUEST
$var++ and $var
Magic Constant
28. Used to create a substring (referred to as a token) from a larger string
strtok()
SGML
+
the dollar sign $
29. Use ______ for search engines or catalogued pages or pages that would be bookmarked.
sql
Shebang
GET
count()
30. An array whose keys are numbers.
indexed array
error_reporting (0)
<?php
>>
31. any programing language where the script is parsed on the server
html_entity_decode()
nl2br()
ceil()
server-side programing
32. To delete a variable or an element of an array
predefined variable
array
unset()
fopen()
33. The concatenation assignment operator?
client-side programing
include() and require()
mysql_fetch_object()
.=
34. standard notation
arsort()
Hex
decimal
include() and require()
35. Document Type Definitions
DTD
function error_reporting()
wordwrap()
integer
36. TRUE or FALSE
rsort()
GET
boolean
mysql
37. bitwise AND
str_ireplace()
PHP
&
int
38. ___________ can be used with substr() to count backward
Warning
int
negative numbers
date()
39. The output of var_export((float)array(0));
1
preg_split()
drop
unset()
40. Standard Generalized Markup Language
strip_tags()
SGML
precedence
foreach
41. Search Engine Optimization
variable
true
date()
SEO
42. a database which is best supported by PHP
HTTP
mysql
the escape character ''
POST
43. Similar to mysql_fetch_array() - but cannot be accessed by integer offset
round() Function
ini_set ('display_errors', 1)
mysql_fetch_object()
for ($i = 0; $i < count($array); $i++) {statement(s);}
44. To remove all HTML and PHP tags.
wordwrap()
strip_tags()
nl2br()
general
45. This fatal fatal is caused by a semantic mistake: omission of a semicolon or imbalance of quotations or parentheses or braces.
Parse error
WYSIWYG
function error_reporting()
shuffle()
46. _______ is a comparison operator
SEO
wordwrap()
!= inequality
DTD
47. To merge arrays
the period; .
associative array
not
array_merge()
48. To refer to an item in an array
unset()
Notice
$varname[key]
strlen()
49. This will show all error reporting except for notice errors.
error_reporting (0)
drop
error_reporting (E_ALL & -E_NOTICE)
$$
50. An array of variables passed in the URL
$_GET[]
sort()
the period; .
defined()