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?
the period; .
==
ceil()
float
2. To sort the values while maintaining the correlation between each value and its key - in reversed order
drop
arsort()
Notice
mysql_close($dbc)
3. To iterate over the keys and values of an array
arsort()
htmlentities()
foreach loop
===
4. When used the value can be passed safely through the URL (GET).
array()
wordwrap()
urlencode()
substr_count()
5. Hyper Text Markup Language
$$
HTML
nl2br()
predefined variable
6. returns the number of matches found by a given search string under this format...
boolean
null
$_GET[]
preg_match()
7. ___________ can be used with substr() to count backward
negative numbers
the escape character ''
indexed array
SEO
8. Shorthand used to increment and decrement
preg_split()
$var++ and $var
AJAX
Parse error
9. Define(NAME,value)
Constant
Parse error
isset()
associative array
10. ____ or key is referred to for a value within an array.
not
index
$_REQUEST
error_reporting (E_ALL)
11. Used to replace a substring with another string - it is not case-sensitive.
^
Constant
octal
str_ireplace()
12. An array of variables passed with <input /> data
SGML
$_POST[]
>>
general
13. To create an array
getrandmax()
$array[] = item
array()
addcslashes()
14. Returns a string with backslashes in front of predefined characters
decimal
not
+
addslashes()
15. The array that stores variables specific to a user's visit
reassign
POST
mysql_fetch_array()
$_SESSION[]
16. a database which is best supported by PHP
fopen()
index
indexed array
mysql
17. To refer to an item in an array
error_reporting (E_ALL | E_STRICT)
predefined variable
$varname[key]
Error
18. To assign keys to the values in an array
isset()
HTTP
fopen()
array()
19. $_POST Data sent using POST found is sent to _______
predefined variable
control structure
substr_count()
$dbc = mysql_connect(hostname, username, password)
20. _____ is a logical operator
+= or -= or *= or /=
$var++ and $var
XOR
predefined
21. To word wrap after a certain amount of characters.
negative numbers
wordwrap()
<?php
html_entity_decode()
22. This will not show error reporting - it will be turned off.
for ($i = 0; $i < count($array); $i++) {statement(s);}
error_reporting (0)
Object
predefined
23. To check if a constant is already declared
defined()
open source
the period; .
error_reporting (E_ALL)
24. To include files - _______ will give errors and _________ will terminate execution().
include() and require()
SGML
single quotes
$$
25. Predefined constants such as __LINE__ or __FILE__ or __FUNCTION__ or __CLASS__ and __METHOD__
chr()
define()
mysql_fetch_object()
Magic Constant
26. Function that contains the highest value that rand() can have randomly
$varname[key]
getrandmax()
GET
html_entity_decode()
27. $_SERVER - $_POST - $_GET - $_COOKIE - $_SESSION - $_ENV; special arrays.
count()
>>
wordwrap()
superglobal
28. Tag to begin a php script
Error
unset()
error_reporting (0)
<?php
29. Returns a string with backslashes in front of the specified characters
strip_tags()
foreach
count()
addcslashes()
30. Function used to find the absolute value of a number or numeric variable
abs()
&
html_entity_decode()
the dollar sign $
31. Hypertext Preprocessor - a server-side programing language used to create webpages
count()
PHP
define()
int
32. function Function used to create a random number
number_format()
define()
rand()
drop
33. leading zero: 0100 or 0567
boolean
$dbc = mysql_connect(hostname, username, password)
str_word_count()
octal
34. All variables must begin with _________.
the dollar sign $
$_SESSION[]
Parse error
function error_reporting()
35. any programing language where the user must support the language the script is written in
$_REQUEST
client-side programing
strip_tags()
ksort()
36. To get over quotation marks while using arrays
general
curly braces
mysql_fetch_array()
predefined
37. Creates a pointer to a file with the declared mode (read - write -etc.).
AJAX
mysql_close($dbc)
empty()
fopen()
38. The concatenation assignment operator?
octal
.=
numbers
error_reporting (E_ALL | E_STRICT)
39. Function used to round down to the lowest integer
&
null
floor()
array()
40. This error arises from misusing a function.
Warning
floor()
str_word_count()
number_format()
41. This fatal error arises from memory allocation problem.
$varname[key]
float
integer
Error
42. To refer to an element in a multidimensional array list the indices in order of _____ to more precise;
GET
XOR
$_POST[]
general
43. An array whose keys are numbers.
array()
curly braces
indexed array
htmlspecialchars()
44. Used to convert all HTML tags into their entity versions.
Shebang
htmlentities()
Parse error
ceil()
45. bitwise AND
&
htmlentities()
parentheses
define()
46. Used to convert certain HTML tags into their entity versions.
general
getrandmax()
htmlspecialchars()
addcslashes()
47. To iterate over the values of an array
getrandmax()
for ($i = 0; $i < count($array); $i++) {statement(s);}
Parse error
empty()
48. $_POST and $_GET are ________ variables.
function error_reporting()
string
SEO
predefined
49. TRUE or FALSE
Magic Constant
define()
boolean
reassign
50. Tag to end a php script
chop()
?>
$$
the escape character ''