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 close a connection between a database
htmlentities()
$var++ and $var
mysql_close($dbc)
error_reporting (E_ALL)
2. Operators used to operate and assign
strtok()
curly braces
+= or -= or *= or /=
error_reporting (E_ALL & -E_NOTICE)
3. Used to remove any white space - spaces or newlines or tabs - from the beginning and end of a string - not the middle.
Hex
POST
ASP
trim()
4. Function used to find the absolute value of a number or numeric variable
open source
abs()
$$
$varname[key]
5. container of ordered data elements
Array
isset()
wordwrap()
general
6. signed integer
$_SESSION[]
int
asort()
error_reporting (E_ALL)
7. What You See Is What You Get
reassign
ksort()
substr_count()
WYSIWYG
8. To declare a constant
curly braces
define()
nl2br()
XOR
9. identity
Array
===
substr_count()
define()
10. bitwise right shift
POST
$_POST[]
>>
string
11. To iterate over the keys and values of an array
statement
wordwrap()
foreach loop
isset()
12. An array whose keys are strings; also known as a hash.
E_STRICT
associative array
mysql
switch
13. The array that stores variables specific to a user's visit
reassign
$_SESSION[]
predefined variable
wordwrap()
14. Converts a string of ASCII characters to hexadecimal values
HTML
strtok()
for ($i = 0; $i < count($array); $i++) {statement(s);}
bin2hex()
15. The order of operations.
bin2hex()
precedence
Array
Warning
16. To refer to an item in an array
$varname[key]
not
.=
chr()
17. Control structures that break exit
if/elseif/else and switch statements
boolean
addslashes()
addcslashes()
18. To find how many substrings are in a string
Array
mysql_fetch_object()
substr_count()
statement
19. a storage location in the computer's memory that has a type & a name and a contents
double quotes
variable
control structure
+
20. To include files - _______ will give errors and _________ will terminate execution().
strtok()
foreach
echo
include() and require()
21. Used to convert certain HTML tags into their entity versions.
define()
ceil()
foreach
htmlspecialchars()
22. ___________ can be used with substr() to count backward
$_SESSION[]
error_reporting (E_ALL | E_STRICT)
negative numbers
!= inequality
23. To word wrap after a certain amount of characters.
wordwrap()
<<
count()
negative numbers
24. any programing language where the user must support the language the script is written in
str_word_count()
client-side programing
indexed array
bin2hex()
25. This will show all error reporting except for notice errors.
mysql_fetch_object()
int
error_reporting (E_ALL & -E_NOTICE)
PHP
26. Standard Generalized Markup Language
superglobal
error_reporting (E_ALL & -E_NOTICE)
negative numbers
SGML
27. $_SERVER - $_POST - $_GET - $_COOKIE - $_SESSION - $_ENV; special arrays.
superglobal
E_STRICT
PHP
unset()
28. $_POST Data sent using POST found is sent to _______
predefined variable
boolean
curly braces
error_reporting (0)
29. bitwise left shift
^
<<
loops
general
30. $_POST and $_GET are ________ variables.
parentheses
predefined
AJAX
<<
31. This will not show error reporting - it will be turned off.
wordwrap()
associative array
error_reporting (0)
int
32. either hasn't yet been set or is assigned NULL value
null
negative numbers
array
general
33. This error refers to a variable with no value.
server-side programing
mysql_close($dbc)
Notice
===
34. The concatenation operator?
associative array
server-side programing
the period; .
number_format()
35. To set up error reporting
negative numbers
true
function error_reporting()
chop()
36. Creates a pointer to a file with the declared mode (read - write -etc.).
fopen()
unset()
Array
asort()
37. To sort the values while maintaining the correlation between each value and its key
array()
asort()
addcslashes()
nl2br()
38. The output of var_export((float)array());
GET
0
wordwrap()
integer
39. standard notation
htmlspecialchars()
function
decimal
strlen()
40. All variables must begin with _________.
empty()
the dollar sign $
open source
indexed array
41. Tag to begin a php script
<?php
count()
.=
Warning
42. Leading 0x: 0x13F or 0xA23
array()
<?php
Hex
urlencode()
43. Use ________ to have multiple quotations in one string
Array
mysql_fetch_object()
the escape character ''
$_SESSION[]
44. _______ is a comparison operator
!= inequality
general
rsort()
octal
45. Used to check if a given variable has an "empty" value - no value or 0 or FALSE.
strtok()
floor()
index
empty()
46. Used to check if a variable has any value (including 0 or FALSE or an empty string).
isset()
foreach
precedence
associative array
47. collection of binary data
string
mysql_fetch_array()
?>
Constant
48. Shorthand used to increment and decrement
float
$var++ and $var
E_STRICT
Hex
49. function Function used to create a random number
the dollar sign $
mysql_fetch_object()
string
rand()
50. bitwise AND
isset()
indexed array
parentheses
&