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. returns the number of matches found by a given search string under this format...
drop
double quotes
preg_match()
client-side programing
2. To refer to an item in an array
$varname[key]
mysql
WYSIWYG
urlencode()
3. Search Engine Optimization
HTML
parentheses
SEO
wordwrap()
4. To sort the values while maintaining the correlation between each value and its key - in reversed order
WYSIWYG
arsort()
&
error_reporting (E_ALL)
5. The concatenation operator?
the period; .
addcslashes()
general
0
6. To sort the values while maintaining the correlation between each value and its key
GET
drop
asort()
addslashes()
7. To sort by the keys while maintaining the correlation between the key and its value
chop()
HTTP
the escape character ''
ksort()
8. Function used to round down to the lowest integer
$_GET[]
floor()
function
defined()
9. $_SERVER - $_POST - $_GET - $_COOKIE - $_SESSION - $_ENV; special arrays.
true
mysql_fetch_object()
superglobal
Array
10. Asynchronous Javascript And XML
rand()
AJAX
define()
ceil()
11. Returns an array that corresponds to the fetched row of MySQL data and moves the internal data pointer ahead
asort()
$_REQUEST
html_entity_decode()
mysql_fetch_array()
12. Online applications and resources which are available to the general public with very few restrictions
open source
SEO
sort()
Array
13. Uses two arguments: constant name and constant definition
control structure
foreach
define()
POST
14. Used to convert all HTML tags into their entity versions.
htmlentities()
define()
superglobal
HTTP
15. Variable names cannot begin with _______
string
preg_match()
==
numbers
16. To include files - _______ will give errors and _________ will terminate execution().
include() and require()
switch
parentheses
SGML
17. Used to replace a substring with another string - it is not case-sensitive.
str_ireplace()
unset()
octal
string
18. Function can you use to format a number with commas
crypt()
is_numeric()
number_format()
floor()
19. To reorganise the array randomly
integer
XOR
open source
shuffle()
20. The output of var_export((float)array(0));
underscores
1
$_POST[]
statement
21. allows you to split strings based on more complex rules
statement
underscores
define()
preg_split()
22. Converts a string of ASCII characters to hexadecimal values
bin2hex()
<<
error_reporting (E_ALL & -E_NOTICE)
HTML
23. The prefix for a dynamic variable - also known as a variable variable
sort()
$$
strlen()
empty()
24. The order of operations.
mysql_fetch_array()
predefined
precedence
Object
25. used to round numeric values.
?>
round() Function
XML
WYSIWYG
26. function Function used to create a random number
foreach loop
rand()
$array[] = item
$_POST[]
27. container of ordered data elements
trim()
Array
Warning
indexed array
28. a database which is best supported by PHP
sql
mysql
indexed array
<<
29. $_SERVER is a ________ variable.
reassign
sort()
predefined
shuffle()
30. To find how many substrings are in a string
substr_count()
list()
$$
client-side programing
31. To append elements to an array - this will assign item to the next available index; associative arrays get messy.
date()
predefined
$array[] = item
htmlentities()
32. This will show all error reporting.
+
error_reporting (E_ALL)
ksort()
client-side programing
33. the most basic function in PHP used to output information to the page
ini_set ('display_errors', 1)
GET
true
echo
34. a storage location in the computer's memory that has a type & a name and a contents
variable
$var++ and $var
foreach loop
strtok()
35. leading zero: 0100 or 0567
negative numbers
sql
octal
error_reporting (E_ALL | E_STRICT)
36. This will show all error reporting except for notice errors.
drop
error_reporting (E_ALL & -E_NOTICE)
strtok()
$_POST[]
37. Control structures that break exit
int
if/elseif/else and switch statements
GET
Error
38. says 'if' this then do this 'else' do this or 'while' this do this
Warning
statement
reassign
rand()
39. To merge arrays
boolean
array_merge()
predefined variable
true
40. Used to encrypt values - it is a one-way encryption method
Constant
crypt()
string
count()
41. Tag to begin a php script
DTD
chop()
Shebang
<?php
42. To determine the amount of elements in an array
chr()
+= or -= or *= or /=
sql
count()
43. This will not show error reporting - it will be turned off.
crypt()
$array[] = item
error_reporting (0)
strlen()
44. EXtensible Markup Language
general
date()
defined()
XML
45. Use ________ to have multiple quotations in one string
is_numeric()
predefined variable
str_word_count()
the escape character ''
46. Shorthand used to increment and decrement
boolean
floor()
$var++ and $var
mysql
47. The syntax for connecting to a database
$$
double quotes
string
$dbc = mysql_connect(hostname, username, password)
48. collection of binary data
string
$dbc = mysql_connect(hostname, username, password)
POST
curly braces
49. To remove all HTML and PHP tags.
E_STRICT
fopen()
octal
strip_tags()
50. does a certain action when called upon
associative array
float
predefined
function