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 assign keys to the values in an array
preg_split()
mysql_fetch_array()
precedence
array()
2. To close a connection between a database
client-side programing
is_numeric()
mysql_close($dbc)
1
3. To get over quotation marks while using arrays
client-side programing
curly braces
+
mysql_fetch_array()
4. To sort the values while maintaining the correlation between each value and its key
DTD
strlen()
+
asort()
5. To declare a constant
define()
error_reporting (0)
include() and require()
WYSIWYG
6. container of both data and code
for ($i = 0; $i < count($array); $i++) {statement(s);}
Object
mysql
0
7. says 'if' this then do this 'else' do this or 'while' this do this
ksort()
statement
error_reporting (E_ALL | E_STRICT)
array
8. Use ______ for search engines or catalogued pages or pages that would be bookmarked.
shuffle()
GET
precedence
HTML
9. Alias of rtrim()
AJAX
shuffle()
chop()
trim()
10. What You See Is What You Get
mysql_fetch_array()
urlencode()
+
WYSIWYG
11. 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)
boolean
$array[] = item
drop
12. bitwise right shift
parentheses
fopen()
urlencode()
>>
13. container of ordered data elements
define()
function
Array
str_ireplace()
14. print $_SERVER will _____ work if you use the print function on arrays.
octal
numbers
not
string
15. searches the subject for matches to a given pattern replaced with the given replacement text
preg_replace()
not
$dbc = mysql_connect(hostname, username, password)
the dollar sign $
16. Use ______ when there are no variables in the string
getrandmax()
$array[] = item
curly braces
single quotes
17. The ouput of var_export((bool)"NULL");
true
!= inequality
str_word_count()
addslashes()
18. standard notation
mysql_fetch_array()
1
decimal
html_entity_decode()
19. To delete a variable or an element of an array
mysql_close($dbc)
unset()
boolean
strtok()
20. Leading 0x: 0x13F or 0xA23
mysql
int
ceil()
Hex
21. a type with two possible values: true and false
double quotes
1
boolean
parentheses
22. The output of var_export((float)array());
loops
parentheses
define()
0
23. All variables must begin with _________.
the dollar sign $
$_GET[]
0
integer
24. equivalence
1
==
mysql_fetch_object()
str_ireplace()
25. Use ______ when a variable contains any amount of variables; in general.
double quotes
associative array
E_STRICT
loops
26. Used to remove any white space - spaces or newlines or tabs - from the beginning and end of a string - not the middle.
include() and require()
server-side programing
trim()
strtok()
27. returns the number of matches found by a given search string under this format...
preg_match()
Object
wordwrap()
underscores
28. Use ________ to have multiple quotations in one string
the escape character ''
switch
list()
DTD
29. The order of operations.
foreach loop
precedence
crypt()
strip_tags()
30. To create an array
array()
fopen()
$_SESSION[]
trim()
31. signed floating-point value
Magic Constant
float
predefined variable
AJAX
32. signed integer
error_reporting (E_ALL & -E_NOTICE)
boolean
+= or -= or *= or /=
int
33. To reset an array _______ the array() function to the array
reassign
PHP
WYSIWYG
define()
34. To sort the values while maintaining the correlation between each value and its key - in reversed order
list()
arsort()
$_SESSION[]
Warning
35. Converts a string of ASCII characters to hexadecimal values
bin2hex()
round() Function
html_entity_decode()
urlencode()
36. Function used to find the absolute value of a number or numeric variable
SGML
count()
==
abs()
37. the most basic function in PHP used to output information to the page
predefined
statement
curly braces; ${$total}
echo
38. Variable names can begin with __________
underscores
1
string
mysql
39. TRUE or FALSE
predefined variable
superglobal
bin2hex()
boolean
40. Similar to mysql_fetch_array() - but cannot be accessed by integer offset
nl2br()
mysql_fetch_object()
AJAX
predefined
41. Returns an array that corresponds to the fetched row of MySQL data and moves the internal data pointer ahead
Notice
int
ceil()
mysql_fetch_array()
42. This error refers to a variable with no value.
strlen()
Notice
$var++ and $var
superglobal
43. Used to check if a variable has any value (including 0 or FALSE or an empty string).
mysql
trim()
isset()
boolean
44. does a certain action when called upon
isset()
SEO
function
integer
45. A conditional or loop is a ________________.
date()
HTML
control structure
array()
46. Hyper Text Transfer Protocol
underscores
HTTP
precedence
switch
47. Variable names cannot begin with _______
numbers
AJAX
strip_tags()
statement
48. collection of binary data
ceil()
reassign
preg_match()
string
49. An array of variables passed in the URL
precedence
underscores
$_GET[]
preg_split()
50. identity
define()
define()
Constant
===