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. identity
ksort()
Shebang
===
null
2. _____ is a logical operator
integer
rsort()
XOR
ceil()
3. Function that contains the highest value that rand() can have randomly
getrandmax()
array()
strtok()
SGML
4. To find how many substrings are in a string
for ($i = 0; $i < count($array); $i++) {statement(s);}
echo
WYSIWYG
substr_count()
5. Use ______ for search engines or catalogued pages or pages that would be bookmarked.
is_numeric()
parentheses
GET
mysql_close($dbc)
6. The seven main error reporting constants are: E_NOTICE - E_WARNING - E_PARSE - E_ERROR - E_ALL - _____ - E_DEPRECATED
define()
str_word_count()
error_reporting (E_ALL | E_STRICT)
E_STRICT
7. Used to convert all HTML tags into their entity versions.
htmlentities()
rand()
negative numbers
htmlspecialchars()
8. the most basic function in PHP used to output information to the page
curly braces
null
echo
statement
9. a database which is best supported by PHP
<?php
==
mysql
Object
10. The array that stores variables specific to a user's visit
$_SESSION[]
underscores
server-side programing
shuffle()
11. bitwise AND
mysql_fetch_object()
HTML
function
&
12. Used to convert certain HTML tags into their entity versions.
error_reporting (E_ALL)
htmlspecialchars()
Magic Constant
loops
13. $_SERVER - $_POST - $_GET - $_COOKIE - $_SESSION - $_ENV; special arrays.
integer
array()
precedence
superglobal
14. To sort values of an array in reversed order
fopen()
rsort()
Object
for ($i = 0; $i < count($array); $i++) {statement(s);}
15. Leading 0x: 0x13F or 0xA23
htmlentities()
1
fopen()
Hex
16. Hypertext Preprocessor - a server-side programing language used to create webpages
array()
$varname[key]
PHP
error_reporting (E_ALL & -E_NOTICE)
17. This error arises from misusing a function.
strip_tags()
HTML
$_REQUEST
Warning
18. Similar to mysql_fetch_array() - but cannot be accessed by integer offset
$_POST[]
crypt()
mysql_fetch_object()
addcslashes()
19. Returns an array that corresponds to the fetched row of MySQL data and moves the internal data pointer ahead
Shebang
E_STRICT
mysql_fetch_array()
$_SESSION[]
20. bitwise XOR
?>
count()
^
POST
21. To create an array
associative array
include() and require()
predefined
array()
22. This fatal fatal is caused by a semantic mistake: omission of a semicolon or imbalance of quotations or parentheses or braces.
Parse error
echo
error_reporting (E_ALL & -E_NOTICE)
SEO
23. 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
24. Shorthand used to increment and decrement
chop()
urlencode()
HTTP
$var++ and $var
25. Predefined constants such as __LINE__ or __FILE__ or __FUNCTION__ or __CLASS__ and __METHOD__
1
$_SESSION[]
variable
Magic Constant
26. collection of binary data
defined()
sort()
string
parentheses
27. $_POST Data sent using POST found is sent to _______
predefined variable
ksort()
include() and require()
$_POST[]
28. This will show all error reporting except for notice errors.
the escape character ''
E_STRICT
predefined
error_reporting (E_ALL & -E_NOTICE)
29. An array whose keys are strings; also known as a hash.
urlencode()
associative array
parentheses
error_reporting (E_ALL)
30. The output of var_export((float)array(0));
1
sql
precedence
function error_reporting()
31. To get time data
error_reporting (0)
date()
negative numbers
Shebang
32. To include files - _______ will give errors and _________ will terminate execution().
string
include() and require()
addslashes()
isset()
33. leading zero: 0100 or 0567
decimal
octal
GET
empty()
34. Creates a pointer to a file with the declared mode (read - write -etc.).
bin2hex()
fopen()
unset()
urlencode()
35. Function used to round down to the lowest integer
floor()
$dbc = mysql_connect(hostname, username, password)
$_SESSION[]
mysql_close($dbc)
36. A conditional or loop is a ________________.
the period; .
server-side programing
Error
control structure
37. To get over quotation marks while using arrays
the period; .
curly braces
XML
predefined
38. Operators used to operate and assign
the period; .
+= or -= or *= or /=
the dollar sign $
$varname[key]
39. The name of the #! used to designate the location of the PHP binary
the period; .
sql
Shebang
floor()
40. To set up error reporting
string
PHP
date()
function error_reporting()
41. Used to find the amount of words in a string.
integer
$array[] = item
str_word_count()
htmlentities()
42. To refer to an element in a multidimensional array list the indices in order of _____ to more precise;
define()
general
double quotes
ini_set ('display_errors', 1)
43. To iterate over the values of an array
include() and require()
nl2br()
for ($i = 0; $i < count($array); $i++) {statement(s);}
integer
44. Document Type Definitions
DTD
error_reporting (E_ALL)
predefined variable
the escape character ''
45. Use _______ for passwords or pages that would not be bookmarked or pages that require security.
chr()
GET
POST
predefined
46. ____ or key is referred to for a value within an array.
str_word_count()
defined()
Hex
index
47. To reorganise the array randomly
superglobal
the period; .
?>
shuffle()
48. bitwise right shift
rsort()
associative array
XOR
>>
49. This fatal error arises from memory allocation problem.
associative array
===
Parse error
Error
50. The four main error types are:Notice - Warning - ________ and Error.
>>
array()
Parse error
true