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. any programing language where the script is parsed on the server
precedence
server-side programing
rsort()
for ($i = 0; $i < count($array); $i++) {statement(s);}
2. This error refers to a variable with no value.
not
array()
PHP
Notice
3. Used to convert all HTML tags into their entity versions.
urlencode()
associative array
<?php
htmlentities()
4. To delete a variable or an element of an array
ini_set ('display_errors', 1)
unset()
control structure
Object
5. Function used to round down to the lowest integer
preg_replace()
floor()
POST
SEO
6. An array of variables passed with <input /> data
$_POST[]
XML
integer
null
7. 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 __________.
WYSIWYG
rand()
mysql_fetch_object()
curly braces; ${$total}
8. Hypertext Preprocessor - a server-side programing language used to create webpages
error_reporting (0)
array_merge()
PHP
wordwrap()
9. Used to convert certain HTML tags into their entity versions.
string
htmlspecialchars()
DTD
not
10. Standard Generalized Markup Language
Constant
predefined
SGML
precedence
11. allows you to split strings based on more complex rules
the escape character ''
preg_split()
$var++ and $var
loops
12. Online applications and resources which are available to the general public with very few restrictions
addcslashes()
Object
===
open source
13. Document Type Definitions
DTD
AJAX
$_SESSION[]
double quotes
14. Used to find the amount of words in a string.
str_word_count()
predefined
ini_set ('display_errors', 1)
str_ireplace()
15. To sort the values while maintaining the correlation between each value and its key - in reversed order
loops
arsort()
htmlspecialchars()
ini_set ('display_errors', 1)
16. Define(NAME,value)
sql
Constant
index
getrandmax()
17. A data structure that can hold a number of items of data of the same type eg. a list of names
round() Function
.=
empty()
array
18. $_SERVER is a ________ variable.
sort()
empty()
string
predefined
19. The seven main error reporting constants are: E_NOTICE - E_WARNING - E_PARSE - E_ERROR - E_ALL - _____ - E_DEPRECATED
date()
htmlspecialchars()
E_STRICT
bin2hex()
20. 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
21. This fatal error arises from memory allocation problem.
empty()
SGML
HTTP
Error
22. does a certain action when called upon
function
switch
==
SEO
23. says 'if' this then do this 'else' do this or 'while' this do this
SGML
statement
defined()
0
24. The prefix for a dynamic variable - also known as a variable variable
$$
function error_reporting()
predefined variable
addcslashes()
25. a language in which to make querys to a database with
decimal
WYSIWYG
sql
if/elseif/else and switch statements
26. container of both data and code
boolean
array_merge()
trim()
Object
27. To create an array
addcslashes()
?>
superglobal
array()
28. Control structures that break exit
if/elseif/else and switch statements
open source
error_reporting (E_ALL & -E_NOTICE)
list()
29. the most basic function in PHP used to output information to the page
abs()
echo
$dbc = mysql_connect(hostname, username, password)
loops
30. To merge arrays
Object
E_STRICT
chr()
array_merge()
31. This fatal fatal is caused by a semantic mistake: omission of a semicolon or imbalance of quotations or parentheses or braces.
SGML
Parse error
string
0
32. Function used to round up to the highest integer
fopen()
ceil()
sql
the period; .
33. The concatenation operator?
the period; .
drop
SEO
function
34. Used to create a substring (referred to as a token) from a larger string
error_reporting (E_ALL | E_STRICT)
numbers
urlencode()
strtok()
35. The name of the #! used to designate the location of the PHP binary
$$
Shebang
Notice
ceil()
36. ____ or key is referred to for a value within an array.
index
null
str_ireplace()
isset()
37. Variable names cannot begin with _______
XOR
numbers
1
mysql_close($dbc)
38. This will not show error reporting - it will be turned off.
error_reporting (0)
control structure
arsort()
string
39. To get over quotation marks while using arrays
octal
curly braces
crypt()
+= or -= or *= or /=
40. Returns a string with backslashes in front of predefined characters
curly braces; ${$total}
Error
chr()
addslashes()
41. Variable names can begin with __________
error_reporting (E_ALL)
drop
underscores
isset()
42. Returns a string with backslashes in front of the specified characters
ASP
not
addcslashes()
array()
43. An array whose keys are numbers.
isset()
predefined
arsort()
indexed array
44. Creates a pointer to a file with the declared mode (read - write -etc.).
array_merge()
defined()
fopen()
string
45. Shorthand used to increment and decrement
list()
$var++ and $var
is_numeric()
curly braces; ${$total}
46. To sort the values while maintaining the correlation between each value and its key
0
rsort()
Array
asort()
47. Use ______ when a variable contains any amount of variables; in general.
for ($i = 0; $i < count($array); $i++) {statement(s);}
substr_count()
double quotes
foreach loop
48. container of ordered data elements
Array
preg_split()
is_numeric()
indexed array
49. To assign array element values to individual variables
list()
curly braces
nl2br()
loops
50. bitwise right shift
not
HTML
>>
open source