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. To declare a constant
associative array
define()
SEO
?>
2. To sort values of an array without regard to the keys
$$
GET
wordwrap()
sort()
3. Besides GET and POST ________ can be used to access data but $_POST and $_GET are more precise and therefore preferable.
indexed array
predefined variable
integer
$_REQUEST
4. To assign array element values to individual variables
the dollar sign $
list()
error_reporting (E_ALL & -E_NOTICE)
string
5. To assign keys to the values in an array
client-side programing
array()
not
curly braces; ${$total}
6. To create an array
predefined
not
DTD
array()
7. To sort the values while maintaining the correlation between each value and its key - in reversed order
arsort()
^
not
foreach loop
8. $_POST Data sent using POST found is sent to _______
for ($i = 0; $i < count($array); $i++) {statement(s);}
predefined variable
empty()
boolean
9. Use ______ for search engines or catalogued pages or pages that would be bookmarked.
HTTP
Constant
addslashes()
GET
10. used to round numeric values.
asort()
echo
round() Function
predefined variable
11. function Function used to create a random number
index
rsort()
rand()
loops
12. An array whose keys are numbers.
is_numeric()
indexed array
error_reporting (E_ALL | E_STRICT)
integer
13. either hasn't yet been set or is assigned NULL value
array()
date()
1
null
14. The name of the #! used to designate the location of the PHP binary
string
include() and require()
Shebang
sql
15. Asynchronous Javascript And XML
<?php
true
AJAX
+= or -= or *= or /=
16. To merge arrays
array_merge()
XML
$_REQUEST
drop
17. Predefined constants such as __LINE__ or __FILE__ or __FUNCTION__ or __CLASS__ and __METHOD__
strlen()
1
array()
Magic Constant
18. Returns an array that corresponds to the fetched row of MySQL data and moves the internal data pointer ahead
drop
mysql_fetch_array()
?>
addcslashes()
19. To refer to an element in a multidimensional array list the indices in order of _____ to more precise;
statement
null
$var++ and $var
general
20. Creates a pointer to a file with the declared mode (read - write -etc.).
fopen()
Shebang
addcslashes()
Notice
21. any programing language where the user must support the language the script is written in
loops
array
client-side programing
if/elseif/else and switch statements
22. To check if a constant is already declared
+= or -= or *= or /=
defined()
foreach
loops
23. Hyper Text Markup Language
+
$_POST[]
predefined variable
HTML
24. Similar to mysql_fetch_array() - but cannot be accessed by integer offset
$_REQUEST
<?php
open source
mysql_fetch_object()
25. The order of operations.
precedence
Error
+
$_SESSION[]
26. Define(NAME,value)
error_reporting (E_ALL | E_STRICT)
control structure
addslashes()
Constant
27. Uses two arguments: constant name and constant definition
statement
indexed array
define()
precedence
28. A data structure that can hold a number of items of data of the same type eg. a list of names
true
is_numeric()
wordwrap()
array
29. a type with two possible values: true and false
reassign
predefined
$$
boolean
30. Used to check if a variable has any value (including 0 or FALSE or an empty string).
htmlspecialchars()
isset()
function error_reporting()
array()
31. a line of information that can be stored in a variable or used in a function or statement
count()
string
SGML
predefined
32. searches the subject for matches to a given pattern replaced with the given replacement text
preg_replace()
^
define()
Warning
33. 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.
empty()
==
superglobal
error_reporting (E_ALL | E_STRICT)
34. This error arises from misusing a function.
Warning
predefined
$var++ and $var
superglobal
35. The concatenation assignment operator?
SEO
error_reporting (E_ALL | E_STRICT)
sort()
.=
36. signed floating-point value
float
octal
Warning
boolean
37. Returns a string with backslashes in front of predefined characters
ini_set ('display_errors', 1)
general
addslashes()
^
38. The concatenation operator?
rand()
!= inequality
the period; .
ceil()
39. bitwise XOR
^
ASP
error_reporting (0)
$var++ and $var
40. Active Server Pages
ASP
error_reporting (E_ALL)
sql
array()
41. Alias of rtrim()
&
chop()
variable
Warning
42. Used to create a substring (referred to as a token) from a larger string
strtok()
array()
single quotes
&
43. Returns a character from a specified ASCII value
SGML
predefined variable
superglobal
chr()
44. ___________ can be used with substr() to count backward
unset()
negative numbers
date()
float
45. Returns a string with backslashes in front of the specified characters
htmlspecialchars()
GET
addcslashes()
preg_match()
46. This will show all error reporting.
trim()
str_ireplace()
str_word_count()
error_reporting (E_ALL)
47. identity
===
include() and require()
if/elseif/else and switch statements
single quotes
48. The prefix for a dynamic variable - also known as a variable variable
$$
isset()
sql
abs()
49. Function used to round down to the lowest integer
parentheses
numbers
floor()
predefined variable
50. Use ______ when there are no variables in the string
bin2hex()
single quotes
array()
getrandmax()