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. Use ________ to have multiple quotations in one string
the escape character ''
curly braces; ${$total}
SGML
!= inequality
2. Function used to round down to the lowest integer
floor()
Hex
E_STRICT
index
3. Used to convert certain HTML tags into their entity versions.
indexed array
htmlentities()
htmlspecialchars()
server-side programing
4. addition
===
str_ireplace()
+
==
5. EXtensible Markup Language
XML
Warning
1
chop()
6. To sort the values while maintaining the correlation between each value and its key
$_POST[]
error_reporting (E_ALL)
$dbc = mysql_connect(hostname, username, password)
asort()
7. To find how many substrings are in a string
int
open source
curly braces; ${$total}
substr_count()
8. Tag to begin a php script
true
preg_split()
<?php
define()
9. This fatal error arises from memory allocation problem.
Error
$varname[key]
predefined variable
AJAX
10. bitwise right shift
preg_replace()
>>
arsort()
&
11. What You See Is What You Get
Constant
WYSIWYG
Notice
error_reporting (E_ALL & -E_NOTICE)
12. To reset an array _______ the array() function to the array
integer
reassign
loops
predefined
13. Alias of rtrim()
chop()
nl2br()
sql
include() and require()
14. To sort values of an array in reversed order
define()
rsort()
===
foreach loop
15. Used to check if a variable has any value (including 0 or FALSE or an empty string).
substr_count()
numbers
POST
isset()
16. To assign keys to the values in an array
array()
substr_count()
control structure
Array
17. returns the number of matches found by a given search string under this format...
preg_match()
the period; .
<?php
Hex
18. To reorganise the array randomly
shuffle()
defined()
strtok()
predefined
19. Hypertext Preprocessor - a server-side programing language used to create webpages
list()
boolean
chr()
PHP
20. container of ordered data elements
DTD
Parse error
Array
define()
21. collection of binary data
SGML
HTTP
string
precedence
22. Used to convert all HTML tags into their entity versions.
echo
floor()
htmlentities()
index
23. Operators used to operate and assign
+= or -= or *= or /=
ini_set ('display_errors', 1)
HTML
PHP
24. An array whose keys are numbers.
htmlspecialchars()
server-side programing
SGML
indexed array
25. The three types of loops in PHP are: for - while - ____.
superglobal
array()
foreach
DTD
26. ___________ can be used with substr() to count backward
negative numbers
true
SGML
$$
27. To check if a constant is already declared
defined()
HTML
foreach
$$
28. either hasn't yet been set or is assigned NULL value
strip_tags()
indexed array
null
rand()
29. The output of var_export((float)array(0));
function
the dollar sign $
1
WYSIWYG
30. Hyper Text Markup Language
SEO
addcslashes()
HTML
$_REQUEST
31. a storage location in the computer's memory that has a type & a name and a contents
variable
fopen()
asort()
server-side programing
32. Function used to find the absolute value of a number or numeric variable
index
true
abs()
?>
33. _______ is a comparison operator
shuffle()
!= inequality
single quotes
loops
34. To delete a variable or an element of an array
$_REQUEST
0
str_ireplace()
unset()
35. _________ can be used in conditional statements to set precedence
parentheses
fopen()
strtok()
preg_split()
36. Search Engine Optimization
SEO
int
precedence
<<
37. any programing language where the user must support the language the script is written in
client-side programing
ceil()
indexed array
Warning
38. A conditional or loop is a ________________.
control structure
ini_set ('display_errors', 1)
function error_reporting()
open source
39. To iterate over the values of an array
drop
array()
for ($i = 0; $i < count($array); $i++) {statement(s);}
number_format()
40. Used to display errors in a particular script - should be placed at top of script.
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
41. The array that stores variables specific to a user's visit
list()
GET
float
$_SESSION[]
42. $_POST and $_GET are ________ variables.
statement
==
predefined
round() Function
43. Used to encrypt values - it is a one-way encryption method
number_format()
$_GET[]
crypt()
sort()
44. Variable names cannot begin with _______
numbers
wordwrap()
==
bin2hex()
45. _____ is a logical operator
XML
server-side programing
XOR
<?php
46. To set up error reporting
octal
function error_reporting()
index
XOR
47. To append elements to an array - this will assign item to the next available index; associative arrays get messy.
array()
array_merge()
predefined
$array[] = item
48. a positive or negative number
preg_replace()
ASP
$_POST[]
integer
49. The prefix for a dynamic variable - also known as a variable variable
&
$$
drop
chr()
50. Creates a pointer to a file with the declared mode (read - write -etc.).
underscores
predefined variable
error_reporting (E_ALL & -E_NOTICE)
fopen()