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. container of ordered data elements
predefined variable
error_reporting (E_ALL | E_STRICT)
Array
curly braces; ${$total}
2. searches the subject for matches to a given pattern replaced with the given replacement text
preg_replace()
getrandmax()
server-side programing
abs()
3. Used to encrypt values - it is a one-way encryption method
echo
count()
for ($i = 0; $i < count($array); $i++) {statement(s);}
crypt()
4. The order of operations.
bin2hex()
boolean
precedence
predefined variable
5. returns the number of matches found by a given search string under this format...
reassign
trim()
associative array
preg_match()
6. Tag to end a php script
?>
integer
general
+
7. Variable names can begin with __________
general
loops
underscores
fopen()
8. bitwise right shift
addcslashes()
array()
Constant
>>
9. print $_SERVER will _____ work if you use the print function on arrays.
rsort()
not
variable
+
10. To sort the values while maintaining the correlation between each value and its key
client-side programing
asort()
foreach loop
float
11. $_SERVER - $_POST - $_GET - $_COOKIE - $_SESSION - $_ENV; special arrays.
boolean
superglobal
str_ireplace()
$varname[key]
12. Used to find the amount of words in a string.
Notice
underscores
str_word_count()
HTML
13. does a certain action when called upon
XML
include() and require()
trim()
function
14. To iterate over the keys and values of an array
chop()
the escape character ''
open source
foreach loop
15. To refer to an element in a multidimensional array list the indices in order of _____ to more precise;
general
==
associative array
boolean
16. collection of binary data
loops
string
include() and require()
preg_match()
17. To word wrap after a certain amount of characters.
single quotes
the period; .
wordwrap()
list()
18. ____ or key is referred to for a value within an array.
crypt()
index
<<
open source
19. Function used to round up to the highest integer
define()
ceil()
htmlspecialchars()
XOR
20. To sort the values while maintaining the correlation between each value and its key - in reversed order
$dbc = mysql_connect(hostname, username, password)
if/elseif/else and switch statements
arsort()
===
21. Function used to find the absolute value of a number or numeric variable
AJAX
SGML
abs()
function error_reporting()
22. To create an array
variable
html_entity_decode()
$array[] = item
array()
23. equivalence
$varname[key]
==
defined()
associative array
24. This fatal fatal is caused by a semantic mistake: omission of a semicolon or imbalance of quotations or parentheses or braces.
number_format()
if/elseif/else and switch statements
Parse error
chr()
25. Used to check if a variable has any value (including 0 or FALSE or an empty string).
superglobal
0
bin2hex()
isset()
26. To find how many substrings are in a string
isset()
substr_count()
precedence
str_ireplace()
27. To set up error reporting
Object
str_word_count()
SEO
function error_reporting()
28. Converts a string of ASCII characters to hexadecimal values
integer
empty()
single quotes
bin2hex()
29. Use ______ for search engines or catalogued pages or pages that would be bookmarked.
GET
ini_set ('display_errors', 1)
PHP
$_SESSION[]
30. To determine the amount of elements in an array
$$
WYSIWYG
count()
switch
31. Returns a character from a specified ASCII value
chr()
indexed array
+= or -= or *= or /=
E_STRICT
32. Similar to mysql_fetch_array() - but cannot be accessed by integer offset
chop()
.=
mysql_fetch_object()
arsort()
33. The ouput of var_export((bool)"NULL");
true
number_format()
^
SEO
34. _________ can be used in conditional statements to set precedence
decimal
string
parentheses
$$
35. TRUE or FALSE
+= or -= or *= or /=
switch
boolean
function error_reporting()
36. a language in which to make querys to a database with
preg_match()
predefined
sql
number_format()
37. container of both data and code
Array
Object
addslashes()
DTD
38. This error arises from misusing a function.
!= inequality
html_entity_decode()
error_reporting (E_ALL)
Warning
39. A conditional or loop is a ________________.
chop()
+= or -= or *= or /=
control structure
<?php
40. To merge arrays
array_merge()
str_ireplace()
htmlentities()
XOR
41. A data structure that can hold a number of items of data of the same type eg. a list of names
&
underscores
array
error_reporting (0)
42. Use _______ for passwords or pages that would not be bookmarked or pages that require security.
function
double quotes
^
POST
43. signed floating-point value
^
strlen()
float
error_reporting (E_ALL | E_STRICT)
44. To declare a constant
predefined variable
define()
abs()
mysql
45. Hyper Text Transfer Protocol
mysql_fetch_array()
the period; .
HTTP
?>
46. _____ is a logical operator
str_ireplace()
Array
+
XOR
47. a positive or negative number
asort()
integer
mysql_fetch_array()
<?php
48. function Function used to create a random number
ksort()
true
Array
rand()
49. bitwise left shift
error_reporting (E_ALL & -E_NOTICE)
<<
Array
Parse error
50. ___________ can be used with substr() to count backward
negative numbers
array_merge()
preg_match()
DTD