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 up to the highest integer
ceil()
empty()
underscores
rsort()
2. signed floating-point value
error_reporting (E_ALL | E_STRICT)
include() and require()
rand()
float
3. To check if a constant is already declared
string
defined()
E_STRICT
$varname[key]
4. Control structure that continue exit - they perform specific statements for a determined number of iterations.
?>
loops
Object
Constant
5. When used the value can be passed safely through the URL (GET).
urlencode()
Array
Warning
count()
6. Used to replace a substring with another string - it is not case-sensitive.
str_ireplace()
boolean
associative array
client-side programing
7. a positive or negative number
round() Function
integer
loops
foreach loop
8. does a certain action when called upon
function
the dollar sign $
control structure
true
9. The seven main error reporting constants are: E_NOTICE - E_WARNING - E_PARSE - E_ERROR - E_ALL - _____ - E_DEPRECATED
boolean
E_STRICT
decimal
getrandmax()
10. Function can you use to format a number with commas
SEO
superglobal
.=
number_format()
11. any programing language where the script is parsed on the server
server-side programing
true
preg_replace()
reassign
12. container of ordered data elements
htmlentities()
is_numeric()
Array
if/elseif/else and switch statements
13. Shorthand used to increment and decrement
html_entity_decode()
function
$var++ and $var
the dollar sign $
14. bitwise right shift
mysql_close($dbc)
>>
E_STRICT
chr()
15. Document Type Definitions
DTD
getrandmax()
Error
is_numeric()
16. To determine the amount of elements in an array
count()
Parse error
$_SESSION[]
strlen()
17. A conditional or loop is a ________________.
control structure
crypt()
array
precedence
18. To delete a variable or an element of an array
>>
string
unset()
array
19. Use ________ to have multiple quotations in one string
the escape character ''
$$
loops
drop
20. Control structures that break exit
PHP
string
preg_replace()
if/elseif/else and switch statements
21. An array of variables passed in the URL
octal
$_GET[]
double quotes
SGML
22. Tag to begin a php script
null
<?php
echo
HTTP
23. The array that stores variables specific to a user's visit
==
$_SESSION[]
sort()
crypt()
24. Use ______ when a variable contains any amount of variables; in general.
htmlspecialchars()
double quotes
mysql_fetch_object()
foreach loop
25. To declare a constant
array_merge()
asort()
server-side programing
define()
26. standard notation
decimal
trim()
chr()
$var++ and $var
27. Similar to mysql_fetch_array() - but cannot be accessed by integer offset
+
GET
mysql_fetch_object()
sort()
28. Asynchronous Javascript And XML
decimal
AJAX
defined()
Warning
29. Returns an array that corresponds to the fetched row of MySQL data and moves the internal data pointer ahead
echo
$var++ and $var
mysql_fetch_array()
mysql_fetch_object()
30. The output of var_export((float)array());
AJAX
is_numeric()
integer
0
31. _________ can be used in conditional statements to set precedence
predefined
$dbc = mysql_connect(hostname, username, password)
error_reporting (E_ALL)
parentheses
32. To assign array element values to individual variables
chop()
if/elseif/else and switch statements
list()
str_ireplace()
33. _____ is a logical operator
XOR
count()
associative array
arsort()
34. Hypertext Preprocessor - a server-side programing language used to create webpages
WYSIWYG
PHP
unset()
GET
35. An array whose keys are numbers.
===
precedence
indexed array
true
36. Used to check if a variable has any value (including 0 or FALSE or an empty string).
foreach
PHP
isset()
trim()
37. $_POST and $_GET are ________ variables.
predefined
>>
strip_tags()
mysql_fetch_array()
38. This fatal error arises from memory allocation problem.
^
$_SESSION[]
curly braces
Error
39. To word wrap after a certain amount of characters.
define()
general
wordwrap()
predefined variable
40. To remove all HTML and PHP tags.
htmlspecialchars()
AJAX
strip_tags()
trim()
41. To iterate over the keys and values of an array
0
round() Function
foreach loop
the escape character ''
42. a type with two possible values: true and false
numbers
str_ireplace()
boolean
count()
43. a database which is best supported by PHP
octal
curly braces
server-side programing
mysql
44. ___________ can be used with substr() to count backward
strtok()
PHP
negative numbers
predefined variable
45. Used to convert certain HTML tags into their entity versions.
<?php
boolean
+= or -= or *= or /=
htmlspecialchars()
46. any programing language where the user must support the language the script is written in
&
double quotes
client-side programing
true
47. addition
unset()
mysql
+
arsort()
48. To close a connection between a database
mysql_close($dbc)
client-side programing
+= or -= or *= or /=
loops
49. To iterate over the values of an array
Parse error
for ($i = 0; $i < count($array); $i++) {statement(s);}
null
ini_set ('display_errors', 1)
50. Active Server Pages
error_reporting (E_ALL)
ASP
echo
parentheses