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 certain HTML tags into their entity versions.
switch
trim()
htmlspecialchars()
negative numbers
2. What You See Is What You Get
define()
int
index
WYSIWYG
3. To merge arrays
.=
mysql_fetch_array()
ini_set ('display_errors', 1)
array_merge()
4. Uses two arguments: constant name and constant definition
predefined
Parse error
define()
loops
5. Used to remove any white space - spaces or newlines or tabs - from the beginning and end of a string - not the middle.
count()
Notice
1
trim()
6. collection of binary data
error_reporting (E_ALL)
superglobal
string
getrandmax()
7. This fatal error arises from memory allocation problem.
Array
Error
===
?>
8. print $_SERVER will _____ work if you use the print function on arrays.
not
html_entity_decode()
WYSIWYG
list()
9. To reorganise the array randomly
statement
XOR
strtok()
shuffle()
10. returns the number of matches found by a given search string under this format...
preg_match()
Shebang
getrandmax()
urlencode()
11. The ouput of var_export((bool)"NULL");
double quotes
SEO
predefined
true
12. bitwise left shift
isset()
variable
Warning
<<
13. a storage location in the computer's memory that has a type & a name and a contents
boolean
asort()
variable
preg_split()
14. Used to find the amount of words in a string.
str_word_count()
boolean
define()
single quotes
15. Asynchronous Javascript And XML
statement
AJAX
not
empty()
16. Converts a string of ASCII characters to hexadecimal values
ini_set ('display_errors', 1)
include() and require()
bin2hex()
drop
17. Tag to end a php script
crypt()
client-side programing
?>
mysql_close($dbc)
18. To get over quotation marks while using arrays
mysql_fetch_array()
asort()
curly braces
Constant
19. To delete a variable or an element of an array
not
addcslashes()
unset()
$varname[key]
20. Used to encrypt values - it is a one-way encryption method
crypt()
curly braces
AJAX
POST
21. To create an array
if/elseif/else and switch statements
==
mysql_close($dbc)
array()
22. bitwise right shift
>>
switch
addcslashes()
sort()
23. a positive or negative number
wordwrap()
index
integer
underscores
24. container of ordered data elements
Array
int
$_POST[]
<<
25. The array that stores variables specific to a user's visit
$_SESSION[]
predefined variable
XOR
Hex
26. Function used to find the absolute value of a number or numeric variable
include() and require()
string
addcslashes()
abs()
27. To sort the values while maintaining the correlation between each value and its key
indexed array
define()
$var++ and $var
asort()
28. Variable names cannot begin with _______
foreach loop
define()
numbers
&
29. Control structures that break exit
the dollar sign $
decimal
if/elseif/else and switch statements
addcslashes()
30. says 'if' this then do this 'else' do this or 'while' this do this
precedence
^
statement
fopen()
31. Use ______ when there are no variables in the string
Shebang
string
single quotes
ini_set ('display_errors', 1)
32. a type with two possible values: true and false
foreach
index
boolean
DTD
33. To get time data
date()
control structure
index
error_reporting (0)
34. does a certain action when called upon
GET
boolean
loops
function
35. To sort by the keys while maintaining the correlation between the key and its value
preg_match()
ksort()
preg_split()
$var++ and $var
36. Function used to convert new lines in a variable from a form to <br /> tags so that the data can be formatted correctly.
strtok()
nl2br()
curly braces; ${$total}
$$
37. An array whose keys are strings; also known as a hash.
fopen()
associative array
GET
Hex
38. Operators used to operate and assign
true
+= or -= or *= or /=
chr()
strlen()
39. To declare a constant
define()
0
array()
include() and require()
40. Hypertext Preprocessor - a server-side programing language used to create webpages
PHP
trim()
$_GET[]
===
41. The three types of loops in PHP are: for - while - ____.
foreach
index
strlen()
for ($i = 0; $i < count($array); $i++) {statement(s);}
42. 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 __________.
XOR
str_word_count()
preg_match()
curly braces; ${$total}
43. Use ________ to have multiple quotations in one string
variable
.=
the escape character ''
preg_match()
44. Search Engine Optimization
E_STRICT
html_entity_decode()
$var++ and $var
SEO
45. This will show all error reporting.
preg_replace()
<?php
error_reporting (E_ALL)
boolean
46. Use ______ for search engines or catalogued pages or pages that would be bookmarked.
string
GET
ASP
$_REQUEST
47. Used to replace a substring with another string - it is not case-sensitive.
precedence
str_ireplace()
arsort()
boolean
48. To determine the amount of elements in an array
count()
$$
int
error_reporting (E_ALL)
49. _______ is a comparison operator
foreach loop
echo
!= inequality
ASP
50. To sort values of an array without regard to the keys
parentheses
sort()
boolean
foreach