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 prefix for a dynamic variable - also known as a variable variable
bin2hex()
foreach loop
index
$$
2. Leading 0x: 0x13F or 0xA23
Hex
GET
mysql_fetch_object()
trim()
3. To check if a constant is already declared
defined()
error_reporting (E_ALL)
error_reporting (0)
null
4. To append elements to an array - this will assign item to the next available index; associative arrays get messy.
$_POST[]
$array[] = item
rsort()
GET
5. Returns an array that corresponds to the fetched row of MySQL data and moves the internal data pointer ahead
Shebang
mysql_fetch_array()
substr_count()
define()
6. bitwise right shift
predefined
string
>>
GET
7. $_POST Data sent using POST found is sent to _______
AJAX
GET
drop
predefined variable
8. container of ordered data elements
numbers
Hex
strip_tags()
Array
9. a database which is best supported by PHP
negative numbers
mysql
unset()
Warning
10. Hyper Text Markup Language
HTML
array
variable
mysql_fetch_array()
11. To delete a variable or an element of an array
function error_reporting()
+= or -= or *= or /=
unset()
open source
12. Define(NAME,value)
Parse error
error_reporting (0)
fopen()
Constant
13. The concatenation assignment operator?
open source
$varname[key]
Warning
.=
14. Use ________ to have multiple quotations in one string
addslashes()
POST
ASP
the escape character ''
15. Used to replace a substring with another string - it is not case-sensitive.
$_GET[]
asort()
str_ireplace()
include() and require()
16. What You See Is What You Get
variable
octal
<<
WYSIWYG
17. _________ can be used in conditional statements to set precedence
define()
parentheses
Error
str_ireplace()
18. To sort by the keys while maintaining the correlation between the key and its value
ksort()
abs()
&
Object
19. To refer to an element in a multidimensional array list the indices in order of _____ to more precise;
strtok()
Magic Constant
general
html_entity_decode()
20. Used to remove any white space - spaces or newlines or tabs - from the beginning and end of a string - not the middle.
PHP
drop
chr()
trim()
21. Used to find the amount of words in a string.
$_POST[]
str_word_count()
$_REQUEST
Object
22. Online applications and resources which are available to the general public with very few restrictions
===
$array[] = item
open source
include() and require()
23. says 'if' this then do this 'else' do this or 'while' this do this
is_numeric()
Parse error
error_reporting (E_ALL & -E_NOTICE)
statement
24. This will show all error reporting except for notice errors.
error_reporting (E_ALL & -E_NOTICE)
array_merge()
function error_reporting()
loops
25. standard notation
decimal
XOR
foreach
octal
26. a line of information that can be stored in a variable or used in a function or statement
isset()
switch
floor()
string
27. Document Type Definitions
DTD
asort()
empty()
Object
28. Use ______ for search engines or catalogued pages or pages that would be bookmarked.
reassign
GET
SEO
count()
29. PHP has two conditional: if and ______.
chop()
switch
for ($i = 0; $i < count($array); $i++) {statement(s);}
define()
30. The order of operations.
precedence
sort()
^
XOR
31. bitwise left shift
<<
asort()
array
&
32. An array of variables passed in the URL
HTTP
html_entity_decode()
$_GET[]
int
33. Used to check if a variable has a valid numerical value; strings with numerical values pass.
&
Parse error
addcslashes()
is_numeric()
34. Used to find the length of a string
function
strlen()
?>
asort()
35. 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
36. allows you to split strings based on more complex rules
chr()
Magic Constant
open source
preg_split()
37. _______ is a comparison operator
$_SESSION[]
crypt()
!= inequality
PHP
38. To word wrap after a certain amount of characters.
list()
wordwrap()
$_POST[]
decimal
39. Function used to round down to the lowest integer
htmlentities()
floor()
curly braces; ${$total}
mysql_fetch_array()
40. The name of the #! used to designate the location of the PHP binary
boolean
Shebang
addslashes()
$varname[key]
41. Active Server Pages
isset()
ASP
variable
Magic Constant
42. container of both data and code
+= or -= or *= or /=
abs()
Object
boolean
43. $_SERVER - $_POST - $_GET - $_COOKIE - $_SESSION - $_ENV; special arrays.
superglobal
error_reporting (E_ALL | E_STRICT)
floor()
$_REQUEST
44. The three types of loops in PHP are: for - while - ____.
strip_tags()
double quotes
is_numeric()
foreach
45. This error arises from misusing a function.
predefined
Warning
POST
Parse error
46. ___________ can be used with substr() to count backward
negative numbers
function
SGML
mysql_fetch_object()
47. any programing language where the user must support the language the script is written in
>>
unset()
client-side programing
Parse error
48. Tag to end a php script
XOR
array()
===
?>
49. To set up error reporting
array()
strtok()
function error_reporting()
decimal
50. An array whose keys are strings; also known as a hash.
ksort()
the dollar sign $
parentheses
associative array