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. Used to find the amount of words in a string.
preg_split()
str_word_count()
Shebang
statement
2. _______ is a comparison operator
!= inequality
integer
negative numbers
isset()
3. Alias of rtrim()
empty()
chop()
HTML
count()
4. To create an array
foreach loop
mysql_fetch_array()
foreach
array()
5. An array of variables passed in the URL
XML
addcslashes()
client-side programing
$_GET[]
6. Returns a string with backslashes in front of the specified characters
error_reporting (0)
addcslashes()
is_numeric()
echo
7. Used to convert certain HTML tags into their entity versions.
strtok()
boolean
WYSIWYG
htmlspecialchars()
8. The concatenation operator?
!= inequality
numbers
==
the period; .
9. This will show all error reporting.
the escape character ''
floor()
error_reporting (E_ALL)
arsort()
10. The four main error types are:Notice - Warning - ________ and Error.
foreach
function error_reporting()
Parse error
error_reporting (E_ALL)
11. The syntax for connecting to a database
open source
urlencode()
$dbc = mysql_connect(hostname, username, password)
bin2hex()
12. Used to check if a variable has a valid numerical value; strings with numerical values pass.
shuffle()
mysql_close($dbc)
!= inequality
is_numeric()
13. To refer to an element in a multidimensional array list the indices in order of _____ to more precise;
getrandmax()
asort()
general
switch
14. The ouput of var_export((bool)"NULL");
Parse error
function
^
true
15. Predefined constants such as __LINE__ or __FILE__ or __FUNCTION__ or __CLASS__ and __METHOD__
the escape character ''
arsort()
Magic Constant
server-side programing
16. When used the value can be passed safely through the URL (GET).
strtok()
Array
urlencode()
boolean
17. The order of operations.
error_reporting (E_ALL)
fopen()
precedence
DTD
18. Similar to mysql_fetch_array() - but cannot be accessed by integer offset
arsort()
mysql_fetch_object()
indexed array
?>
19. signed integer
int
sort()
&
predefined variable
20. Hyper Text Markup Language
ceil()
defined()
HTML
1
21. Used to create a substring (referred to as a token) from a larger string
$_SESSION[]
array()
strtok()
is_numeric()
22. To find how many substrings are in a string
error_reporting (E_ALL)
substr_count()
$_POST[]
HTTP
23. Function used to convert new lines in a variable from a form to <br /> tags so that the data can be formatted correctly.
trim()
indexed array
array_merge()
nl2br()
24. The seven main SQL (structured query language) functions are alter - create - delete - _______ - insert - select - update
Shebang
loops
===
drop
25. Tag to end a php script
Parse error
rsort()
error_reporting (0)
?>
26. does a certain action when called upon
predefined
function
bin2hex()
control structure
27. The array that stores variables specific to a user's visit
$_SESSION[]
predefined variable
define()
Warning
28. Use ________ to have multiple quotations in one string
sort()
urlencode()
int
the escape character ''
29. To remove all HTML and PHP tags.
strip_tags()
==
function
variable
30. To counter htmlentities()
htmlentities()
html_entity_decode()
+
DTD
31. a database which is best supported by PHP
Warning
SEO
mysql
the dollar sign $
32. _________ can be used in conditional statements to set precedence
parentheses
htmlspecialchars()
the dollar sign $
XOR
33. ___________ can be used with substr() to count backward
$_POST[]
<?php
negative numbers
float
34. Control structure that continue exit - they perform specific statements for a determined number of iterations.
loops
trim()
addcslashes()
null
35. Tag to begin a php script
?>
strip_tags()
mysql_close($dbc)
<?php
36. a storage location in the computer's memory that has a type & a name and a contents
ksort()
variable
WYSIWYG
Shebang
37. To include files - _______ will give errors and _________ will terminate execution().
include() and require()
SEO
strtok()
html_entity_decode()
38. bitwise XOR
^
getrandmax()
floor()
crypt()
39. A data structure that can hold a number of items of data of the same type eg. a list of names
array
include() and require()
mysql_fetch_array()
$varname[key]
40. signed floating-point value
mysql_fetch_array()
define()
float
^
41. Uses two arguments: constant name and constant definition
mysql_fetch_array()
define()
Shebang
$_GET[]
42. Used to check if a variable has any value (including 0 or FALSE or an empty string).
array()
boolean
isset()
Error
43. a type with two possible values: true and false
int
ksort()
boolean
0
44. Hypertext Preprocessor - a server-side programing language used to create webpages
fopen()
PHP
rsort()
Shebang
45. Use ______ when a variable contains any amount of variables; in general.
double quotes
Constant
count()
boolean
46. bitwise AND
&
!= inequality
abs()
Object
47. leading zero: 0100 or 0567
int
octal
Warning
statement
48. To sort by the keys while maintaining the correlation between the key and its value
ksort()
indexed array
!= inequality
chr()
49. $_POST Data sent using POST found is sent to _______
foreach loop
predefined variable
sql
$_REQUEST
50. Creates a pointer to a file with the declared mode (read - write -etc.).
fopen()
string
the dollar sign $
single quotes