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. _______ is a comparison operator
SEO
loops
!= inequality
not
2. To assign array element values to individual variables
ksort()
curly braces; ${$total}
list()
preg_split()
3. container of ordered data elements
1
is_numeric()
ini_set ('display_errors', 1)
Array
4. Tag to begin a php script
not
html_entity_decode()
htmlspecialchars()
<?php
5. Used to remove any white space - spaces or newlines or tabs - from the beginning and end of a string - not the middle.
boolean
single quotes
trim()
Object
6. Creates a pointer to a file with the declared mode (read - write -etc.).
XOR
fopen()
null
strlen()
7. Used to convert all HTML tags into their entity versions.
array_merge()
function error_reporting()
htmlentities()
error_reporting (0)
8. To iterate over the values of an array
server-side programing
!= inequality
for ($i = 0; $i < count($array); $i++) {statement(s);}
include() and require()
9. does a certain action when called upon
single quotes
Parse error
function
HTTP
10. PHP has two conditional: if and ______.
switch
trim()
reassign
numbers
11. a storage location in the computer's memory that has a type & a name and a contents
array_merge()
PHP
variable
strlen()
12. Variable names can begin with __________
include() and require()
underscores
is_numeric()
date()
13. The four main error types are:Notice - Warning - ________ and Error.
Error
error_reporting (0)
Parse error
getrandmax()
14. Standard Generalized Markup Language
getrandmax()
SGML
true
Object
15. bitwise right shift
html_entity_decode()
>>
float
reassign
16. Use ______ when a variable contains any amount of variables; in general.
ASP
double quotes
count()
$var++ and $var
17. The array that stores variables specific to a user's visit
array_merge()
$_SESSION[]
loops
list()
18. function Function used to create a random number
ASP
rand()
superglobal
array
19. Converts a string of ASCII characters to hexadecimal values
error_reporting (E_ALL & -E_NOTICE)
strip_tags()
bin2hex()
predefined
20. Used to convert certain HTML tags into their entity versions.
SGML
htmlspecialchars()
WYSIWYG
boolean
21. 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
22. Returns an array that corresponds to the fetched row of MySQL data and moves the internal data pointer ahead
htmlspecialchars()
mysql_fetch_array()
Array
$var++ and $var
23. Used to replace a substring with another string - it is not case-sensitive.
addcslashes()
str_ireplace()
indexed array
$_POST[]
24. any programing language where the user must support the language the script is written in
function
client-side programing
<?php
list()
25. Besides GET and POST ________ can be used to access data but $_POST and $_GET are more precise and therefore preferable.
$_REQUEST
function error_reporting()
Hex
define()
26. This error arises from misusing a function.
rand()
Warning
urlencode()
HTTP
27. a line of information that can be stored in a variable or used in a function or statement
string
AJAX
boolean
predefined
28. Online applications and resources which are available to the general public with very few restrictions
unset()
^
drop
open source
29. An array of variables passed with <input /> data
html_entity_decode()
$dbc = mysql_connect(hostname, username, password)
$_POST[]
double quotes
30. container of both data and code
string
Object
boolean
nl2br()
31. This fatal error arises from memory allocation problem.
^
decimal
SGML
Error
32. returns the number of matches found by a given search string under this format...
$var++ and $var
preg_match()
the dollar sign $
underscores
33. Function that contains the highest value that rand() can have randomly
$dbc = mysql_connect(hostname, username, password)
getrandmax()
predefined variable
int
34. The seven main SQL (structured query language) functions are alter - create - delete - _______ - insert - select - update
Parse error
Constant
drop
htmlentities()
35. equivalence
array_merge()
sql
isset()
==
36. 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 __________.
curly braces; ${$total}
strlen()
<?php
strip_tags()
37. This will not show error reporting - it will be turned off.
rsort()
error_reporting (0)
getrandmax()
not
38. The order of operations.
Hex
negative numbers
precedence
nl2br()
39. An array whose keys are numbers.
Error
numbers
indexed array
+
40. ___________ can be used with substr() to count backward
boolean
negative numbers
predefined variable
round() Function
41. signed floating-point value
statement
WYSIWYG
float
$var++ and $var
42. Use _______ for passwords or pages that would not be bookmarked or pages that require security.
htmlentities()
POST
true
<?php
43. This will show all error reporting.
underscores
error_reporting (E_ALL)
Magic Constant
crypt()
44. To set up error reporting
client-side programing
preg_match()
function error_reporting()
statement
45. An array of variables passed in the URL
define()
$_GET[]
function
Object
46. $_POST Data sent using POST found is sent to _______
===
mysql_fetch_object()
predefined variable
decimal
47. To find how many substrings are in a string
echo
substr_count()
SGML
>>
48. standard notation
strlen()
$dbc = mysql_connect(hostname, username, password)
decimal
foreach
49. This fatal fatal is caused by a semantic mistake: omission of a semicolon or imbalance of quotations or parentheses or braces.
number_format()
Parse error
POST
chop()
50. What You See Is What You Get
addcslashes()
define()
WYSIWYG
function