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 set up error reporting
Array
mysql_close($dbc)
function error_reporting()
getrandmax()
2. the most basic function in PHP used to output information to the page
numbers
error_reporting (E_ALL)
the period; .
echo
3. To sort values of an array without regard to the keys
statement
error_reporting (0)
isset()
sort()
4. Hyper Text Markup Language
index
superglobal
HTML
string
5. any programing language where the script is parsed on the server
negative numbers
arsort()
server-side programing
addcslashes()
6. equivalence
==
double quotes
substr_count()
single quotes
7. An array whose keys are strings; also known as a hash.
fopen()
the escape character ''
array()
associative array
8. Function used to find the absolute value of a number or numeric variable
statement
bin2hex()
abs()
for ($i = 0; $i < count($array); $i++) {statement(s);}
9. The syntax for connecting to a database
parentheses
array_merge()
function
$dbc = mysql_connect(hostname, username, password)
10. Use _______ for passwords or pages that would not be bookmarked or pages that require security.
$_SESSION[]
strtok()
error_reporting (E_ALL | E_STRICT)
POST
11. Returns an array that corresponds to the fetched row of MySQL data and moves the internal data pointer ahead
0
mysql_fetch_array()
superglobal
preg_match()
12. used to round numeric values.
round() Function
empty()
list()
Hex
13. When used the value can be passed safely through the URL (GET).
sort()
urlencode()
$_GET[]
precedence
14. Control structures that break exit
if/elseif/else and switch statements
associative array
statement
mysql
15. To sort the values while maintaining the correlation between each value and its key - in reversed order
switch
strip_tags()
arsort()
XOR
16. To iterate over the keys and values of an array
asort()
superglobal
single quotes
foreach loop
17. To reset an array _______ the array() function to the array
str_ireplace()
reassign
double quotes
+= or -= or *= or /=
18. This fatal fatal is caused by a semantic mistake: omission of a semicolon or imbalance of quotations or parentheses or braces.
Parse error
strip_tags()
Warning
error_reporting (0)
19. This will show all error reporting.
Array
error_reporting (E_ALL)
preg_split()
loops
20. This will show all error reporting except for notice errors.
arsort()
isset()
error_reporting (E_ALL & -E_NOTICE)
mysql_fetch_array()
21. An array of variables passed in the URL
include() and require()
$_GET[]
the escape character ''
if/elseif/else and switch statements
22. $_POST Data sent using POST found is sent to _______
array()
predefined variable
curly braces; ${$total}
$_REQUEST
23. Use ______ when there are no variables in the string
single quotes
addslashes()
rand()
1
24. To append elements to an array - this will assign item to the next available index; associative arrays get messy.
curly braces
$array[] = item
fopen()
ceil()
25. To sort by the keys while maintaining the correlation between the key and its value
ksort()
null
floor()
chop()
26. Used to encrypt values - it is a one-way encryption method
parentheses
htmlspecialchars()
crypt()
E_STRICT
27. bitwise left shift
open source
WYSIWYG
not
<<
28. container of ordered data elements
wordwrap()
numbers
ksort()
Array
29. Standard Generalized Markup Language
+
SGML
if/elseif/else and switch statements
<?php
30. returns the number of matches found by a given search string under this format...
>>
preg_match()
E_STRICT
$_REQUEST
31. To put a dollar sign before a variable like $10 where 10 is the variable's value - you can escape the first dollar sign; $$cost; or you can use __________.
E_STRICT
is_numeric()
Parse error
curly braces; ${$total}
32. Creates a pointer to a file with the declared mode (read - write -etc.).
parentheses
the escape character ''
array_merge()
fopen()
33. To declare a constant
round() Function
define()
HTML
nl2br()
34. The array that stores variables specific to a user's visit
boolean
$_SESSION[]
<?php
Object
35. This fatal error arises from memory allocation problem.
count()
octal
Error
precedence
36. To check if a constant is already declared
defined()
&
empty()
Magic Constant
37. The concatenation assignment operator?
date()
$_GET[]
defined()
.=
38. TRUE or FALSE
boolean
empty()
getrandmax()
mysql_fetch_array()
39. Search Engine Optimization
array_merge()
SEO
GET
1
40. signed integer
true
predefined
int
foreach
41. $_POST and $_GET are ________ variables.
server-side programing
predefined variable
predefined
$_GET[]
42. To refer to an item in an array
$varname[key]
GET
parentheses
Parse error
43. Besides GET and POST ________ can be used to access data but $_POST and $_GET are more precise and therefore preferable.
0
mysql
ksort()
$_REQUEST
44. The four main error types are:Notice - Warning - ________ and Error.
&
$varname[key]
curly braces; ${$total}
Parse error
45. allows you to split strings based on more complex rules
chop()
preg_split()
Shebang
empty()
46. Online applications and resources which are available to the general public with very few restrictions
asort()
error_reporting (0)
E_STRICT
open source
47. To include files - _______ will give errors and _________ will terminate execution().
switch
include() and require()
null
?>
48. Alias of rtrim()
chop()
htmlentities()
error_reporting (E_ALL | E_STRICT)
AJAX
49. To remove all HTML and PHP tags.
strip_tags()
the escape character ''
^
superglobal
50. _____ is a logical operator
numbers
XOR
$_POST[]
Notice