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. This will show all error reporting.
error_reporting (E_ALL)
+= or -= or *= or /=
<?php
AJAX
2. To reset an array _______ the array() function to the array
reassign
round() Function
underscores
<?php
3. Tag to end a php script
echo
?>
htmlentities()
floor()
4. a language in which to make querys to a database with
error_reporting (E_ALL)
XML
sql
mysql_close($dbc)
5. Used to create a substring (referred to as a token) from a larger string
array_merge()
strtok()
foreach
wordwrap()
6. Converts a string of ASCII characters to hexadecimal values
bin2hex()
predefined variable
+= or -= or *= or /=
Notice
7. a storage location in the computer's memory that has a type & a name and a contents
variable
.=
<<
error_reporting (0)
8. A conditional or loop is a ________________.
<?php
numbers
str_word_count()
control structure
9. equivalence
==
single quotes
abs()
nl2br()
10. returns the number of matches found by a given search string under this format...
array()
arsort()
preg_match()
GET
11. any programing language where the script is parsed on the server
preg_replace()
^
index
server-side programing
12. This will show all errors that fall under E_ALL or E_STRICT - the pipe | is used for 'or' so that errors that fall under either will be shown.
error_reporting (E_ALL | E_STRICT)
client-side programing
sql
predefined
13. Used to replace a substring with another string - it is not case-sensitive.
null
str_ireplace()
index
floor()
14. To reorganise the array randomly
HTTP
>>
empty()
shuffle()
15. _______ is a comparison operator
Array
POST
!= inequality
not
16. Used to find the length of a string
Parse error
htmlentities()
strlen()
0
17. All variables must begin with _________.
the dollar sign $
$_SESSION[]
empty()
string
18. This error refers to a variable with no value.
bin2hex()
mysql_fetch_object()
error_reporting (E_ALL & -E_NOTICE)
Notice
19. Returns an array that corresponds to the fetched row of MySQL data and moves the internal data pointer ahead
mysql_fetch_array()
mysql_close($dbc)
single quotes
count()
20. a database which is best supported by PHP
error_reporting (E_ALL & -E_NOTICE)
Notice
$$
mysql
21. The order of operations.
precedence
Magic Constant
variable
round() Function
22. $_SERVER - $_POST - $_GET - $_COOKIE - $_SESSION - $_ENV; special arrays.
superglobal
<<
$array[] = item
control structure
23. Leading 0x: 0x13F or 0xA23
===
WYSIWYG
Hex
ini_set ('display_errors', 1)
24. To include files - _______ will give errors and _________ will terminate execution().
include() and require()
addcslashes()
AJAX
predefined variable
25. Control structure that continue exit - they perform specific statements for a determined number of iterations.
round() Function
strtok()
===
loops
26. Operators used to operate and assign
string
Shebang
+= or -= or *= or /=
addcslashes()
27. Besides GET and POST ________ can be used to access data but $_POST and $_GET are more precise and therefore preferable.
rand()
$_REQUEST
round() Function
strip_tags()
28. To declare a constant
define()
error_reporting (E_ALL)
round() Function
Shebang
29. ____ or key is referred to for a value within an array.
index
error_reporting (E_ALL)
arsort()
trim()
30. Use ______ for search engines or catalogued pages or pages that would be bookmarked.
arsort()
GET
curly braces
HTTP
31. Use ________ to have multiple quotations in one string
open source
$$
boolean
the escape character ''
32. leading zero: 0100 or 0567
defined()
octal
double quotes
list()
33. bitwise AND
include() and require()
SEO
&
htmlspecialchars()
34. The concatenation assignment operator?
Constant
.=
str_ireplace()
isset()
35. either hasn't yet been set or is assigned NULL value
client-side programing
define()
null
foreach loop
36. To iterate over the values of an array
<<
for ($i = 0; $i < count($array); $i++) {statement(s);}
int
error_reporting (E_ALL & -E_NOTICE)
37. signed floating-point value
mysql_fetch_array()
float
array()
+
38. Hyper Text Transfer Protocol
HTTP
isset()
string
asort()
39. The concatenation operator?
the period; .
chr()
curly braces; ${$total}
arsort()
40. Returns a string with backslashes in front of the specified characters
underscores
addcslashes()
HTML
preg_replace()
41. used to round numeric values.
wordwrap()
AJAX
ini_set ('display_errors', 1)
round() Function
42. container of ordered data elements
>>
strtok()
trim()
Array
43. To determine the amount of elements in an array
SEO
Magic Constant
count()
error_reporting (E_ALL & -E_NOTICE)
44. does a certain action when called upon
HTTP
1
function
superglobal
45. any programing language where the user must support the language the script is written in
abs()
array
WYSIWYG
client-side programing
46. 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 __________.
predefined variable
curly braces; ${$total}
control structure
double quotes
47. Used to find the amount of words in a string.
Warning
str_word_count()
trim()
abs()
48. standard notation
the escape character ''
arsort()
decimal
server-side programing
49. $_POST Data sent using POST found is sent to _______
ini_set ('display_errors', 1)
===
predefined variable
chop()
50. a positive or negative number
htmlentities()
null
true
integer