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. bitwise right shift
curly braces
>>
the escape character ''
<?php
2. The syntax for connecting to a database
array()
SEO
$dbc = mysql_connect(hostname, username, password)
Error
3. Used to encrypt values - it is a one-way encryption method
==
XML
arsort()
crypt()
4. Hyper Text Markup Language
HTML
$dbc = mysql_connect(hostname, username, password)
Warning
GET
5. Function can you use to format a number with commas
number_format()
predefined
array()
HTTP
6. Variable names can begin with __________
underscores
foreach
strlen()
function
7. To sort by the keys while maintaining the correlation between the key and its value
nl2br()
ksort()
Magic Constant
Array
8. Returns an array that corresponds to the fetched row of MySQL data and moves the internal data pointer ahead
Shebang
mysql_fetch_array()
underscores
unset()
9. print $_SERVER will _____ work if you use the print function on arrays.
not
mysql
$array[] = item
strip_tags()
10. _________ can be used in conditional statements to set precedence
HTML
predefined
parentheses
include() and require()
11. PHP has two conditional: if and ______.
Parse error
switch
isset()
mysql_fetch_object()
12. Search Engine Optimization
predefined
.=
SEO
Magic Constant
13. This fatal fatal is caused by a semantic mistake: omission of a semicolon or imbalance of quotations or parentheses or braces.
.=
strip_tags()
loops
Parse error
14. collection of binary data
string
HTTP
$var++ and $var
Hex
15. The prefix for a dynamic variable - also known as a variable variable
$$
chop()
list()
==
16. signed floating-point value
numbers
chop()
Magic Constant
float
17. Returns a string with backslashes in front of predefined characters
$_POST[]
str_ireplace()
numbers
addslashes()
18. Define(NAME,value)
predefined
$$
trim()
Constant
19. Besides GET and POST ________ can be used to access data but $_POST and $_GET are more precise and therefore preferable.
array
$_REQUEST
!= inequality
mysql_fetch_object()
20. 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 __________.
crypt()
curly braces; ${$total}
Parse error
define()
21. Function used to convert new lines in a variable from a form to <br /> tags so that the data can be formatted correctly.
the escape character ''
list()
Array
nl2br()
22. standard notation
error_reporting (E_ALL & -E_NOTICE)
server-side programing
precedence
decimal
23. bitwise XOR
^
GET
WYSIWYG
AJAX
24. Returns a string with backslashes in front of the specified characters
addcslashes()
function
for ($i = 0; $i < count($array); $i++) {statement(s);}
ceil()
25. any programing language where the user must support the language the script is written in
E_STRICT
ASP
client-side programing
switch
26. Online applications and resources which are available to the general public with very few restrictions
int
client-side programing
>>
open source
27. ___________ can be used with substr() to count backward
ksort()
negative numbers
shuffle()
$_SESSION[]
28. To close a connection between a database
$_REQUEST
chop()
predefined
mysql_close($dbc)
29. allows you to split strings based on more complex rules
the escape character ''
preg_split()
ceil()
isset()
30. $_POST Data sent using POST found is sent to _______
if/elseif/else and switch statements
strlen()
Error
predefined variable
31. An array whose keys are numbers.
indexed array
is_numeric()
associative array
0
32. The output of var_export((float)array(0));
1
bin2hex()
list()
Error
33. This will show all error reporting except for notice errors.
$_REQUEST
DTD
error_reporting (E_ALL & -E_NOTICE)
associative array
34. This error refers to a variable with no value.
array()
$varname[key]
!= inequality
Notice
35. Used to find the length of a string
Object
underscores
strlen()
Magic Constant
36. The ouput of var_export((bool)"NULL");
true
fopen()
curly braces; ${$total}
integer
37. a database which is best supported by PHP
empty()
count()
urlencode()
mysql
38. Used to create a substring (referred to as a token) from a larger string
indexed array
strtok()
POST
$varname[key]
39. Use ______ for search engines or catalogued pages or pages that would be bookmarked.
Magic Constant
drop
>>
GET
40. This will not show error reporting - it will be turned off.
error_reporting (0)
mysql
crypt()
control structure
41. Used to convert all HTML tags into their entity versions.
client-side programing
predefined variable
Array
htmlentities()
42. When used the value can be passed safely through the URL (GET).
urlencode()
str_ireplace()
variable
html_entity_decode()
43. a line of information that can be stored in a variable or used in a function or statement
string
curly braces
double quotes
integer
44. To create an array
DTD
control structure
function error_reporting()
array()
45. $_SERVER is a ________ variable.
AJAX
single quotes
Array
predefined
46. container of both data and code
array()
Object
the period; .
&
47. EXtensible Markup Language
mysql_close($dbc)
XML
SEO
!= inequality
48. An array of variables passed with <input /> data
!= inequality
boolean
$_POST[]
rand()
49. a type with two possible values: true and false
SEO
boolean
PHP
int
50. Used to check if a variable has a valid numerical value; strings with numerical values pass.
array_merge()
WYSIWYG
is_numeric()
sql