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 concatenation operator?
chop()
the period; .
include() and require()
array
2. The output of var_export((float)array(0));
1
$_GET[]
mysql
Notice
3. any programing language where the script is parsed on the server
predefined
is_numeric()
1
server-side programing
4. To sort by the keys while maintaining the correlation between the key and its value
WYSIWYG
Array
ini_set ('display_errors', 1)
ksort()
5. Function can you use to format a number with commas
error_reporting (E_ALL | E_STRICT)
ceil()
number_format()
.=
6. Uses two arguments: constant name and constant definition
round() Function
include() and require()
define()
str_word_count()
7. Search Engine Optimization
preg_replace()
addcslashes()
!= inequality
SEO
8. To sort the values while maintaining the correlation between each value and its key - in reversed order
superglobal
Magic Constant
ksort()
arsort()
9. To get time data
switch
$var++ and $var
mysql
date()
10. Asynchronous Javascript And XML
AJAX
superglobal
HTTP
DTD
11. Use _______ for passwords or pages that would not be bookmarked or pages that require security.
HTTP
reassign
POST
unset()
12. $_POST Data sent using POST found is sent to _______
predefined variable
0
array_merge()
echo
13. This will not show error reporting - it will be turned off.
error_reporting (0)
Parse error
===
substr_count()
14. bitwise left shift
statement
general
<<
arsort()
15. An array of variables passed with <input /> data
HTTP
<<
mysql_close($dbc)
$_POST[]
16. To sort the values while maintaining the correlation between each value and its key
array()
isset()
strlen()
asort()
17. either hasn't yet been set or is assigned NULL value
null
loops
chop()
general
18. To word wrap after a certain amount of characters.
ASP
addslashes()
htmlentities()
wordwrap()
19. Tag to end a php script
.=
addslashes()
?>
empty()
20. The four main error types are:Notice - Warning - ________ and Error.
Parse error
chr()
mysql_fetch_array()
error_reporting (0)
21. a type with two possible values: true and false
strtok()
boolean
+
<<
22. The prefix for a dynamic variable - also known as a variable variable
integer
$$
list()
curly braces
23. searches the subject for matches to a given pattern replaced with the given replacement text
$_GET[]
preg_replace()
the period; .
isset()
24. To sort values of an array in reversed order
rsort()
underscores
parentheses
crypt()
25. $_SERVER is a ________ variable.
string
predefined
$dbc = mysql_connect(hostname, username, password)
int
26. 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 __________.
PHP
Constant
loops
curly braces; ${$total}
27. bitwise right shift
>>
precedence
asort()
curly braces; ${$total}
28. Control structures that break exit
if/elseif/else and switch statements
$_SESSION[]
defined()
drop
29. To assign keys to the values in an array
not
the period; .
array()
1
30. To create an array
strlen()
$var++ and $var
array()
Array
31. To reset an array _______ the array() function to the array
floor()
reassign
==
parentheses
32. Use ______ when a variable contains any amount of variables; in general.
double quotes
unset()
array_merge()
float
33. Tag to begin a php script
array()
HTTP
Object
<?php
34. Function used to round down to the lowest integer
Array
HTML
parentheses
floor()
35. The syntax for connecting to a database
str_word_count()
error_reporting (0)
$dbc = mysql_connect(hostname, username, password)
open source
36. To sort values of an array without regard to the keys
single quotes
double quotes
sort()
XML
37. To iterate over the values of an array
for ($i = 0; $i < count($array); $i++) {statement(s);}
mysql_fetch_object()
array
Parse error
38. Control structure that continue exit - they perform specific statements for a determined number of iterations.
ASP
loops
date()
array()
39. Predefined constants such as __LINE__ or __FILE__ or __FUNCTION__ or __CLASS__ and __METHOD__
define()
Magic Constant
echo
list()
40. Returns a character from a specified ASCII value
Constant
error_reporting (E_ALL | E_STRICT)
chr()
list()
41. To refer to an item in an array
$varname[key]
define()
shuffle()
statement
42. To merge arrays
urlencode()
reassign
array()
array_merge()
43. To check if a constant is already declared
$varname[key]
associative array
rsort()
defined()
44. This fatal error arises from memory allocation problem.
Error
WYSIWYG
POST
ini_set ('display_errors', 1)
45. When used the value can be passed safely through the URL (GET).
urlencode()
array
substr_count()
str_ireplace()
46. Function used to find the absolute value of a number or numeric variable
preg_match()
integer
abs()
Error
47. Used to replace a substring with another string - it is not case-sensitive.
abs()
trim()
foreach loop
str_ireplace()
48. To get over quotation marks while using arrays
curly braces
chop()
ini_set ('display_errors', 1)
associative array
49. Use ________ to have multiple quotations in one string
general
the escape character ''
$var++ and $var
integer
50. This will show all errors that fall under E_ALL or E_STRICT - the pipe | is used for 'or' so that errors that fall under either will be shown.
^
echo
fopen()
error_reporting (E_ALL | E_STRICT)