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 output of var_export((float)array(0));
sort()
preg_match()
decimal
1
2. addition
WYSIWYG
str_ireplace()
html_entity_decode()
+
3. a type with two possible values: true and false
boolean
predefined
float
$_SESSION[]
4. To sort the values while maintaining the correlation between each value and its key
asort()
Error
html_entity_decode()
strlen()
5. To declare a constant
define()
variable
Magic Constant
function error_reporting()
6. To assign array element values to individual variables
<?php
foreach loop
list()
predefined
7. Used to find the length of a string
strlen()
getrandmax()
wordwrap()
0
8. Hypertext Preprocessor - a server-side programing language used to create webpages
HTTP
PHP
bin2hex()
indexed array
9. This will show all error reporting except for notice errors.
client-side programing
float
error_reporting (E_ALL & -E_NOTICE)
array
10. allows you to split strings based on more complex rules
E_STRICT
preg_split()
decimal
>>
11. Control structures that break exit
the dollar sign $
abs()
mysql_close($dbc)
if/elseif/else and switch statements
12. Variable names cannot begin with _______
$_REQUEST
fopen()
for ($i = 0; $i < count($array); $i++) {statement(s);}
numbers
13. Besides GET and POST ________ can be used to access data but $_POST and $_GET are more precise and therefore preferable.
int
HTML
$_REQUEST
floor()
14. bitwise left shift
$varname[key]
underscores
<<
===
15. Operators used to operate and assign
error_reporting (E_ALL | E_STRICT)
define()
crypt()
+= or -= or *= or /=
16. EXtensible Markup Language
array
list()
XML
strip_tags()
17. Used to display errors in a particular script - should be placed at top of script.
18. Tag to begin a php script
abs()
<?php
Error
null
19. Leading 0x: 0x13F or 0xA23
sql
POST
Hex
.=
20. Use _______ for passwords or pages that would not be bookmarked or pages that require security.
echo
POST
indexed array
abs()
21. Used to remove any white space - spaces or newlines or tabs - from the beginning and end of a string - not the middle.
preg_match()
POST
&
trim()
22. Uses two arguments: constant name and constant definition
the period; .
negative numbers
define()
null
23. To reset an array _______ the array() function to the array
open source
str_ireplace()
empty()
reassign
24. returns the number of matches found by a given search string under this format...
the escape character ''
$var++ and $var
preg_match()
HTTP
25. An array of variables passed with <input /> data
parentheses
PHP
$_POST[]
preg_replace()
26. To iterate over the values of an array
client-side programing
Hex
WYSIWYG
for ($i = 0; $i < count($array); $i++) {statement(s);}
27. container of ordered data elements
precedence
strlen()
decimal
Array
28. does a certain action when called upon
preg_replace()
unset()
predefined variable
function
29. This fatal fatal is caused by a semantic mistake: omission of a semicolon or imbalance of quotations or parentheses or braces.
$$
HTML
int
Parse error
30. Define(NAME,value)
predefined
Constant
server-side programing
switch
31. The array that stores variables specific to a user's visit
integer
fopen()
$_SESSION[]
bin2hex()
32. Use ______ when a variable contains any amount of variables; in general.
predefined
double quotes
ASP
the dollar sign $
33. Alias of rtrim()
chop()
date()
general
int
34. To include files - _______ will give errors and _________ will terminate execution().
true
include() and require()
list()
Magic Constant
35. The ouput of var_export((bool)"NULL");
string
$_SESSION[]
wordwrap()
true
36. To get time data
+
round() Function
htmlspecialchars()
date()
37. Similar to mysql_fetch_array() - but cannot be accessed by integer offset
!= inequality
mysql_fetch_object()
html_entity_decode()
underscores
38. A conditional or loop is a ________________.
control structure
negative numbers
abs()
GET
39. used to round numeric values.
round() Function
+= or -= or *= or /=
mysql_close($dbc)
preg_match()
40. Function used to convert new lines in a variable from a form to <br /> tags so that the data can be formatted correctly.
$array[] = item
the period; .
count()
nl2br()
41. To word wrap after a certain amount of characters.
$varname[key]
Error
wordwrap()
XOR
42. _______ is a comparison operator
string
mysql_fetch_array()
!= inequality
list()
43. any programing language where the user must support the language the script is written in
function
client-side programing
string
str_ireplace()
44. The concatenation operator?
defined()
the period; .
.=
predefined
45. Used to encrypt values - it is a one-way encryption method
AJAX
crypt()
single quotes
arsort()
46. signed floating-point value
Error
string
getrandmax()
float
47. Used to check if a variable has any value (including 0 or FALSE or an empty string).
html_entity_decode()
Shebang
str_ireplace()
isset()
48. The output of var_export((float)array());
count()
chr()
0
?>
49. Search Engine Optimization
foreach loop
SEO
strlen()
E_STRICT
50. Hyper Text Transfer Protocol
HTTP
define()
abs()
predefined variable