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 sort values of an array without regard to the keys
ksort()
reassign
+
sort()
2. To remove all HTML and PHP tags.
curly braces; ${$total}
strip_tags()
parentheses
precedence
3. Predefined constants such as __LINE__ or __FILE__ or __FUNCTION__ or __CLASS__ and __METHOD__
sort()
Magic Constant
mysql_fetch_object()
substr_count()
4. This fatal fatal is caused by a semantic mistake: omission of a semicolon or imbalance of quotations or parentheses or braces.
Parse error
error_reporting (0)
0
rsort()
5. Used to replace a substring with another string - it is not case-sensitive.
error_reporting (E_ALL)
indexed array
integer
str_ireplace()
6. Function can you use to format a number with commas
number_format()
>>
rand()
chr()
7. The syntax for connecting to a database
control structure
$dbc = mysql_connect(hostname, username, password)
$_REQUEST
loops
8. leading zero: 0100 or 0567
octal
asort()
array_merge()
fopen()
9. An array of variables passed with <input /> data
$_POST[]
switch
if/elseif/else and switch statements
Constant
10. the most basic function in PHP used to output information to the page
Object
echo
indexed array
chr()
11. a database which is best supported by PHP
predefined
mysql
Constant
PHP
12. signed integer
error_reporting (E_ALL | E_STRICT)
ksort()
int
Error
13. To get time data
define()
date()
&
sort()
14. Search Engine Optimization
single quotes
statement
SEO
Magic Constant
15. Operators used to operate and assign
^
integer
addcslashes()
+= or -= or *= or /=
16. Creates a pointer to a file with the declared mode (read - write -etc.).
fopen()
Object
isset()
HTML
17. equivalence
drop
integer
==
Error
18. Function used to find the absolute value of a number or numeric variable
abs()
$var++ and $var
define()
POST
19. Returns a string with backslashes in front of the specified characters
$_SESSION[]
numbers
the escape character ''
addcslashes()
20. collection of binary data
<?php
0
abs()
string
21. Used to convert certain HTML tags into their entity versions.
E_STRICT
precedence
htmlspecialchars()
.=
22. Similar to mysql_fetch_array() - but cannot be accessed by integer offset
+= or -= or *= or /=
$_REQUEST
$dbc = mysql_connect(hostname, username, password)
mysql_fetch_object()
23. The prefix for a dynamic variable - also known as a variable variable
unset()
mysql
$$
number_format()
24. This will show all error reporting.
define()
the dollar sign $
PHP
error_reporting (E_ALL)
25. any programing language where the user must support the language the script is written in
octal
client-side programing
ksort()
DTD
26. Hyper Text Transfer Protocol
HTTP
define()
$dbc = mysql_connect(hostname, username, password)
$$
27. used to round numeric values.
str_ireplace()
round() Function
count()
bin2hex()
28. The seven main SQL (structured query language) functions are alter - create - delete - _______ - insert - select - update
+
control structure
drop
array
29. either hasn't yet been set or is assigned NULL value
count()
===
associative array
null
30. does a certain action when called upon
+= or -= or *= or /=
function
arsort()
$array[] = item
31. Use _______ for passwords or pages that would not be bookmarked or pages that require security.
server-side programing
indexed array
POST
chr()
32. addition
rand()
HTML
+
==
33. _______ is a comparison operator
!= inequality
1
trim()
$_REQUEST
34. 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.
rsort()
error_reporting (E_ALL | E_STRICT)
octal
loops
35. Used to check if a variable has a valid numerical value; strings with numerical values pass.
asort()
double quotes
is_numeric()
drop
36. bitwise XOR
^
chr()
+= or -= or *= or /=
ksort()
37. Use ________ to have multiple quotations in one string
$_REQUEST
predefined variable
the escape character ''
$var++ and $var
38. signed floating-point value
$_REQUEST
strip_tags()
float
single quotes
39. To delete a variable or an element of an array
^
predefined
array()
unset()
40. To find how many substrings are in a string
boolean
decimal
substr_count()
crypt()
41. To declare a constant
loops
1
$$
define()
42. Besides GET and POST ________ can be used to access data but $_POST and $_GET are more precise and therefore preferable.
$_REQUEST
predefined
arsort()
strtok()
43. Tag to end a php script
?>
Hex
PHP
XOR
44. EXtensible Markup Language
abs()
wordwrap()
Hex
XML
45. Use ______ when a variable contains any amount of variables; in general.
float
Warning
double quotes
string
46. $_POST and $_GET are ________ variables.
predefined
$_GET[]
the dollar sign $
unset()
47. To reset an array _______ the array() function to the array
sql
reassign
boolean
getrandmax()
48. To iterate over the keys and values of an array
count()
Parse error
Warning
foreach loop
49. Define(NAME,value)
Constant
number_format()
+
mysql_fetch_array()
50. Standard Generalized Markup Language
AJAX
SGML
array()
array_merge()