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. a line of information that can be stored in a variable or used in a function or statement
negative numbers
string
true
function error_reporting()
2. Used to replace a substring with another string - it is not case-sensitive.
urlencode()
str_ireplace()
server-side programing
!= inequality
3. An array whose keys are strings; also known as a hash.
<?php
strip_tags()
mysql_fetch_object()
associative array
4. says 'if' this then do this 'else' do this or 'while' this do this
foreach loop
count()
strtok()
statement
5. The three types of loops in PHP are: for - while - ____.
list()
HTTP
foreach
rand()
6. What You See Is What You Get
.=
index
WYSIWYG
Array
7. This fatal fatal is caused by a semantic mistake: omission of a semicolon or imbalance of quotations or parentheses or braces.
foreach
Error
general
Parse error
8. To word wrap after a certain amount of characters.
reassign
wordwrap()
precedence
XML
9. Returns a string with backslashes in front of the specified characters
addcslashes()
ASP
the period; .
single quotes
10. This error arises from misusing a function.
Warning
chr()
substr_count()
double quotes
11. This fatal error arises from memory allocation problem.
double quotes
octal
for ($i = 0; $i < count($array); $i++) {statement(s);}
Error
12. Asynchronous Javascript And XML
boolean
AJAX
arsort()
XOR
13. container of ordered data elements
Magic Constant
Array
abs()
int
14. Alias of rtrim()
===
getrandmax()
chop()
indexed array
15. Use _______ for passwords or pages that would not be bookmarked or pages that require security.
asort()
curly braces
error_reporting (0)
POST
16. To reset an array _______ the array() function to the array
reassign
underscores
sort()
SGML
17. The output of var_export((float)array(0));
sort()
1
Parse error
is_numeric()
18. a language in which to make querys to a database with
array
sql
error_reporting (0)
single quotes
19. To determine the amount of elements in an array
count()
ksort()
substr_count()
$_SESSION[]
20. EXtensible Markup Language
string
$_GET[]
XML
error_reporting (0)
21. Used to remove any white space - spaces or newlines or tabs - from the beginning and end of a string - not the middle.
trim()
boolean
isset()
error_reporting (E_ALL | E_STRICT)
22. The ouput of var_export((bool)"NULL");
sort()
strtok()
foreach
true
23. The output of var_export((float)array());
not
error_reporting (E_ALL)
count()
0
24. Function can you use to format a number with commas
list()
chop()
XOR
number_format()
25. Function used to find the absolute value of a number or numeric variable
include() and require()
integer
round() Function
abs()
26. When used the value can be passed safely through the URL (GET).
rsort()
arsort()
urlencode()
$_GET[]
27. print $_SERVER will _____ work if you use the print function on arrays.
define()
Constant
client-side programing
not
28. The array that stores variables specific to a user's visit
$_SESSION[]
ksort()
the escape character ''
is_numeric()
29. To assign array element values to individual variables
error_reporting (E_ALL)
ceil()
WYSIWYG
list()
30. All variables must begin with _________.
open source
the dollar sign $
echo
chr()
31. The seven main error reporting constants are: E_NOTICE - E_WARNING - E_PARSE - E_ERROR - E_ALL - _____ - E_DEPRECATED
the period; .
E_STRICT
double quotes
preg_split()
32. 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 __________.
str_word_count()
curly braces; ${$total}
chr()
$_GET[]
33. To remove all HTML and PHP tags.
general
client-side programing
GET
strip_tags()
34. Operators used to operate and assign
the period; .
string
+= or -= or *= or /=
?>
35. either hasn't yet been set or is assigned NULL value
null
$dbc = mysql_connect(hostname, username, password)
addcslashes()
open source
36. To create an array
floor()
array()
Notice
1
37. To get over quotation marks while using arrays
curly braces
include() and require()
^
error_reporting (0)
38. To declare a constant
define()
1
PHP
is_numeric()
39. searches the subject for matches to a given pattern replaced with the given replacement text
Array
underscores
preg_match()
preg_replace()
40. Used to find the amount of words in a string.
echo
$_REQUEST
strip_tags()
str_word_count()
41. Active Server Pages
foreach
include() and require()
define()
ASP
42. standard notation
boolean
decimal
Error
sql
43. To merge arrays
empty()
predefined variable
array_merge()
+= or -= or *= or /=
44. Shorthand used to increment and decrement
associative array
&
$var++ and $var
error_reporting (E_ALL & -E_NOTICE)
45. To sort values of an array in reversed order
rsort()
curly braces
.=
associative array
46. The prefix for a dynamic variable - also known as a variable variable
$$
$_REQUEST
>>
$_POST[]
47. function Function used to create a random number
+
!= inequality
rand()
$_GET[]
48. Use ______ for search engines or catalogued pages or pages that would be bookmarked.
XOR
client-side programing
GET
preg_replace()
49. To append elements to an array - this will assign item to the next available index; associative arrays get messy.
$array[] = item
Shebang
function
getrandmax()
50. Function used to round down to the lowest integer
loops
superglobal
float
floor()