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. Active Server Pages
ASP
substr_count()
DTD
!= inequality
2. Besides GET and POST ________ can be used to access data but $_POST and $_GET are more precise and therefore preferable.
rand()
$_REQUEST
WYSIWYG
===
3. Variable names can begin with __________
underscores
numbers
$_POST[]
str_word_count()
4. Variable names cannot begin with _______
ini_set ('display_errors', 1)
shuffle()
numbers
number_format()
5. Hyper Text Markup Language
SEO
$_POST[]
ceil()
HTML
6. Use ________ to have multiple quotations in one string
array
strtok()
the escape character ''
error_reporting (0)
7. container of both data and code
Object
chop()
Notice
mysql_close($dbc)
8. To counter htmlentities()
define()
error_reporting (E_ALL)
isset()
html_entity_decode()
9. Used to check if a variable has a valid numerical value; strings with numerical values pass.
sort()
is_numeric()
integer
HTTP
10. This will show all error reporting except for notice errors.
index
error_reporting (E_ALL & -E_NOTICE)
mysql_fetch_object()
predefined variable
11. Leading 0x: 0x13F or 0xA23
array_merge()
Hex
date()
mysql_fetch_array()
12. To refer to an element in a multidimensional array list the indices in order of _____ to more precise;
==
general
strip_tags()
Warning
13. An array of variables passed in the URL
&
$_GET[]
sql
boolean
14. any programing language where the script is parsed on the server
XML
server-side programing
$_GET[]
decimal
15. Hyper Text Transfer Protocol
decimal
HTTP
empty()
the dollar sign $
16. The output of var_export((float)array(0));
array()
1
Warning
drop
17. This will not show error reporting - it will be turned off.
ceil()
error_reporting (0)
is_numeric()
reassign
18. To sort values of an array without regard to the keys
array_merge()
server-side programing
error_reporting (E_ALL & -E_NOTICE)
sort()
19. The syntax for connecting to a database
$dbc = mysql_connect(hostname, username, password)
round() Function
urlencode()
loops
20. All variables must begin with _________.
AJAX
the dollar sign $
Object
$array[] = item
21. returns the number of matches found by a given search string under this format...
bin2hex()
array
preg_match()
loops
22. To reset an array _______ the array() function to the array
mysql_close($dbc)
str_word_count()
int
reassign
23. To refer to an item in an array
client-side programing
+
is_numeric()
$varname[key]
24. searches the subject for matches to a given pattern replaced with the given replacement text
variable
preg_replace()
predefined variable
!= inequality
25. A conditional or loop is a ________________.
$_POST[]
echo
<<
control structure
26. To delete a variable or an element of an array
unset()
!= inequality
Error
===
27. Used to check if a variable has any value (including 0 or FALSE or an empty string).
isset()
server-side programing
boolean
GET
28. a type with two possible values: true and false
error_reporting (0)
&
boolean
0
29. To check if a constant is already declared
defined()
XOR
preg_replace()
&
30. To declare a constant
open source
strtok()
define()
control structure
31. Returns an array that corresponds to the fetched row of MySQL data and moves the internal data pointer ahead
$array[] = item
GET
mysql_fetch_array()
error_reporting (E_ALL & -E_NOTICE)
32. To reorganise the array randomly
float
strtok()
not
shuffle()
33. the most basic function in PHP used to output information to the page
1
negative numbers
echo
array_merge()
34. Predefined constants such as __LINE__ or __FILE__ or __FUNCTION__ or __CLASS__ and __METHOD__
Magic Constant
>>
mysql_fetch_array()
Constant
35. To sort by the keys while maintaining the correlation between the key and its value
POST
Error
Magic Constant
ksort()
36. The concatenation assignment operator?
drop
.=
predefined
Warning
37. 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 __________.
preg_match()
Notice
curly braces; ${$total}
strtok()
38. addition
double quotes
+
fopen()
abs()
39. ___________ can be used with substr() to count backward
Parse error
negative numbers
is_numeric()
$$
40. To iterate over the values of an array
for ($i = 0; $i < count($array); $i++) {statement(s);}
boolean
shuffle()
$$
41. Search Engine Optimization
WYSIWYG
loops
Parse error
SEO
42. leading zero: 0100 or 0567
fopen()
preg_split()
indexed array
octal
43. To include files - _______ will give errors and _________ will terminate execution().
include() and require()
XOR
negative numbers
number_format()
44. Use ______ when there are no variables in the string
single quotes
round() Function
XML
abs()
45. $_SERVER is a ________ variable.
trim()
ASP
predefined
floor()
46. either hasn't yet been set or is assigned NULL value
null
?>
open source
empty()
47. Tag to begin a php script
!= inequality
ASP
isset()
<?php
48. To determine the amount of elements in an array
Parse error
count()
^
predefined
49. a language in which to make querys to a database with
open source
sql
ceil()
$array[] = item
50. Used to check if a given variable has an "empty" value - no value or 0 or FALSE.
XML
array()
empty()
curly braces; ${$total}