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. The seven main error reporting constants are: E_NOTICE - E_WARNING - E_PARSE - E_ERROR - E_ALL - _____ - E_DEPRECATED
E_STRICT
is_numeric()
fopen()
predefined variable
2. Function used to round up to the highest integer
?>
$dbc = mysql_connect(hostname, username, password)
WYSIWYG
ceil()
3. The output of var_export((float)array(0));
DTD
reassign
Constant
1
4. An array whose keys are numbers.
predefined
Error
indexed array
client-side programing
5. Predefined constants such as __LINE__ or __FILE__ or __FUNCTION__ or __CLASS__ and __METHOD__
loops
Magic Constant
decimal
reassign
6. Returns a string with backslashes in front of predefined characters
ini_set ('display_errors', 1)
$array[] = item
addslashes()
foreach
7. a database which is best supported by PHP
mysql_fetch_object()
array()
<?php
mysql
8. This will show all error reporting.
for ($i = 0; $i < count($array); $i++) {statement(s);}
POST
nl2br()
error_reporting (E_ALL)
9. The output of var_export((float)array());
Array
preg_replace()
0
superglobal
10. equivalence
int
$dbc = mysql_connect(hostname, username, password)
==
preg_replace()
11. Used to check if a variable has a valid numerical value; strings with numerical values pass.
is_numeric()
crypt()
array()
switch
12. An array of variables passed with <input /> data
$_POST[]
mysql_close($dbc)
floor()
integer
13. The order of operations.
precedence
numbers
ksort()
error_reporting (0)
14. Function can you use to format a number with commas
html_entity_decode()
number_format()
null
negative numbers
15. The four main error types are:Notice - Warning - ________ and Error.
error_reporting (E_ALL & -E_NOTICE)
Parse error
abs()
array()
16. returns the number of matches found by a given search string under this format...
Hex
urlencode()
preg_match()
$varname[key]
17. Used to find the length of a string
str_ireplace()
<<
string
strlen()
18. used to round numeric values.
round() Function
array
null
?>
19. Use ______ when there are no variables in the string
single quotes
for ($i = 0; $i < count($array); $i++) {statement(s);}
string
round() Function
20. All variables must begin with _________.
the dollar sign $
ceil()
true
function
21. To sort by the keys while maintaining the correlation between the key and its value
ksort()
&
Hex
$_SESSION[]
22. Hyper Text Markup Language
HTML
error_reporting (E_ALL | E_STRICT)
$var++ and $var
addcslashes()
23. Shorthand used to increment and decrement
strtok()
Object
true
$var++ and $var
24. A conditional or loop is a ________________.
mysql
POST
true
control structure
25. Function used to round down to the lowest integer
string
floor()
$_POST[]
rand()
26. a type with two possible values: true and false
string
unset()
drop
boolean
27. signed integer
int
$_REQUEST
strtok()
variable
28. Hyper Text Transfer Protocol
HTTP
number_format()
associative array
mysql_fetch_array()
29. a positive or negative number
HTTP
integer
$_SESSION[]
PHP
30. Standard Generalized Markup Language
^
true
index
SGML
31. To assign keys to the values in an array
preg_replace()
array()
rand()
predefined variable
32. To determine the amount of elements in an array
count()
reassign
ceil()
floor()
33. Online applications and resources which are available to the general public with very few restrictions
int
open source
Array
for ($i = 0; $i < count($array); $i++) {statement(s);}
34. Used to replace a substring with another string - it is not case-sensitive.
echo
superglobal
1
str_ireplace()
35. This will not show error reporting - it will be turned off.
error_reporting (0)
predefined variable
Warning
define()
36. To include files - _______ will give errors and _________ will terminate execution().
isset()
include() and require()
function
preg_split()
37. 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
38. What You See Is What You Get
include() and require()
WYSIWYG
negative numbers
Warning
39. Returns a character from a specified ASCII value
XOR
function
array()
chr()
40. ___________ can be used with substr() to count backward
define()
negative numbers
empty()
$_POST[]
41. A data structure that can hold a number of items of data of the same type eg. a list of names
shuffle()
null
array()
array
42. To counter htmlentities()
XOR
foreach
html_entity_decode()
strlen()
43. To get over quotation marks while using arrays
underscores
$$
curly braces
mysql_close($dbc)
44. container of both data and code
HTML
SGML
foreach loop
Object
45. any programing language where the script is parsed on the server
GET
define()
server-side programing
$varname[key]
46. allows you to split strings based on more complex rules
nl2br()
Shebang
preg_split()
boolean
47. Use ________ to have multiple quotations in one string
predefined variable
WYSIWYG
the escape character ''
===
48. The seven main SQL (structured query language) functions are alter - create - delete - _______ - insert - select - update
html_entity_decode()
drop
XOR
client-side programing
49. _____ is a logical operator
chr()
ASP
octal
XOR
50. The three types of loops in PHP are: for - while - ____.
boolean
SGML
float
foreach