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. Asynchronous Javascript And XML
abs()
client-side programing
AJAX
DTD
2. What You See Is What You Get
addcslashes()
ksort()
strip_tags()
WYSIWYG
3. Standard Generalized Markup Language
ksort()
SGML
+
integer
4. The concatenation operator?
the period; .
1
the dollar sign $
Notice
5. a positive or negative number
mysql_fetch_array()
rsort()
Parse error
integer
6. Variable names can begin with __________
underscores
preg_replace()
array()
arsort()
7. Search Engine Optimization
POST
$_POST[]
SEO
urlencode()
8. A data structure that can hold a number of items of data of the same type eg. a list of names
array
$_POST[]
Notice
mysql
9. To sort values of an array in reversed order
reassign
Parse error
rsort()
<<
10. Function used to find the absolute value of a number or numeric variable
null
XML
array_merge()
abs()
11. A conditional or loop is a ________________.
strlen()
control structure
Array
ksort()
12. Active Server Pages
urlencode()
echo
arsort()
ASP
13. returns the number of matches found by a given search string under this format...
preg_match()
urlencode()
fopen()
switch
14. Used to check if a variable has a valid numerical value; strings with numerical values pass.
urlencode()
defined()
is_numeric()
html_entity_decode()
15. The ouput of var_export((bool)"NULL");
null
error_reporting (0)
true
round() Function
16. PHP has two conditional: if and ______.
variable
switch
float
general
17. Similar to mysql_fetch_array() - but cannot be accessed by integer offset
integer
?>
mysql_fetch_object()
abs()
18. _____ is a logical operator
boolean
XOR
error_reporting (E_ALL | E_STRICT)
$$
19. does a certain action when called upon
octal
double quotes
function
mysql_close($dbc)
20. The three types of loops in PHP are: for - while - ____.
ksort()
fopen()
server-side programing
foreach
21. The output of var_export((float)array());
array()
0
array()
define()
22. To assign array element values to individual variables
list()
rsort()
html_entity_decode()
preg_replace()
23. This fatal error arises from memory allocation problem.
Error
+
error_reporting (E_ALL | E_STRICT)
predefined variable
24. the most basic function in PHP used to output information to the page
echo
SEO
strip_tags()
statement
25. To declare a constant
associative array
double quotes
urlencode()
define()
26. EXtensible Markup Language
number_format()
XML
decimal
SEO
27. $_SERVER is a ________ variable.
htmlentities()
crypt()
predefined
error_reporting (E_ALL | E_STRICT)
28. Control structure that continue exit - they perform specific statements for a determined number of iterations.
associative array
SGML
parentheses
loops
29. a line of information that can be stored in a variable or used in a function or statement
string
preg_replace()
fopen()
echo
30. To close a connection between a database
substr_count()
predefined
mysql_close($dbc)
curly braces; ${$total}
31. Alias of rtrim()
chop()
error_reporting (E_ALL)
SEO
AJAX
32. Used to replace a substring with another string - it is not case-sensitive.
round() Function
preg_replace()
str_ireplace()
the period; .
33. $_SERVER - $_POST - $_GET - $_COOKIE - $_SESSION - $_ENV; special arrays.
null
arsort()
superglobal
isset()
34. The order of operations.
precedence
str_word_count()
Warning
negative numbers
35. 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 __________.
Error
decimal
curly braces; ${$total}
$varname[key]
36. To determine the amount of elements in an array
strip_tags()
count()
octal
AJAX
37. Hypertext Preprocessor - a server-side programing language used to create webpages
PHP
strtok()
is_numeric()
addcslashes()
38. container of both data and code
float
Object
the period; .
null
39. When used the value can be passed safely through the URL (GET).
urlencode()
HTML
foreach
<?php
40. says 'if' this then do this 'else' do this or 'while' this do this
?>
abs()
double quotes
statement
41. ____ or key is referred to for a value within an array.
substr_count()
index
error_reporting (E_ALL | E_STRICT)
predefined
42. Tag to end a php script
?>
>>
single quotes
&
43. Used to find the length of a string
error_reporting (E_ALL)
strlen()
abs()
preg_match()
44. standard notation
true
defined()
decimal
strtok()
45. Returns a string with backslashes in front of the specified characters
list()
array()
rsort()
addcslashes()
46. leading zero: 0100 or 0567
ksort()
error_reporting (E_ALL)
octal
&
47. Used to convert all HTML tags into their entity versions.
htmlentities()
nl2br()
string
general
48. a type with two possible values: true and false
boolean
predefined variable
curly braces; ${$total}
1
49. To reorganise the array randomly
array
shuffle()
WYSIWYG
html_entity_decode()
50. This fatal fatal is caused by a semantic mistake: omission of a semicolon or imbalance of quotations or parentheses or braces.
^
single quotes
Parse error
htmlentities()