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. The array that stores variables specific to a user's visit
.=
int
$_SESSION[]
unset()
2. The concatenation operator?
include() and require()
$_SESSION[]
WYSIWYG
the period; .
3. TRUE or FALSE
indexed array
$dbc = mysql_connect(hostname, username, password)
wordwrap()
boolean
4. _______ is a comparison operator
htmlentities()
!= inequality
octal
string
5. To reset an array _______ the array() function to the array
reassign
Constant
chop()
Shebang
6. allows you to split strings based on more complex rules
array()
integer
preg_split()
?>
7. Function used to find the absolute value of a number or numeric variable
switch
E_STRICT
Object
abs()
8. ___________ can be used with substr() to count backward
function
negative numbers
abs()
parentheses
9. Shorthand used to increment and decrement
$_POST[]
asort()
$var++ and $var
XML
10. Returns a string with backslashes in front of predefined characters
$_REQUEST
foreach loop
addslashes()
XOR
11. function Function used to create a random number
the dollar sign $
htmlentities()
shuffle()
rand()
12. Variable names cannot begin with _______
arsort()
+= or -= or *= or /=
echo
numbers
13. To close a connection between a database
date()
?>
mysql_close($dbc)
ini_set ('display_errors', 1)
14. An array of variables passed in the URL
HTML
Hex
$_GET[]
the period; .
15. The output of var_export((float)array(0));
predefined
curly braces; ${$total}
sql
1
16. The seven main error reporting constants are: E_NOTICE - E_WARNING - E_PARSE - E_ERROR - E_ALL - _____ - E_DEPRECATED
curly braces; ${$total}
E_STRICT
statement
asort()
17. Uses two arguments: constant name and constant definition
Object
str_word_count()
define()
floor()
18. The four main error types are:Notice - Warning - ________ and Error.
boolean
Parse error
DTD
preg_match()
19. This fatal error arises from memory allocation problem.
Error
addcslashes()
0
server-side programing
20. a positive or negative number
shuffle()
integer
curly braces
>>
21. To sort values of an array in reversed order
rsort()
boolean
ksort()
htmlentities()
22. This will not show error reporting - it will be turned off.
negative numbers
mysql_fetch_object()
boolean
error_reporting (0)
23. The order of operations.
define()
$var++ and $var
SGML
precedence
24. Active Server Pages
function
Magic Constant
fopen()
ASP
25. To remove all HTML and PHP tags.
strip_tags()
define()
Parse error
<?php
26. To declare a constant
asort()
WYSIWYG
numbers
define()
27. Used to convert certain HTML tags into their entity versions.
SGML
htmlspecialchars()
string
array_merge()
28. _____ is a logical operator
Notice
XOR
Object
shuffle()
29. used to round numeric values.
Error
chop()
round() Function
variable
30. The concatenation assignment operator?
numbers
.=
indexed array
the dollar sign $
31. Function that contains the highest value that rand() can have randomly
AJAX
getrandmax()
$_POST[]
!= inequality
32. To iterate over the values of an array
for ($i = 0; $i < count($array); $i++) {statement(s);}
not
Object
str_ireplace()
33. The seven main SQL (structured query language) functions are alter - create - delete - _______ - insert - select - update
error_reporting (E_ALL)
indexed array
drop
getrandmax()
34. ____ or key is referred to for a value within an array.
index
.=
crypt()
preg_replace()
35. PHP has two conditional: if and ______.
error_reporting (E_ALL | E_STRICT)
predefined variable
switch
general
36. To refer to an item in an array
Warning
array
number_format()
$varname[key]
37. Online applications and resources which are available to the general public with very few restrictions
Parse error
indexed array
ini_set ('display_errors', 1)
open source
38. To word wrap after a certain amount of characters.
predefined variable
precedence
floor()
wordwrap()
39. bitwise left shift
list()
loops
<<
$dbc = mysql_connect(hostname, username, password)
40. Use ________ to have multiple quotations in one string
the escape character ''
mysql_fetch_object()
drop
==
41. Variable names can begin with __________
number_format()
underscores
abs()
html_entity_decode()
42. To append elements to an array - this will assign item to the next available index; associative arrays get messy.
unset()
AJAX
associative array
$array[] = item
43. To get over quotation marks while using arrays
bin2hex()
true
curly braces
wordwrap()
44. $_POST Data sent using POST found is sent to _______
chop()
XOR
function
predefined variable
45. Returns an array that corresponds to the fetched row of MySQL data and moves the internal data pointer ahead
predefined
single quotes
mysql_fetch_array()
octal
46. The ouput of var_export((bool)"NULL");
define()
true
asort()
Magic Constant
47. Asynchronous Javascript And XML
general
negative numbers
float
AJAX
48. To get time data
Array
boolean
date()
htmlentities()
49. The syntax for connecting to a database
for ($i = 0; $i < count($array); $i++) {statement(s);}
sql
$dbc = mysql_connect(hostname, username, password)
double quotes
50. To sort the values while maintaining the correlation between each value and its key - in reversed order
fopen()
arsort()
$array[] = item
string