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 AND
&
ini_set ('display_errors', 1)
boolean
rand()
2. This error arises from misusing a function.
abs()
curly braces
count()
Warning
3. Used to check if a given variable has an "empty" value - no value or 0 or FALSE.
indexed array
int
mysql_fetch_object()
empty()
4. An array whose keys are numbers.
ceil()
indexed array
not
define()
5. Returns a string with backslashes in front of the specified characters
addcslashes()
decimal
loops
isset()
6. container of both data and code
===
Object
count()
sql
7. a storage location in the computer's memory that has a type & a name and a contents
Parse error
fopen()
parentheses
variable
8. equivalence
trim()
html_entity_decode()
==
variable
9. Besides GET and POST ________ can be used to access data but $_POST and $_GET are more precise and therefore preferable.
$_REQUEST
!= inequality
defined()
rsort()
10. _____ is a logical operator
empty()
XOR
sql
mysql
11. The concatenation operator?
the period; .
decimal
mysql_fetch_array()
^
12. Function can you use to format a number with commas
Hex
function error_reporting()
number_format()
Shebang
13. To include files - _______ will give errors and _________ will terminate execution().
wordwrap()
AJAX
include() and require()
HTTP
14. This will show all error reporting except for notice errors.
str_ireplace()
error_reporting (E_ALL & -E_NOTICE)
float
function
15. container of ordered data elements
Array
int
chop()
$_REQUEST
16. Search Engine Optimization
SEO
superglobal
Constant
getrandmax()
17. TRUE or FALSE
defined()
1
boolean
null
18. Used to remove any white space - spaces or newlines or tabs - from the beginning and end of a string - not the middle.
error_reporting (E_ALL | E_STRICT)
trim()
fopen()
preg_split()
19. To create an array
define()
array()
curly braces
Object
20. An array of variables passed with <input /> data
$dbc = mysql_connect(hostname, username, password)
$_POST[]
array_merge()
client-side programing
21. To merge arrays
array_merge()
unset()
defined()
underscores
22. Returns a string with backslashes in front of predefined characters
&
control structure
==
addslashes()
23. Use ______ for search engines or catalogued pages or pages that would be bookmarked.
if/elseif/else and switch statements
0
GET
strlen()
24. Define(NAME,value)
number_format()
curly braces
Constant
<<
25. used to round numeric values.
$dbc = mysql_connect(hostname, username, password)
GET
trim()
round() Function
26. The array that stores variables specific to a user's visit
addcslashes()
$_SESSION[]
$varname[key]
array()
27. This fatal fatal is caused by a semantic mistake: omission of a semicolon or imbalance of quotations or parentheses or braces.
preg_match()
function error_reporting()
$_POST[]
Parse error
28. Function used to find the absolute value of a number or numeric variable
<?php
predefined
abs()
POST
29. Returns a character from a specified ASCII value
string
round() Function
str_ireplace()
chr()
30. The seven main SQL (structured query language) functions are alter - create - delete - _______ - insert - select - update
array_merge()
drop
mysql_close($dbc)
ini_set ('display_errors', 1)
31. To counter htmlentities()
client-side programing
include() and require()
html_entity_decode()
predefined
32. The output of var_export((float)array());
Parse error
0
if/elseif/else and switch statements
Error
33. ____ or key is referred to for a value within an array.
client-side programing
index
HTTP
mysql_fetch_object()
34. Standard Generalized Markup Language
htmlentities()
SGML
Error
associative array
35. identity
===
fopen()
WYSIWYG
Parse error
36. signed integer
int
associative array
mysql_close($dbc)
the dollar sign $
37. ___________ can be used with substr() to count backward
Hex
POST
negative numbers
number_format()
38. EXtensible Markup Language
error_reporting (E_ALL & -E_NOTICE)
chop()
XML
server-side programing
39. To get over quotation marks while using arrays
curly braces
is_numeric()
drop
array
40. The syntax for connecting to a database
$dbc = mysql_connect(hostname, username, password)
predefined variable
htmlspecialchars()
ceil()
41. bitwise left shift
curly braces; ${$total}
===
<<
ASP
42. a type with two possible values: true and false
boolean
if/elseif/else and switch statements
Array
client-side programing
43. the most basic function in PHP used to output information to the page
predefined
$var++ and $var
server-side programing
echo
44. To assign keys to the values in an array
boolean
.=
double quotes
array()
45. function Function used to create a random number
variable
rand()
open source
GET
46. An array whose keys are strings; also known as a hash.
double quotes
HTML
associative array
shuffle()
47. a line of information that can be stored in a variable or used in a function or statement
string
==
defined()
error_reporting (E_ALL | E_STRICT)
48. Hyper Text Markup Language
html_entity_decode()
boolean
HTML
===
49. Hyper Text Transfer Protocol
HTTP
Array
foreach loop
if/elseif/else and switch statements
50. This error refers to a variable with no value.
asort()
Notice
boolean
array()