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. Converts a string of ASCII characters to hexadecimal values
include() and require()
bin2hex()
general
HTTP
2. Shorthand used to increment and decrement
$var++ and $var
number_format()
SEO
boolean
3. This will show all errors that fall under E_ALL or E_STRICT - the pipe | is used for 'or' so that errors that fall under either will be shown.
error_reporting (E_ALL | E_STRICT)
?>
+= or -= or *= or /=
define()
4. To delete a variable or an element of an array
&
underscores
unset()
trim()
5. a line of information that can be stored in a variable or used in a function or statement
foreach
parentheses
define()
string
6. Hyper Text Transfer Protocol
string
rsort()
HTTP
nl2br()
7. To set up error reporting
foreach
float
function error_reporting()
drop
8. Returns a string with backslashes in front of the specified characters
^
$$
0
addcslashes()
9. To get over quotation marks while using arrays
define()
rand()
not
curly braces
10. Active Server Pages
open source
null
htmlspecialchars()
ASP
11. signed integer
$array[] = item
define()
int
rsort()
12. container of ordered data elements
XML
Array
<?php
variable
13. To counter htmlentities()
html_entity_decode()
parentheses
include() and require()
strtok()
14. Use ________ to have multiple quotations in one string
the escape character ''
superglobal
DTD
wordwrap()
15. standard notation
open source
include() and require()
<?php
decimal
16. To merge arrays
html_entity_decode()
^
array_merge()
loops
17. Returns an array that corresponds to the fetched row of MySQL data and moves the internal data pointer ahead
mysql_fetch_array()
precedence
ksort()
foreach
18. Function used to round up to the highest integer
ceil()
true
substr_count()
ini_set ('display_errors', 1)
19. The name of the #! used to designate the location of the PHP binary
Shebang
Warning
addcslashes()
abs()
20. a positive or negative number
trim()
htmlspecialchars()
integer
E_STRICT
21. Online applications and resources which are available to the general public with very few restrictions
open source
rand()
<?php
SEO
22. bitwise right shift
mysql_close($dbc)
Constant
decimal
>>
23. identity
===
<<
$$
if/elseif/else and switch statements
24. A conditional or loop is a ________________.
string
Hex
sql
control structure
25. Variable names cannot begin with _______
numbers
rsort()
underscores
Hex
26. What You See Is What You Get
WYSIWYG
index
>>
if/elseif/else and switch statements
27. An array of variables passed in the URL
$_GET[]
index
Constant
define()
28. Use ______ for search engines or catalogued pages or pages that would be bookmarked.
Hex
mysql_fetch_object()
GET
===
29. To assign array element values to individual variables
predefined
if/elseif/else and switch statements
list()
+
30. An array whose keys are numbers.
<?php
GET
indexed array
array_merge()
31. EXtensible Markup Language
XOR
XML
Notice
ksort()
32. Uses two arguments: constant name and constant definition
define()
int
$array[] = item
associative array
33. To word wrap after a certain amount of characters.
sort()
foreach
wordwrap()
nl2br()
34. Function used to find the absolute value of a number or numeric variable
$varname[key]
PHP
abs()
Error
35. Function that contains the highest value that rand() can have randomly
addcslashes()
decimal
getrandmax()
mysql
36. allows you to split strings based on more complex rules
preg_split()
XOR
mysql_close($dbc)
the period; .
37. Asynchronous Javascript And XML
html_entity_decode()
true
AJAX
Parse error
38. Operators used to operate and assign
curly braces; ${$total}
+= or -= or *= or /=
ksort()
nl2br()
39. Document Type Definitions
preg_split()
define()
Shebang
DTD
40. To sort by the keys while maintaining the correlation between the key and its value
ksort()
sql
error_reporting (E_ALL)
true
41. Function used to round down to the lowest integer
strip_tags()
getrandmax()
strtok()
floor()
42. addition
+
string
strip_tags()
foreach
43. Creates a pointer to a file with the declared mode (read - write -etc.).
the dollar sign $
fopen()
mysql_fetch_array()
curly braces
44. Control structures that break exit
<<
$$
if/elseif/else and switch statements
$_REQUEST
45. To sort values of an array in reversed order
+
rsort()
superglobal
ksort()
46. The ouput of var_export((bool)"NULL");
true
array()
rsort()
not
47. The seven main SQL (structured query language) functions are alter - create - delete - _______ - insert - select - update
isset()
boolean
function
drop
48. any programing language where the user must support the language the script is written in
preg_match()
client-side programing
>>
string
49. To sort values of an array without regard to the keys
defined()
associative array
XML
sort()
50. To check if a constant is already declared
isset()
error_reporting (E_ALL | E_STRICT)
crypt()
defined()