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. An array whose keys are strings; also known as a hash.
$var++ and $var
associative array
curly braces
.=
2. Used to convert all HTML tags into their entity versions.
Warning
DTD
variable
htmlentities()
3. Similar to mysql_fetch_array() - but cannot be accessed by integer offset
mysql_fetch_object()
urlencode()
mysql_fetch_array()
html_entity_decode()
4. standard notation
&
integer
decimal
+
5. To counter htmlentities()
html_entity_decode()
DTD
isset()
floor()
6. This will not show error reporting - it will be turned off.
getrandmax()
error_reporting (0)
variable
define()
7. signed integer
parentheses
drop
addslashes()
int
8. Variable names cannot begin with _______
client-side programing
loops
DTD
numbers
9. This will show all error reporting except for notice errors.
error_reporting (E_ALL | E_STRICT)
<?php
error_reporting (E_ALL & -E_NOTICE)
reassign
10. To determine the amount of elements in an array
XML
GET
SGML
count()
11. Used to replace a substring with another string - it is not case-sensitive.
Hex
str_ireplace()
SEO
array_merge()
12. the most basic function in PHP used to output information to the page
HTTP
mysql_fetch_object()
E_STRICT
echo
13. Variable names can begin with __________
rsort()
include() and require()
open source
underscores
14. All variables must begin with _________.
define()
the dollar sign $
AJAX
isset()
15. This error arises from misusing a function.
asort()
general
parentheses
Warning
16. a database which is best supported by PHP
variable
open source
str_ireplace()
mysql
17. bitwise AND
&
rand()
echo
double quotes
18. Active Server Pages
preg_match()
chop()
ASP
indexed array
19. $_SERVER is a ________ variable.
strip_tags()
parentheses
$varname[key]
predefined
20. The seven main error reporting constants are: E_NOTICE - E_WARNING - E_PARSE - E_ERROR - E_ALL - _____ - E_DEPRECATED
<?php
E_STRICT
boolean
sql
21. The concatenation assignment operator?
Shebang
include() and require()
$dbc = mysql_connect(hostname, username, password)
.=
22. To reset an array _______ the array() function to the array
reassign
DTD
$_SESSION[]
curly braces; ${$total}
23. This fatal fatal is caused by a semantic mistake: omission of a semicolon or imbalance of quotations or parentheses or braces.
boolean
client-side programing
Parse error
rand()
24. The concatenation operator?
the period; .
Error
include() and require()
double quotes
25. The syntax for connecting to a database
Array
define()
floor()
$dbc = mysql_connect(hostname, username, password)
26. Used to check if a variable has any value (including 0 or FALSE or an empty string).
isset()
superglobal
loops
<?php
27. To delete a variable or an element of an array
unset()
Array
Shebang
urlencode()
28. Tag to end a php script
predefined
?>
<?php
preg_replace()
29. To include files - _______ will give errors and _________ will terminate execution().
include() and require()
round() Function
Error
?>
30. Document Type Definitions
array_merge()
SEO
true
DTD
31. Function used to convert new lines in a variable from a form to <br /> tags so that the data can be formatted correctly.
nl2br()
index
preg_replace()
Warning
32. identity
strlen()
.=
===
Warning
33. To sort values of an array in reversed order
mysql
rsort()
$_POST[]
PHP
34. Hyper Text Transfer Protocol
client-side programing
Hex
strip_tags()
HTTP
35. To sort the values while maintaining the correlation between each value and its key
date()
loops
asort()
sort()
36. Leading 0x: 0x13F or 0xA23
Parse error
true
define()
Hex
37. An array whose keys are numbers.
wordwrap()
array
mysql_fetch_object()
indexed array
38. leading zero: 0100 or 0567
SEO
octal
int
$array[] = item
39. Creates a pointer to a file with the declared mode (read - write -etc.).
nl2br()
preg_match()
fopen()
addcslashes()
40. Use ________ to have multiple quotations in one string
underscores
function error_reporting()
$array[] = item
the escape character ''
41. a language in which to make querys to a database with
sql
array()
integer
numbers
42. _________ can be used in conditional statements to set precedence
rand()
asort()
parentheses
Hex
43. Online applications and resources which are available to the general public with very few restrictions
decimal
$_POST[]
the period; .
open source
44. To refer to an item in an array
$$
$varname[key]
octal
crypt()
45. TRUE or FALSE
statement
boolean
sql
urlencode()
46. Hyper Text Markup Language
>>
include() and require()
HTML
sort()
47. Asynchronous Javascript And XML
AJAX
int
switch
general
48. _______ is a comparison operator
round() Function
Warning
indexed array
!= inequality
49. ____ or key is referred to for a value within an array.
array()
index
strlen()
reassign
50. To declare a constant
mysql
open source
define()
foreach