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. Function used to round down to the lowest integer
+
parentheses
reassign
floor()
2. Variable names cannot begin with _______
$_SESSION[]
addslashes()
numbers
mysql
3. Creates a pointer to a file with the declared mode (read - write -etc.).
mysql
Constant
fopen()
substr_count()
4. Hyper Text Transfer Protocol
==
POST
superglobal
HTTP
5. bitwise left shift
wordwrap()
crypt()
<<
htmlentities()
6. _____ is a logical operator
error_reporting (E_ALL | E_STRICT)
XOR
define()
preg_split()
7. To reset an array _______ the array() function to the array
str_word_count()
date()
preg_match()
reassign
8. Function can you use to format a number with commas
$_POST[]
number_format()
loops
indexed array
9. Alias of rtrim()
SEO
strlen()
abs()
chop()
10. Active Server Pages
float
strtok()
ASP
AJAX
11. To get over quotation marks while using arrays
DTD
preg_match()
curly braces
E_STRICT
12. To delete a variable or an element of an array
unset()
curly braces
null
0
13. Control structure that continue exit - they perform specific statements for a determined number of iterations.
curly braces; ${$total}
loops
int
Parse error
14. To assign keys to the values in an array
array()
date()
index
list()
15. Used to find the length of a string
foreach
ini_set ('display_errors', 1)
strlen()
htmlentities()
16. container of ordered data elements
Constant
===
Array
round() Function
17. To word wrap after a certain amount of characters.
AJAX
E_STRICT
wordwrap()
===
18. ___________ can be used with substr() to count backward
error_reporting (E_ALL | E_STRICT)
negative numbers
error_reporting (E_ALL)
$_REQUEST
19. a type with two possible values: true and false
float
1
boolean
trim()
20. The prefix for a dynamic variable - also known as a variable variable
$$
shuffle()
open source
asort()
21. Returns a string with backslashes in front of the specified characters
predefined
is_numeric()
predefined
addcslashes()
22. This error arises from misusing a function.
is_numeric()
Warning
decimal
$array[] = item
23. Variable names can begin with __________
string
indexed array
underscores
html_entity_decode()
24. This will show all error reporting.
error_reporting (E_ALL)
foreach
ksort()
chr()
25. To find how many substrings are in a string
list()
not
substr_count()
Error
26. Use _______ for passwords or pages that would not be bookmarked or pages that require security.
POST
curly braces
addslashes()
float
27. $_POST Data sent using POST found is sent to _______
$_GET[]
indexed array
predefined variable
Array
28. To refer to an element in a multidimensional array list the indices in order of _____ to more precise;
AJAX
general
double quotes
foreach
29. Function used to convert new lines in a variable from a form to <br /> tags so that the data can be formatted correctly.
Parse error
define()
mysql_fetch_array()
nl2br()
30. To iterate over the keys and values of an array
foreach loop
$_POST[]
asort()
count()
31. What You See Is What You Get
Hex
$$
WYSIWYG
number_format()
32. To refer to an item in an array
fopen()
$varname[key]
precedence
addslashes()
33. the most basic function in PHP used to output information to the page
PHP
echo
the escape character ''
strlen()
34. Converts a string of ASCII characters to hexadecimal values
unset()
mysql_fetch_array()
bin2hex()
ini_set ('display_errors', 1)
35. Used to find the amount of words in a string.
str_word_count()
the dollar sign $
crypt()
nl2br()
36. a storage location in the computer's memory that has a type & a name and a contents
double quotes
statement
variable
single quotes
37. The syntax for connecting to a database
unset()
$dbc = mysql_connect(hostname, username, password)
error_reporting (E_ALL)
str_word_count()
38. Leading 0x: 0x13F or 0xA23
Hex
if/elseif/else and switch statements
control structure
reassign
39. The seven main error reporting constants are: E_NOTICE - E_WARNING - E_PARSE - E_ERROR - E_ALL - _____ - E_DEPRECATED
E_STRICT
SGML
<?php
client-side programing
40. addition
WYSIWYG
+
&
int
41. To sort the values while maintaining the correlation between each value and its key - in reversed order
open source
arsort()
server-side programing
Parse error
42. Hypertext Preprocessor - a server-side programing language used to create webpages
server-side programing
array
PHP
count()
43. To set up error reporting
not
<?php
function error_reporting()
wordwrap()
44. Document Type Definitions
error_reporting (E_ALL | E_STRICT)
arsort()
DTD
list()
45. Used to check if a variable has any value (including 0 or FALSE or an empty string).
null
isset()
PHP
trim()
46. Used to check if a given variable has an "empty" value - no value or 0 or FALSE.
empty()
true
array()
^
47. Returns a string with backslashes in front of predefined characters
mysql_fetch_object()
addslashes()
crypt()
wordwrap()
48. To include files - _______ will give errors and _________ will terminate execution().
include() and require()
XML
mysql
array_merge()
49. To declare a constant
rand()
1
true
define()
50. The concatenation operator?
Warning
the period; .
HTML
XOR