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 ''
Shebang
0
$_POST[]
2. Function used to convert new lines in a variable from a form to <br /> tags so that the data can be formatted correctly.
===
for ($i = 0; $i < count($array); $i++) {statement(s);}
function
nl2br()
3. Active Server Pages
$_POST[]
index
open source
ASP
4. A conditional or loop is a ________________.
urlencode()
error_reporting (E_ALL & -E_NOTICE)
switch
control structure
5. What You See Is What You Get
define()
WYSIWYG
predefined
>>
6. container of ordered data elements
html_entity_decode()
curly braces; ${$total}
Array
Constant
7. To close a connection between a database
arsort()
^
server-side programing
mysql_close($dbc)
8. The output of var_export((float)array());
E_STRICT
0
error_reporting (E_ALL)
precedence
9. Variable names cannot begin with _______
single quotes
boolean
parentheses
numbers
10. An array whose keys are numbers.
switch
indexed array
int
single quotes
11. identity
the dollar sign $
count()
===
floor()
12. ___________ can be used with substr() to count backward
negative numbers
Parse error
superglobal
AJAX
13. To assign array element values to individual variables
general
addslashes()
predefined variable
list()
14. addition
DTD
<?php
chr()
+
15. a positive or negative number
predefined
include() and require()
integer
reassign
16. Operators used to operate and assign
predefined
+= or -= or *= or /=
strlen()
$_REQUEST
17. All variables must begin with _________.
the dollar sign $
array()
E_STRICT
HTTP
18. used to round numeric values.
round() Function
parentheses
unset()
function
19. container of both data and code
if/elseif/else and switch statements
0
Object
$_SESSION[]
20. The seven main error reporting constants are: E_NOTICE - E_WARNING - E_PARSE - E_ERROR - E_ALL - _____ - E_DEPRECATED
preg_split()
E_STRICT
switch
null
21. leading zero: 0100 or 0567
octal
if/elseif/else and switch statements
shuffle()
wordwrap()
22. 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
23. To determine the amount of elements in an array
htmlspecialchars()
string
count()
+
24. a type with two possible values: true and false
Notice
include() and require()
boolean
1
25. To get time data
ceil()
date()
boolean
reassign
26. To delete a variable or an element of an array
Constant
curly braces
unset()
the escape character ''
27. This fatal fatal is caused by a semantic mistake: omission of a semicolon or imbalance of quotations or parentheses or braces.
sql
int
Parse error
substr_count()
28. To assign keys to the values in an array
list()
null
strlen()
array()
29. To refer to an item in an array
$varname[key]
include() and require()
error_reporting (E_ALL)
Parse error
30. To set up error reporting
true
HTML
function error_reporting()
fopen()
31. _________ can be used in conditional statements to set precedence
parentheses
abs()
addslashes()
number_format()
32. Function can you use to format a number with commas
function
number_format()
client-side programing
$_SESSION[]
33. a database which is best supported by PHP
$array[] = item
ASP
open source
mysql
34. To word wrap after a certain amount of characters.
XOR
HTTP
<?php
wordwrap()
35. The concatenation operator?
negative numbers
the period; .
int
statement
36. $_SERVER - $_POST - $_GET - $_COOKIE - $_SESSION - $_ENV; special arrays.
preg_match()
XML
true
superglobal
37. Used to check if a variable has any value (including 0 or FALSE or an empty string).
isset()
$_GET[]
defined()
getrandmax()
38. $_POST and $_GET are ________ variables.
$dbc = mysql_connect(hostname, username, password)
nl2br()
count()
predefined
39. A data structure that can hold a number of items of data of the same type eg. a list of names
str_ireplace()
<?php
array
variable
40. Function used to round up to the highest integer
ceil()
function
bin2hex()
.=
41. Leading 0x: 0x13F or 0xA23
Shebang
octal
Hex
Constant
42. a line of information that can be stored in a variable or used in a function or statement
string
substr_count()
drop
predefined
43. To merge arrays
array()
array_merge()
shuffle()
getrandmax()
44. function Function used to create a random number
rand()
0
wordwrap()
Shebang
45. collection of binary data
0
string
curly braces
true
46. The concatenation assignment operator?
statement
==
.=
$dbc = mysql_connect(hostname, username, password)
47. Tag to begin a php script
function
<?php
$array[] = item
boolean
48. Standard Generalized Markup Language
$var++ and $var
sql
parentheses
SGML
49. bitwise AND
shuffle()
&
count()
Error
50. This fatal error arises from memory allocation problem.
abs()
$_REQUEST
?>
Error