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. TRUE or FALSE
POST
numbers
reassign
boolean
2. identity
ceil()
arsort()
abs()
===
3. a type with two possible values: true and false
chop()
foreach
defined()
boolean
4. To append elements to an array - this will assign item to the next available index; associative arrays get messy.
$array[] = item
predefined
server-side programing
Hex
5. To get time data
server-side programing
for ($i = 0; $i < count($array); $i++) {statement(s);}
crypt()
date()
6. Similar to mysql_fetch_array() - but cannot be accessed by integer offset
Warning
number_format()
strtok()
mysql_fetch_object()
7. Function that contains the highest value that rand() can have randomly
function
getrandmax()
$varname[key]
bin2hex()
8. Function used to convert new lines in a variable from a form to <br /> tags so that the data can be formatted correctly.
the period; .
nl2br()
PHP
function error_reporting()
9. a positive or negative number
integer
asort()
sql
float
10. Used to find the length of a string
XML
the dollar sign $
define()
strlen()
11. Besides GET and POST ________ can be used to access data but $_POST and $_GET are more precise and therefore preferable.
curly braces
$_REQUEST
$_GET[]
0
12. Control structure that continue exit - they perform specific statements for a determined number of iterations.
general
loops
statement
$var++ and $var
13. Asynchronous Javascript And XML
mysql_close($dbc)
array_merge()
index
AJAX
14. a database which is best supported by PHP
negative numbers
Notice
getrandmax()
mysql
15. bitwise left shift
preg_split()
nl2br()
<<
Parse error
16. Online applications and resources which are available to the general public with very few restrictions
client-side programing
numbers
true
open source
17. bitwise right shift
Error
octal
>>
string
18. To refer to an element in a multidimensional array list the indices in order of _____ to more precise;
general
count()
arsort()
isset()
19. either hasn't yet been set or is assigned NULL value
!= inequality
WYSIWYG
null
$array[] = item
20. Uses two arguments: constant name and constant definition
Warning
define()
ceil()
array_merge()
21. The output of var_export((float)array());
XOR
foreach
0
statement
22. Shorthand used to increment and decrement
$dbc = mysql_connect(hostname, username, password)
$var++ and $var
server-side programing
drop
23. The name of the #! used to designate the location of the PHP binary
crypt()
Shebang
SGML
sql
24. All variables must begin with _________.
indexed array
the dollar sign $
boolean
$_GET[]
25. The order of operations.
0
int
predefined variable
precedence
26. The concatenation assignment operator?
.=
count()
AJAX
underscores
27. To determine the amount of elements in an array
shuffle()
count()
rsort()
mysql_close($dbc)
28. The seven main SQL (structured query language) functions are alter - create - delete - _______ - insert - select - update
mysql
boolean
drop
asort()
29. An array of variables passed with <input /> data
$_POST[]
$$
SEO
GET
30. An array whose keys are strings; also known as a hash.
associative array
$var++ and $var
number_format()
Notice
31. To word wrap after a certain amount of characters.
curly braces; ${$total}
Error
wordwrap()
underscores
32. Hyper Text Transfer Protocol
$$
POST
HTTP
trim()
33. To sort the values while maintaining the correlation between each value and its key - in reversed order
arsort()
htmlspecialchars()
unset()
ASP
34. The array that stores variables specific to a user's visit
htmlentities()
E_STRICT
$_SESSION[]
curly braces; ${$total}
35. a storage location in the computer's memory that has a type & a name and a contents
$_SESSION[]
asort()
variable
POST
36. Used to create a substring (referred to as a token) from a larger string
negative numbers
strtok()
double quotes
chop()
37. Leading 0x: 0x13F or 0xA23
define()
predefined
Hex
$_GET[]
38. Define(NAME,value)
Constant
strip_tags()
$_POST[]
client-side programing
39. An array of variables passed in the URL
$_GET[]
preg_split()
control structure
define()
40. To reset an array _______ the array() function to the array
<<
define()
reassign
array
41. $_POST Data sent using POST found is sent to _______
bin2hex()
is_numeric()
$_REQUEST
predefined variable
42. Use ________ to have multiple quotations in one string
asort()
sql
str_ireplace()
the escape character ''
43. Hyper Text Markup Language
predefined
associative array
GET
HTML
44. To find how many substrings are in a string
array
loops
asort()
substr_count()
45. Used to convert all HTML tags into their entity versions.
addcslashes()
preg_match()
wordwrap()
htmlentities()
46. standard notation
1
XOR
decimal
+
47. equivalence
preg_match()
the escape character ''
empty()
==
48. Operators used to operate and assign
bin2hex()
+= or -= or *= or /=
Parse error
mysql
49. Returns a string with backslashes in front of predefined characters
addslashes()
rsort()
addcslashes()
wordwrap()
50. $_SERVER - $_POST - $_GET - $_COOKIE - $_SESSION - $_ENV; special arrays.
abs()
1
superglobal
error_reporting (0)