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. To counter htmlentities()
ceil()
html_entity_decode()
array()
Notice
2. The name of the #! used to designate the location of the PHP binary
rsort()
mysql
variable
Shebang
3. 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 __________.
index
drop
fopen()
curly braces; ${$total}
4. This fatal error arises from memory allocation problem.
$$
preg_match()
Error
fopen()
5. To get time data
$array[] = item
getrandmax()
&
date()
6. Variable names cannot begin with _______
string
^
client-side programing
numbers
7. a database which is best supported by PHP
client-side programing
$_REQUEST
^
mysql
8. collection of binary data
mysql_close($dbc)
asort()
echo
string
9. To word wrap after a certain amount of characters.
Constant
wordwrap()
if/elseif/else and switch statements
list()
10. bitwise right shift
>>
the dollar sign $
DTD
$_GET[]
11. any programing language where the script is parsed on the server
server-side programing
list()
htmlspecialchars()
ksort()
12. The concatenation assignment operator?
<<
decimal
boolean
.=
13. All variables must begin with _________.
the dollar sign $
addcslashes()
empty()
echo
14. The array that stores variables specific to a user's visit
foreach loop
preg_match()
negative numbers
$_SESSION[]
15. To iterate over the keys and values of an array
foreach loop
strip_tags()
predefined variable
precedence
16. Use _______ for passwords or pages that would not be bookmarked or pages that require security.
array
string
foreach loop
POST
17. Shorthand used to increment and decrement
$var++ and $var
rsort()
chop()
parentheses
18. To refer to an item in an array
>>
str_ireplace()
curly braces
$varname[key]
19. Define(NAME,value)
Constant
addcslashes()
loops
+
20. Search Engine Optimization
E_STRICT
Object
SEO
count()
21. To find how many substrings are in a string
mysql_fetch_array()
!= inequality
Shebang
substr_count()
22. $_POST Data sent using POST found is sent to _______
open source
null
Notice
predefined variable
23. Alias of rtrim()
defined()
<?php
SGML
chop()
24. the most basic function in PHP used to output information to the page
echo
is_numeric()
substr_count()
>>
25. EXtensible Markup Language
true
shuffle()
predefined
XML
26. Used to find the length of a string
strlen()
preg_split()
error_reporting (E_ALL & -E_NOTICE)
urlencode()
27. Used to create a substring (referred to as a token) from a larger string
function
strtok()
loops
1
28. identity
function error_reporting()
===
&
$_REQUEST
29. says 'if' this then do this 'else' do this or 'while' this do this
GET
string
switch
statement
30. bitwise left shift
mysql
fopen()
<<
htmlspecialchars()
31. To sort by the keys while maintaining the correlation between the key and its value
parentheses
shuffle()
Object
ksort()
32. This error refers to a variable with no value.
!= inequality
$_GET[]
Notice
urlencode()
33. To merge arrays
htmlspecialchars()
precedence
HTTP
array_merge()
34. A data structure that can hold a number of items of data of the same type eg. a list of names
date()
htmlentities()
octal
array
35. a type with two possible values: true and false
true
strtok()
Notice
boolean
36. When used the value can be passed safely through the URL (GET).
control structure
urlencode()
$varname[key]
the escape character ''
37. Use ______ when a variable contains any amount of variables; in general.
double quotes
integer
.=
rsort()
38. To create an array
$varname[key]
precedence
array()
XOR
39. addition
HTTP
single quotes
+
number_format()
40. a language in which to make querys to a database with
array()
sql
$$
reassign
41. This fatal fatal is caused by a semantic mistake: omission of a semicolon or imbalance of quotations or parentheses or braces.
Parse error
$_SESSION[]
str_ireplace()
$dbc = mysql_connect(hostname, username, password)
42. Function used to find the absolute value of a number or numeric variable
abs()
curly braces; ${$total}
boolean
the dollar sign $
43. _____ is a logical operator
AJAX
empty()
XOR
predefined
44. signed integer
predefined
int
is_numeric()
PHP
45. This will show all error reporting except for notice errors.
addcslashes()
error_reporting (E_ALL & -E_NOTICE)
client-side programing
getrandmax()
46. standard notation
decimal
0
boolean
client-side programing
47. Use ________ to have multiple quotations in one string
$$
addslashes()
single quotes
the escape character ''
48. $_POST and $_GET are ________ variables.
floor()
XOR
predefined
is_numeric()
49. The seven main error reporting constants are: E_NOTICE - E_WARNING - E_PARSE - E_ERROR - E_ALL - _____ - E_DEPRECATED
server-side programing
Object
decimal
E_STRICT
50. Asynchronous Javascript And XML
strlen()
ini_set ('display_errors', 1)
AJAX
predefined