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. Converts a string of ASCII characters to hexadecimal values
strtok()
1
if/elseif/else and switch statements
bin2hex()
2. A data structure that can hold a number of items of data of the same type eg. a list of names
float
array
ASP
WYSIWYG
3. PHP has two conditional: if and ______.
single quotes
date()
parentheses
switch
4. All variables must begin with _________.
curly braces
ksort()
parentheses
the dollar sign $
5. To determine the amount of elements in an array
foreach loop
preg_split()
index
count()
6. a line of information that can be stored in a variable or used in a function or statement
SGML
strtok()
+
string
7. The syntax for connecting to a database
$dbc = mysql_connect(hostname, username, password)
loops
control structure
single quotes
8. Used to replace a substring with another string - it is not case-sensitive.
+
integer
str_ireplace()
strlen()
9. Control structure that continue exit - they perform specific statements for a determined number of iterations.
Object
+
$array[] = item
loops
10. Tag to begin a php script
XML
<?php
count()
define()
11. bitwise AND
Constant
!= inequality
nl2br()
&
12. To include files - _______ will give errors and _________ will terminate execution().
arsort()
client-side programing
include() and require()
Magic Constant
13. Function used to convert new lines in a variable from a form to <br /> tags so that the data can be formatted correctly.
===
nl2br()
switch
<<
14. To set up error reporting
the escape character ''
Array
function error_reporting()
foreach
15. Use ________ to have multiple quotations in one string
mysql
the escape character ''
error_reporting (0)
octal
16. What You See Is What You Get
Warning
wordwrap()
drop
WYSIWYG
17. Function used to find the absolute value of a number or numeric variable
number_format()
function error_reporting()
abs()
PHP
18. Variable names cannot begin with _______
mysql_close($dbc)
numbers
str_ireplace()
control structure
19. Used to convert certain HTML tags into their entity versions.
XOR
echo
error_reporting (E_ALL & -E_NOTICE)
htmlspecialchars()
20. Function used to round up to the highest integer
getrandmax()
Parse error
ceil()
the period; .
21. standard notation
decimal
array()
list()
GET
22. To iterate over the values of an array
SGML
HTTP
unset()
for ($i = 0; $i < count($array); $i++) {statement(s);}
23. To remove all HTML and PHP tags.
Error
SGML
addcslashes()
strip_tags()
24. To refer to an element in a multidimensional array list the indices in order of _____ to more precise;
numbers
general
the escape character ''
sql
25. searches the subject for matches to a given pattern replaced with the given replacement text
preg_replace()
foreach
sql
$_POST[]
26. Shorthand used to increment and decrement
integer
POST
$var++ and $var
error_reporting (0)
27. To reset an array _______ the array() function to the array
reassign
E_STRICT
AJAX
POST
28. To check if a constant is already declared
<<
defined()
isset()
addslashes()
29. To assign array element values to individual variables
AJAX
list()
HTML
asort()
30. To refer to an item in an array
Object
$dbc = mysql_connect(hostname, username, password)
boolean
$varname[key]
31. The output of var_export((float)array());
?>
0
Warning
sql
32. a database which is best supported by PHP
error_reporting (E_ALL | E_STRICT)
mysql
variable
ksort()
33. bitwise right shift
$array[] = item
?>
open source
>>
34. This error arises from misusing a function.
Warning
error_reporting (0)
strtok()
addslashes()
35. To assign keys to the values in an array
addcslashes()
Hex
array()
html_entity_decode()
36. To sort the values while maintaining the correlation between each value and its key - in reversed order
arsort()
$_POST[]
str_word_count()
index
37. equivalence
==
ceil()
trim()
DTD
38. says 'if' this then do this 'else' do this or 'while' this do this
array_merge()
str_ireplace()
statement
isset()
39. Used to create a substring (referred to as a token) from a larger string
parentheses
substr_count()
round() Function
strtok()
40. Operators used to operate and assign
+= or -= or *= or /=
html_entity_decode()
switch
arsort()
41. print $_SERVER will _____ work if you use the print function on arrays.
foreach loop
nl2br()
not
float
42. To iterate over the keys and values of an array
chop()
string
date()
foreach loop
43. To get time data
ksort()
predefined variable
nl2br()
date()
44. ____ or key is referred to for a value within an array.
precedence
<?php
Object
index
45. Document Type Definitions
statement
?>
DTD
!= inequality
46. The array that stores variables specific to a user's visit
echo
^
true
$_SESSION[]
47. used to round numeric values.
<?php
round() Function
^
HTTP
48. Function used to round down to the lowest integer
floor()
Shebang
define()
mysql_fetch_array()
49. Used to convert all HTML tags into their entity versions.
==
SGML
1
htmlentities()
50. TRUE or FALSE
statement
nl2br()
boolean
<<