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 set up error reporting
function error_reporting()
Array
mysql_close($dbc)
Shebang
2. _______ is a comparison operator
SEO
mysql_fetch_array()
str_ireplace()
!= inequality
3. a positive or negative number
$_GET[]
integer
$dbc = mysql_connect(hostname, username, password)
Error
4. The order of operations.
underscores
precedence
associative array
strlen()
5. This will not show error reporting - it will be turned off.
===
Warning
error_reporting (0)
error_reporting (E_ALL & -E_NOTICE)
6. To sort by the keys while maintaining the correlation between the key and its value
GET
empty()
curly braces; ${$total}
ksort()
7. Leading 0x: 0x13F or 0xA23
Hex
Magic Constant
Error
$_REQUEST
8. To create an array
control structure
integer
array()
Parse error
9. Online applications and resources which are available to the general public with very few restrictions
open source
index
statement
array_merge()
10. searches the subject for matches to a given pattern replaced with the given replacement text
+
count()
preg_replace()
array
11. Used to find the amount of words in a string.
boolean
htmlspecialchars()
unset()
str_word_count()
12. Function used to find the absolute value of a number or numeric variable
!= inequality
numbers
predefined variable
abs()
13. An array whose keys are strings; also known as a hash.
?>
associative array
octal
client-side programing
14. leading zero: 0100 or 0567
index
octal
DTD
abs()
15. The output of var_export((float)array());
Array
1
empty()
0
16. Function can you use to format a number with commas
$_GET[]
SGML
number_format()
<?php
17. Control structure that continue exit - they perform specific statements for a determined number of iterations.
integer
is_numeric()
loops
single quotes
18. Used to encrypt values - it is a one-way encryption method
crypt()
negative numbers
define()
loops
19. Function used to round up to the highest integer
trim()
ceil()
parentheses
double quotes
20. a line of information that can be stored in a variable or used in a function or statement
string
true
addslashes()
SGML
21. Tag to end a php script
GET
?>
decimal
date()
22. Control structures that break exit
statement
if/elseif/else and switch statements
chr()
$$
23. Used to remove any white space - spaces or newlines or tabs - from the beginning and end of a string - not the middle.
trim()
include() and require()
POST
numbers
24. Search Engine Optimization
GET
strip_tags()
SEO
function error_reporting()
25. To word wrap after a certain amount of characters.
negative numbers
error_reporting (E_ALL & -E_NOTICE)
wordwrap()
mysql_fetch_array()
26. To remove all HTML and PHP tags.
negative numbers
E_STRICT
strip_tags()
array_merge()
27. To reset an array _______ the array() function to the array
echo
mysql_fetch_object()
predefined
reassign
28. To append elements to an array - this will assign item to the next available index; associative arrays get messy.
$array[] = item
E_STRICT
int
open source
29. $_SERVER is a ________ variable.
empty()
sort()
boolean
predefined
30. Predefined constants such as __LINE__ or __FILE__ or __FUNCTION__ or __CLASS__ and __METHOD__
round() Function
PHP
HTML
Magic Constant
31. a language in which to make querys to a database with
mysql_fetch_array()
crypt()
index
sql
32. This error refers to a variable with no value.
addslashes()
Notice
list()
double quotes
33. Tag to begin a php script
include() and require()
Magic Constant
<?php
rand()
34. Use _______ for passwords or pages that would not be bookmarked or pages that require security.
precedence
predefined
predefined variable
POST
35. Document Type Definitions
list()
Parse error
DTD
predefined variable
36. ___________ can be used with substr() to count backward
is_numeric()
negative numbers
curly braces
str_word_count()
37. To assign keys to the values in an array
urlencode()
array()
true
function error_reporting()
38. Hypertext Preprocessor - a server-side programing language used to create webpages
DTD
chr()
PHP
function error_reporting()
39. To sort values of an array without regard to the keys
single quotes
drop
HTTP
sort()
40. Returns a character from a specified ASCII value
the period; .
asort()
chr()
bin2hex()
41. a storage location in the computer's memory that has a type & a name and a contents
string
variable
int
crypt()
42. To include files - _______ will give errors and _________ will terminate execution().
general
error_reporting (E_ALL)
include() and require()
mysql_fetch_object()
43. returns the number of matches found by a given search string under this format...
superglobal
AJAX
Object
preg_match()
44. Used to check if a variable has a valid numerical value; strings with numerical values pass.
preg_match()
is_numeric()
ASP
mysql_close($dbc)
45. To get over quotation marks while using arrays
int
arsort()
wordwrap()
curly braces
46. Asynchronous Javascript And XML
$varname[key]
predefined
client-side programing
AJAX
47. addition
boolean
int
+
error_reporting (0)
48. function Function used to create a random number
empty()
.=
rand()
<<
49. The seven main error reporting constants are: E_NOTICE - E_WARNING - E_PARSE - E_ERROR - E_ALL - _____ - E_DEPRECATED
Parse error
$$
Error
E_STRICT
50. Used to replace a substring with another string - it is not case-sensitive.
strlen()
str_ireplace()
Object
switch