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 refer to an item in an array
$varname[key]
isset()
echo
number_format()
2. equivalence
htmlspecialchars()
==
ksort()
0
3. When used the value can be passed safely through the URL (GET).
statement
sql
floor()
urlencode()
4. To remove all HTML and PHP tags.
strlen()
strip_tags()
Warning
Parse error
5. This will show all error reporting except for notice errors.
array
the period; .
predefined
error_reporting (E_ALL & -E_NOTICE)
6. Predefined constants such as __LINE__ or __FILE__ or __FUNCTION__ or __CLASS__ and __METHOD__
GET
Magic Constant
array()
the escape character ''
7. a language in which to make querys to a database with
str_word_count()
$varname[key]
sql
DTD
8. Returns a character from a specified ASCII value
XML
chr()
round() Function
mysql_close($dbc)
9. _________ can be used in conditional statements to set precedence
parentheses
round() Function
$varname[key]
$_REQUEST
10. To sort values of an array in reversed order
control structure
Array
rsort()
associative array
11. To check if a constant is already declared
error_reporting (E_ALL | E_STRICT)
single quotes
defined()
chr()
12. Function used to round up to the highest integer
<<
str_ireplace()
ini_set ('display_errors', 1)
ceil()
13. To include files - _______ will give errors and _________ will terminate execution().
include() and require()
negative numbers
integer
true
14. bitwise left shift
the dollar sign $
wordwrap()
<<
$$
15. returns the number of matches found by a given search string under this format...
$dbc = mysql_connect(hostname, username, password)
preg_match()
defined()
chr()
16. collection of binary data
negative numbers
wordwrap()
function error_reporting()
string
17. A conditional or loop is a ________________.
1
htmlspecialchars()
control structure
array_merge()
18. Used to encrypt values - it is a one-way encryption method
AJAX
getrandmax()
switch
crypt()
19. Hyper Text Markup Language
associative array
$_POST[]
boolean
HTML
20. addition
indexed array
general
+
HTML
21. All variables must begin with _________.
strtok()
the dollar sign $
include() and require()
$var++ and $var
22. container of ordered data elements
drop
Array
define()
string
23. The syntax for connecting to a database
int
$dbc = mysql_connect(hostname, username, password)
predefined
str_word_count()
24. a storage location in the computer's memory that has a type & a name and a contents
$dbc = mysql_connect(hostname, username, password)
GET
AJAX
variable
25. To sort by the keys while maintaining the correlation between the key and its value
ksort()
$_SESSION[]
Array
Object
26. ___________ can be used with substr() to count backward
&
isset()
negative numbers
preg_split()
27. Returns an array that corresponds to the fetched row of MySQL data and moves the internal data pointer ahead
foreach
abs()
client-side programing
mysql_fetch_array()
28. To create an array
sort()
int
array()
bin2hex()
29. allows you to split strings based on more complex rules
PHP
preg_split()
defined()
mysql_fetch_object()
30. Used to check if a variable has any value (including 0 or FALSE or an empty string).
superglobal
isset()
Hex
float
31. Returns a string with backslashes in front of the specified characters
string
addcslashes()
strip_tags()
boolean
32. To get over quotation marks while using arrays
predefined
error_reporting (E_ALL | E_STRICT)
$_GET[]
curly braces
33. To sort values of an array without regard to the keys
error_reporting (E_ALL & -E_NOTICE)
<<
sort()
mysql_fetch_array()
34. container of both data and code
array
switch
string
Object
35. Tag to end a php script
PHP
WYSIWYG
?>
server-side programing
36. The prefix for a dynamic variable - also known as a variable variable
foreach loop
$$
abs()
Parse error
37. TRUE or FALSE
string
Array
negative numbers
boolean
38. Used to find the length of a string
str_ireplace()
preg_split()
strlen()
htmlentities()
39. Used to display errors in a particular script - should be placed at top of script.
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
40. ____ or key is referred to for a value within an array.
index
boolean
error_reporting (E_ALL)
WYSIWYG
41. $_SERVER is a ________ variable.
predefined
SGML
index
$dbc = mysql_connect(hostname, username, password)
42. bitwise right shift
sql
loops
>>
function error_reporting()
43. function Function used to create a random number
error_reporting (E_ALL)
rand()
open source
DTD
44. identity
index
true
===
trim()
45. The output of var_export((float)array());
asort()
$_GET[]
error_reporting (0)
0
46. The order of operations.
predefined
function error_reporting()
precedence
echo
47. The name of the #! used to designate the location of the PHP binary
Array
strtok()
Shebang
index
48. Function can you use to format a number with commas
is_numeric()
number_format()
control structure
rand()
49. To merge arrays
shuffle()
array_merge()
chr()
ASP
50. A data structure that can hold a number of items of data of the same type eg. a list of names
array
date()
!= inequality
$var++ and $var