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. This fatal error arises from memory allocation problem.
control structure
error_reporting (E_ALL & -E_NOTICE)
urlencode()
Error
2. a line of information that can be stored in a variable or used in a function or statement
array_merge()
ceil()
string
$_POST[]
3. Uses two arguments: constant name and constant definition
<<
for ($i = 0; $i < count($array); $i++) {statement(s);}
nl2br()
define()
4. To find how many substrings are in a string
$_GET[]
null
substr_count()
float
5. Use ________ to have multiple quotations in one string
XML
Parse error
variable
the escape character ''
6. Returns a character from a specified ASCII value
strip_tags()
associative array
chr()
precedence
7. Returns a string with backslashes in front of predefined characters
HTML
POST
mysql
addslashes()
8. Used to convert all HTML tags into their entity versions.
decimal
htmlentities()
Constant
addslashes()
9. Control structure that continue exit - they perform specific statements for a determined number of iterations.
$varname[key]
include() and require()
unset()
loops
10. Variable names cannot begin with _______
Parse error
.=
numbers
error_reporting (0)
11. An array of variables passed in the URL
$$
$_GET[]
Notice
preg_split()
12. 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 __________.
list()
addslashes()
preg_match()
curly braces; ${$total}
13. An array whose keys are strings; also known as a hash.
rsort()
error_reporting (E_ALL | E_STRICT)
is_numeric()
associative array
14. the most basic function in PHP used to output information to the page
decimal
1
asort()
echo
15. Used to check if a variable has a valid numerical value; strings with numerical values pass.
superglobal
echo
is_numeric()
Array
16. Asynchronous Javascript And XML
shuffle()
AJAX
function
nl2br()
17. A data structure that can hold a number of items of data of the same type eg. a list of names
$varname[key]
general
0
array
18. Operators used to operate and assign
DTD
+= or -= or *= or /=
float
array()
19. $_SERVER is a ________ variable.
$$
the dollar sign $
parentheses
predefined
20. This will show all errors that fall under E_ALL or E_STRICT - the pipe | is used for 'or' so that errors that fall under either will be shown.
DTD
error_reporting (E_ALL | E_STRICT)
$_POST[]
double quotes
21. collection of binary data
double quotes
boolean
for ($i = 0; $i < count($array); $i++) {statement(s);}
string
22. Similar to mysql_fetch_array() - but cannot be accessed by integer offset
HTTP
mysql_fetch_object()
$var++ and $var
mysql_close($dbc)
23. This will not show error reporting - it will be turned off.
?>
Error
define()
error_reporting (0)
24. This fatal fatal is caused by a semantic mistake: omission of a semicolon or imbalance of quotations or parentheses or braces.
loops
Parse error
rsort()
str_ireplace()
25. _________ can be used in conditional statements to set precedence
open source
parentheses
.=
error_reporting (E_ALL)
26. bitwise left shift
float
<<
DTD
$_SESSION[]
27. Used to find the length of a string
boolean
the dollar sign $
strlen()
mysql
28. Function used to find the absolute value of a number or numeric variable
error_reporting (E_ALL & -E_NOTICE)
abs()
addslashes()
^
29. Active Server Pages
preg_match()
integer
ASP
count()
30. says 'if' this then do this 'else' do this or 'while' this do this
statement
Magic Constant
error_reporting (E_ALL | E_STRICT)
unset()
31. The seven main SQL (structured query language) functions are alter - create - delete - _______ - insert - select - update
<<
drop
WYSIWYG
str_ireplace()
32. The three types of loops in PHP are: for - while - ____.
double quotes
foreach
preg_replace()
statement
33. The output of var_export((float)array());
null
predefined variable
0
XML
34. $_POST Data sent using POST found is sent to _______
html_entity_decode()
predefined variable
associative array
SEO
35. Used to remove any white space - spaces or newlines or tabs - from the beginning and end of a string - not the middle.
trim()
addslashes()
0
$_GET[]
36. An array whose keys are numbers.
Array
echo
indexed array
list()
37. To refer to an item in an array
Hex
open source
string
$varname[key]
38. PHP has two conditional: if and ______.
reassign
not
switch
<?php
39. Returns an array that corresponds to the fetched row of MySQL data and moves the internal data pointer ahead
mysql_fetch_array()
preg_replace()
rsort()
addcslashes()
40. This error arises from misusing a function.
mysql_fetch_object()
Warning
unset()
octal
41. To sort values of an array without regard to the keys
error_reporting (E_ALL & -E_NOTICE)
underscores
float
sort()
42. Predefined constants such as __LINE__ or __FILE__ or __FUNCTION__ or __CLASS__ and __METHOD__
XML
server-side programing
Magic Constant
addslashes()
43. Variable names can begin with __________
1
mysql_fetch_object()
string
underscores
44. To close a connection between a database
Magic Constant
GET
shuffle()
mysql_close($dbc)
45. does a certain action when called upon
function
>>
strlen()
index
46. The syntax for connecting to a database
defined()
Magic Constant
preg_split()
$dbc = mysql_connect(hostname, username, password)
47. Function used to round up to the highest integer
ceil()
count()
statement
parentheses
48. Define(NAME,value)
indexed array
$dbc = mysql_connect(hostname, username, password)
Constant
open source
49. identity
===
==
the escape character ''
define()
50. Used to check if a variable has any value (including 0 or FALSE or an empty string).
isset()
server-side programing
foreach
reassign