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. Used to convert all HTML tags into their entity versions.
Parse error
bin2hex()
htmlentities()
chr()
2. Hyper Text Transfer Protocol
HTML
HTTP
$_REQUEST
POST
3. Used to replace a substring with another string - it is not case-sensitive.
str_ireplace()
Magic Constant
loops
===
4. An array of variables passed in the URL
error_reporting (E_ALL & -E_NOTICE)
$_GET[]
indexed array
PHP
5. To append elements to an array - this will assign item to the next available index; associative arrays get messy.
the escape character ''
variable
E_STRICT
$array[] = item
6. any programing language where the script is parsed on the server
Hex
server-side programing
index
bin2hex()
7. Used to encrypt values - it is a one-way encryption method
crypt()
addslashes()
===
ASP
8. $_SERVER - $_POST - $_GET - $_COOKIE - $_SESSION - $_ENV; special arrays.
GET
ceil()
superglobal
index
9. To get over quotation marks while using arrays
curly braces
$dbc = mysql_connect(hostname, username, password)
1
statement
10. To refer to an item in an array
HTML
error_reporting (E_ALL | E_STRICT)
$varname[key]
include() and require()
11. This fatal fatal is caused by a semantic mistake: omission of a semicolon or imbalance of quotations or parentheses or braces.
Parse error
the period; .
E_STRICT
error_reporting (E_ALL)
12. To sort the values while maintaining the correlation between each value and its key - in reversed order
^
crypt()
mysql
arsort()
13. To sort by the keys while maintaining the correlation between the key and its value
ksort()
null
string
bin2hex()
14. bitwise right shift
wordwrap()
index
>>
$varname[key]
15. Used to check if a given variable has an "empty" value - no value or 0 or FALSE.
array_merge()
octal
mysql_close($dbc)
empty()
16. To sort the values while maintaining the correlation between each value and its key
asort()
str_ireplace()
drop
ASP
17. any programing language where the user must support the language the script is written in
date()
the escape character ''
foreach loop
client-side programing
18. addition
addcslashes()
array_merge()
the period; .
+
19. $_POST and $_GET are ________ variables.
sort()
predefined
chr()
Shebang
20. Use ______ when a variable contains any amount of variables; in general.
==
define()
double quotes
+= or -= or *= or /=
21. Besides GET and POST ________ can be used to access data but $_POST and $_GET are more precise and therefore preferable.
trim()
$_REQUEST
sql
arsort()
22. This fatal error arises from memory allocation problem.
SEO
nl2br()
Error
Object
23. print $_SERVER will _____ work if you use the print function on arrays.
echo
not
trim()
unset()
24. The seven main SQL (structured query language) functions are alter - create - delete - _______ - insert - select - update
drop
.=
fopen()
Parse error
25. Search Engine Optimization
SEO
mysql_close($dbc)
foreach
if/elseif/else and switch statements
26. standard notation
>>
decimal
define()
curly braces; ${$total}
27. To reorganise the array randomly
shuffle()
?>
isset()
chop()
28. To create an array
array
list()
getrandmax()
array()
29. Used to create a substring (referred to as a token) from a larger string
array_merge()
reassign
strtok()
precedence
30. A conditional or loop is a ________________.
AJAX
control structure
+
switch
31. To remove all HTML and PHP tags.
rand()
HTTP
strip_tags()
Hex
32. The four main error types are:Notice - Warning - ________ and Error.
the escape character ''
predefined
GET
Parse error
33. Variable names cannot begin with _______
Error
function
numbers
str_ireplace()
34. Returns an array that corresponds to the fetched row of MySQL data and moves the internal data pointer ahead
mysql_fetch_array()
negative numbers
rand()
true
35. To close a connection between a database
asort()
POST
mysql_close($dbc)
!= inequality
36. Tag to begin a php script
<?php
double quotes
sql
HTTP
37. a language in which to make querys to a database with
XOR
sql
int
mysql_fetch_object()
38. Use ______ for search engines or catalogued pages or pages that would be bookmarked.
boolean
GET
ceil()
HTML
39. To determine the amount of elements in an array
foreach
date()
count()
GET
40. To word wrap after a certain amount of characters.
reassign
general
wordwrap()
Parse error
41. container of ordered data elements
Array
variable
include() and require()
mysql
42. Hypertext Preprocessor - a server-side programing language used to create webpages
preg_match()
general
PHP
mysql_fetch_array()
43. The output of var_export((float)array());
Parse error
0
$$
str_word_count()
44. function Function used to create a random number
define()
boolean
rand()
asort()
45. A data structure that can hold a number of items of data of the same type eg. a list of names
Notice
urlencode()
array
Object
46. ____ or key is referred to for a value within an array.
<?php
XML
index
mysql_fetch_array()
47. a database which is best supported by PHP
foreach loop
AJAX
mysql
round() Function
48. To declare a constant
negative numbers
define()
Constant
single quotes
49. Control structure that continue exit - they perform specific statements for a determined number of iterations.
loops
Warning
index
chr()
50. bitwise XOR
sort()
^
mysql_fetch_object()
Constant