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. Used to convert all HTML tags into their entity versions.
arsort()
<<
PHP
htmlentities()
2. function Function used to create a random number
statement
sql
rand()
crypt()
3. To counter htmlentities()
1
number_format()
error_reporting (E_ALL | E_STRICT)
html_entity_decode()
4. To iterate over the values of an array
decimal
===
HTML
for ($i = 0; $i < count($array); $i++) {statement(s);}
5. bitwise XOR
array
^
decimal
HTML
6. does a certain action when called upon
function
^
+
$_POST[]
7. To sort values of an array without regard to the keys
sort()
round() Function
0
$varname[key]
8. Asynchronous Javascript And XML
echo
function error_reporting()
AJAX
Notice
9. This fatal error arises from memory allocation problem.
int
array()
str_word_count()
Error
10. This will show all error reporting.
error_reporting (E_ALL | E_STRICT)
error_reporting (E_ALL)
$var++ and $var
POST
11. EXtensible Markup Language
abs()
XML
true
arsort()
12. the most basic function in PHP used to output information to the page
mysql_close($dbc)
drop
echo
array
13. a storage location in the computer's memory that has a type & a name and a contents
$var++ and $var
rsort()
Constant
variable
14. $_POST Data sent using POST found is sent to _______
drop
+= or -= or *= or /=
predefined variable
str_word_count()
15. ____ or key is referred to for a value within an array.
Notice
index
the escape character ''
statement
16. To iterate over the keys and values of an array
null
<?php
!= inequality
foreach loop
17. An array of variables passed in the URL
Shebang
$_GET[]
the escape character ''
isset()
18. $_POST and $_GET are ________ variables.
predefined
rand()
+= or -= or *= or /=
XOR
19. Converts a string of ASCII characters to hexadecimal values
bin2hex()
Array
?>
AJAX
20. To refer to an element in a multidimensional array list the indices in order of _____ to more precise;
general
server-side programing
parentheses
count()
21. Function that contains the highest value that rand() can have randomly
getrandmax()
error_reporting (E_ALL)
variable
count()
22. Function used to round down to the lowest integer
sort()
abs()
array()
floor()
23. A conditional or loop is a ________________.
the period; .
array_merge()
control structure
addslashes()
24. Shorthand used to increment and decrement
sort()
client-side programing
$var++ and $var
not
25. This will show all error reporting except for notice errors.
count()
addcslashes()
strtok()
error_reporting (E_ALL & -E_NOTICE)
26. The array that stores variables specific to a user's visit
Parse error
drop
substr_count()
$_SESSION[]
27. Variable names cannot begin with _______
numbers
SGML
date()
htmlentities()
28. Use ______ when a variable contains any amount of variables; in general.
$_REQUEST
negative numbers
double quotes
boolean
29. Function used to convert new lines in a variable from a form to <br /> tags so that the data can be formatted correctly.
Magic Constant
integer
nl2br()
0
30. To merge arrays
not
function error_reporting()
octal
array_merge()
31. equivalence
array_merge()
for ($i = 0; $i < count($array); $i++) {statement(s);}
==
PHP
32. Tag to end a php script
ini_set ('display_errors', 1)
<?php
error_reporting (E_ALL)
?>
33. PHP has two conditional: if and ______.
the dollar sign $
&
error_reporting (E_ALL | E_STRICT)
switch
34. returns the number of matches found by a given search string under this format...
preg_match()
ASP
floor()
foreach loop
35. bitwise AND
preg_match()
ceil()
&
variable
36. To check if a constant is already declared
$array[] = item
float
defined()
Object
37. Use ______ when there are no variables in the string
Array
if/elseif/else and switch statements
DTD
single quotes
38. The prefix for a dynamic variable - also known as a variable variable
$$
define()
urlencode()
E_STRICT
39. When used the value can be passed safely through the URL (GET).
string
statement
urlencode()
preg_match()
40. Returns a string with backslashes in front of predefined characters
<?php
addslashes()
+
octal
41. To refer to an item in an array
unset()
$varname[key]
Array
double quotes
42. Document Type Definitions
Notice
<?php
$_REQUEST
DTD
43. a positive or negative number
arsort()
integer
urlencode()
XML
44. a type with two possible values: true and false
?>
rand()
$$
boolean
45. Used to check if a variable has a valid numerical value; strings with numerical values pass.
1
double quotes
is_numeric()
sql
46. To assign keys to the values in an array
getrandmax()
numbers
wordwrap()
array()
47. The output of var_export((float)array());
fopen()
drop
0
rsort()
48. The order of operations.
isset()
negative numbers
Error
precedence
49. Variable names can begin with __________
number_format()
underscores
open source
for ($i = 0; $i < count($array); $i++) {statement(s);}
50. To reset an array _______ the array() function to the array
control structure
drop
reassign
getrandmax()