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. To determine the amount of elements in an array
array_merge()
rsort()
foreach
count()
2. Converts a string of ASCII characters to hexadecimal values
Parse error
arsort()
bin2hex()
$$
3. Creates a pointer to a file with the declared mode (read - write -etc.).
!= inequality
mysql
SEO
fopen()
4. returns the number of matches found by a given search string under this format...
preg_match()
null
error_reporting (E_ALL & -E_NOTICE)
indexed array
5. To delete a variable or an element of an array
Notice
ksort()
asort()
unset()
6. $_SERVER - $_POST - $_GET - $_COOKIE - $_SESSION - $_ENV; special arrays.
float
variable
indexed array
superglobal
7. To close a connection between a database
strlen()
mysql_close($dbc)
!= inequality
include() and require()
8. Online applications and resources which are available to the general public with very few restrictions
&
ceil()
Magic Constant
open source
9. a storage location in the computer's memory that has a type & a name and a contents
variable
is_numeric()
&
fopen()
10. The four main error types are:Notice - Warning - ________ and Error.
Parse error
drop
Warning
defined()
11. An array of variables passed in the URL
$_GET[]
getrandmax()
mysql
chop()
12. This error refers to a variable with no value.
Magic Constant
Notice
arsort()
array_merge()
13. The name of the #! used to designate the location of the PHP binary
SGML
htmlentities()
htmlspecialchars()
Shebang
14. used to round numeric values.
Parse error
round() Function
function
float
15. Used to encrypt values - it is a one-way encryption method
crypt()
error_reporting (0)
XML
$_POST[]
16. Define(NAME,value)
sql
curly braces
strip_tags()
Constant
17. The prefix for a dynamic variable - also known as a variable variable
$$
Hex
+
E_STRICT
18. Hypertext Preprocessor - a server-side programing language used to create webpages
round() Function
mysql_close($dbc)
PHP
parentheses
19. the most basic function in PHP used to output information to the page
echo
preg_split()
==
+= or -= or *= or /=
20. To refer to an element in a multidimensional array list the indices in order of _____ to more precise;
general
htmlentities()
error_reporting (E_ALL | E_STRICT)
indexed array
21. Used to convert all HTML tags into their entity versions.
mysql
htmlentities()
chr()
empty()
22. To iterate over the keys and values of an array
XML
decimal
+
foreach loop
23. This will show all error reporting.
error_reporting (E_ALL)
define()
boolean
preg_replace()
24. Tag to begin a php script
Array
==
array
<?php
25. Predefined constants such as __LINE__ or __FILE__ or __FUNCTION__ or __CLASS__ and __METHOD__
Magic Constant
0
htmlspecialchars()
arsort()
26. signed integer
error_reporting (E_ALL | E_STRICT)
boolean
==
int
27. Used to display errors in a particular script - should be placed at top of script.
28. To remove all HTML and PHP tags.
===
underscores
strip_tags()
floor()
29. Use ______ when a variable contains any amount of variables; in general.
Warning
$_SESSION[]
GET
double quotes
30. any programing language where the script is parsed on the server
GET
server-side programing
Constant
Object
31. This error arises from misusing a function.
+= or -= or *= or /=
Warning
HTTP
curly braces
32. a language in which to make querys to a database with
rsort()
1
foreach
sql
33. identity
HTML
WYSIWYG
===
ASP
34. Control structures that break exit
strlen()
if/elseif/else and switch statements
===
mysql_close($dbc)
35. To assign keys to the values in an array
array()
date()
bin2hex()
DTD
36. container of both data and code
XOR
addcslashes()
Object
number_format()
37. This fatal error arises from memory allocation problem.
loops
define()
Error
include() and require()
38. What You See Is What You Get
Notice
WYSIWYG
Parse error
not
39. 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 __________.
SEO
curly braces; ${$total}
Parse error
define()
40. Active Server Pages
the escape character ''
if/elseif/else and switch statements
ASP
$$
41. _____ is a logical operator
XOR
urlencode()
SGML
Notice
42. To sort by the keys while maintaining the correlation between the key and its value
reassign
boolean
mysql
ksort()
43. An array whose keys are numbers.
ksort()
HTML
indexed array
not
44. Operators used to operate and assign
+= or -= or *= or /=
$var++ and $var
Warning
Shebang
45. bitwise XOR
date()
htmlentities()
^
server-side programing
46. a database which is best supported by PHP
mysql
<?php
ksort()
error_reporting (E_ALL & -E_NOTICE)
47. Search Engine Optimization
numbers
curly braces
SEO
index
48. either hasn't yet been set or is assigned NULL value
HTTP
shuffle()
null
strlen()
49. Used to remove any white space - spaces or newlines or tabs - from the beginning and end of a string - not the middle.
rand()
nl2br()
trim()
drop
50. The output of var_export((float)array(0));
boolean
<<
^
1