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. All variables must begin with _________.
the dollar sign $
date()
single quotes
count()
2. This error refers to a variable with no value.
addslashes()
boolean
AJAX
Notice
3. equivalence
==
ini_set ('display_errors', 1)
error_reporting (E_ALL | E_STRICT)
Magic Constant
4. Alias of rtrim()
chop()
htmlentities()
echo
array()
5. ___________ can be used with substr() to count backward
SEO
unset()
underscores
negative numbers
6. identity
===
Shebang
shuffle()
0
7. used to round numeric values.
for ($i = 0; $i < count($array); $i++) {statement(s);}
sort()
round() Function
include() and require()
8. This will show all error reporting.
error_reporting (E_ALL)
DTD
isset()
^
9. The output of var_export((float)array());
negative numbers
0
AJAX
Parse error
10. Online applications and resources which are available to the general public with very few restrictions
^
open source
predefined variable
chr()
11. Leading 0x: 0x13F or 0xA23
!= inequality
rsort()
mysql_close($dbc)
Hex
12. Besides GET and POST ________ can be used to access data but $_POST and $_GET are more precise and therefore preferable.
$_REQUEST
str_word_count()
variable
SGML
13. To sort the values while maintaining the correlation between each value and its key
octal
general
$_SESSION[]
asort()
14. To refer to an item in an array
variable
$varname[key]
single quotes
Parse error
15. Function used to find the absolute value of a number or numeric variable
integer
mysql_close($dbc)
abs()
round() Function
16. Used to check if a given variable has an "empty" value - no value or 0 or FALSE.
list()
decimal
function
empty()
17. An array of variables passed in the URL
$_GET[]
!= inequality
parentheses
index
18. To set up error reporting
floor()
PHP
strtok()
function error_reporting()
19. leading zero: 0100 or 0567
$dbc = mysql_connect(hostname, username, password)
ceil()
octal
the dollar sign $
20. _________ can be used in conditional statements to set precedence
indexed array
string
client-side programing
parentheses
21. The name of the #! used to designate the location of the PHP binary
indexed array
$var++ and $var
Shebang
$_GET[]
22. To create an array
Parse error
!= inequality
foreach
array()
23. Function used to convert new lines in a variable from a form to <br /> tags so that the data can be formatted correctly.
unset()
error_reporting (0)
loops
nl2br()
24. Converts a string of ASCII characters to hexadecimal values
rand()
predefined variable
bin2hex()
Notice
25. To get over quotation marks while using arrays
curly braces
rsort()
urlencode()
$_POST[]
26. standard notation
arsort()
client-side programing
sort()
decimal
27. Document Type Definitions
associative array
substr_count()
DTD
HTML
28. bitwise left shift
<<
$_POST[]
fopen()
integer
29. a language in which to make querys to a database with
sql
preg_replace()
.=
trim()
30. TRUE or FALSE
boolean
define()
str_ireplace()
DTD
31. To refer to an element in a multidimensional array list the indices in order of _____ to more precise;
double quotes
boolean
general
E_STRICT
32. This fatal error arises from memory allocation problem.
boolean
urlencode()
asort()
Error
33. print $_SERVER will _____ work if you use the print function on arrays.
negative numbers
the dollar sign $
reassign
not
34. Function used to round up to the highest integer
addslashes()
ceil()
Magic Constant
mysql_close($dbc)
35. Returns a string with backslashes in front of predefined characters
boolean
===
addslashes()
double quotes
36. Define(NAME,value)
single quotes
$varname[key]
Constant
$dbc = mysql_connect(hostname, username, password)
37. To reorganise the array randomly
index
server-side programing
$varname[key]
shuffle()
38. To remove all HTML and PHP tags.
strip_tags()
wordwrap()
include() and require()
mysql
39. The four main error types are:Notice - Warning - ________ and Error.
Parse error
Warning
function
?>
40. Similar to mysql_fetch_array() - but cannot be accessed by integer offset
mysql
precedence
define()
mysql_fetch_object()
41. either hasn't yet been set or is assigned NULL value
null
substr_count()
float
mysql_fetch_array()
42. Tag to begin a php script
array
<?php
curly braces
$$
43. $_SERVER is a ________ variable.
SGML
0
predefined
.=
44. Used to create a substring (referred to as a token) from a larger string
strtok()
addslashes()
the dollar sign $
isset()
45. Used to find the length of a string
mysql
strlen()
<?php
unset()
46. Function that contains the highest value that rand() can have randomly
the escape character ''
getrandmax()
define()
rand()
47. Variable names can begin with __________
.=
XOR
single quotes
underscores
48. This error arises from misusing a function.
0
indexed array
Warning
statement
49. An array of variables passed with <input /> data
empty()
boolean
$_POST[]
AJAX
50. A data structure that can hold a number of items of data of the same type eg. a list of names
array
index
mysql
!= inequality