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. An array whose keys are strings; also known as a hash.
curly braces; ${$total}
abs()
defined()
associative array
2. Similar to mysql_fetch_array() - but cannot be accessed by integer offset
mysql_fetch_object()
drop
addcslashes()
precedence
3. To append elements to an array - this will assign item to the next available index; associative arrays get messy.
Error
$array[] = item
htmlspecialchars()
Array
4. To determine the amount of elements in an array
$_REQUEST
count()
.=
str_word_count()
5. The name of the #! used to designate the location of the PHP binary
error_reporting (E_ALL | E_STRICT)
Shebang
unset()
WYSIWYG
6. a line of information that can be stored in a variable or used in a function or statement
indexed array
string
server-side programing
superglobal
7. Asynchronous Javascript And XML
AJAX
strlen()
PHP
arsort()
8. This will not show error reporting - it will be turned off.
error_reporting (0)
date()
Parse error
function error_reporting()
9. returns the number of matches found by a given search string under this format...
+= or -= or *= or /=
Notice
preg_split()
preg_match()
10. Function used to convert new lines in a variable from a form to <br /> tags so that the data can be formatted correctly.
nl2br()
count()
true
?>
11. Used to check if a variable has any value (including 0 or FALSE or an empty string).
mysql_fetch_object()
foreach
?>
isset()
12. This error arises from misusing a function.
error_reporting (E_ALL & -E_NOTICE)
array
Warning
str_word_count()
13. To merge arrays
array_merge()
sort()
associative array
true
14. identity
>>
preg_replace()
===
string
15. container of ordered data elements
Array
Object
count()
Parse error
16. The ouput of var_export((bool)"NULL");
HTML
true
isset()
<<
17. Returns a character from a specified ASCII value
ceil()
null
chr()
curly braces; ${$total}
18. This will show all error reporting except for notice errors.
error_reporting (E_ALL & -E_NOTICE)
XML
count()
Parse error
19. bitwise right shift
double quotes
chr()
>>
Error
20. The three types of loops in PHP are: for - while - ____.
foreach
double quotes
drop
?>
21. Alias of rtrim()
trim()
the escape character ''
octal
chop()
22. does a certain action when called upon
strip_tags()
htmlspecialchars()
array()
function
23. To sort the values while maintaining the correlation between each value and its key
asort()
client-side programing
predefined
server-side programing
24. Search Engine Optimization
?>
AJAX
chop()
SEO
25. Used to check if a given variable has an "empty" value - no value or 0 or FALSE.
DTD
getrandmax()
>>
empty()
26. either hasn't yet been set or is assigned NULL value
arsort()
null
statement
+= or -= or *= or /=
27. The output of var_export((float)array(0));
getrandmax()
1
isset()
variable
28. To refer to an item in an array
int
SEO
chop()
$varname[key]
29. ___________ can be used with substr() to count backward
predefined variable
negative numbers
octal
for ($i = 0; $i < count($array); $i++) {statement(s);}
30. _____ is a logical operator
shuffle()
>>
XOR
client-side programing
31. This fatal fatal is caused by a semantic mistake: omission of a semicolon or imbalance of quotations or parentheses or braces.
SGML
&
arsort()
Parse error
32. Function used to find the absolute value of a number or numeric variable
float
^
abs()
Hex
33. Used to remove any white space - spaces or newlines or tabs - from the beginning and end of a string - not the middle.
boolean
trim()
$_POST[]
count()
34. any programing language where the script is parsed on the server
server-side programing
XML
preg_split()
Magic Constant
35. Variable names can begin with __________
precedence
underscores
curly braces
is_numeric()
36. To remove all HTML and PHP tags.
0
strip_tags()
parentheses
for ($i = 0; $i < count($array); $i++) {statement(s);}
37. $_SERVER is a ________ variable.
preg_match()
error_reporting (E_ALL & -E_NOTICE)
predefined
single quotes
38. Operators used to operate and assign
+= or -= or *= or /=
Parse error
rand()
$$
39. To create an array
ceil()
array()
general
null
40. To iterate over the values of an array
for ($i = 0; $i < count($array); $i++) {statement(s);}
Parse error
error_reporting (E_ALL | E_STRICT)
?>
41. To check if a constant is already declared
Parse error
chop()
defined()
the escape character ''
42. Used to encrypt values - it is a one-way encryption method
open source
HTTP
crypt()
drop
43. 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 __________.
Error
defined()
curly braces; ${$total}
reassign
44. addition
$_SESSION[]
predefined variable
+
^
45. Use ______ for search engines or catalogued pages or pages that would be bookmarked.
true
number_format()
int
GET
46. EXtensible Markup Language
curly braces; ${$total}
XML
the dollar sign $
$_GET[]
47. a storage location in the computer's memory that has a type & a name and a contents
1
variable
floor()
arsort()
48. To iterate over the keys and values of an array
DTD
foreach loop
strlen()
preg_match()
49. Function that contains the highest value that rand() can have randomly
getrandmax()
html_entity_decode()
loops
1
50. any programing language where the user must support the language the script is written in
error_reporting (0)
int
crypt()
client-side programing