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. standard notation
decimal
XML
PHP
Error
2. A conditional or loop is a ________________.
date()
control structure
sort()
WYSIWYG
3. What You See Is What You Get
DTD
&
string
WYSIWYG
4. Tag to end a php script
?>
for ($i = 0; $i < count($array); $i++) {statement(s);}
nl2br()
DTD
5. The prefix for a dynamic variable - also known as a variable variable
str_ireplace()
precedence
PHP
$$
6. any programing language where the user must support the language the script is written in
mysql_close($dbc)
htmlspecialchars()
client-side programing
the escape character ''
7. TRUE or FALSE
integer
switch
if/elseif/else and switch statements
boolean
8. To iterate over the values of an array
addcslashes()
for ($i = 0; $i < count($array); $i++) {statement(s);}
variable
Notice
9. Online applications and resources which are available to the general public with very few restrictions
sort()
variable
underscores
open source
10. The output of var_export((float)array(0));
!= inequality
1
indexed array
Object
11. Function used to find the absolute value of a number or numeric variable
!= inequality
integer
abs()
indexed array
12. To remove all HTML and PHP tags.
strip_tags()
===
sort()
array
13. All variables must begin with _________.
sort()
the dollar sign $
XML
predefined variable
14. Returns a string with backslashes in front of predefined characters
switch
addslashes()
rsort()
variable
15. To get time data
function error_reporting()
server-side programing
the dollar sign $
date()
16. Use ______ when a variable contains any amount of variables; in general.
bin2hex()
foreach
parentheses
double quotes
17. To sort by the keys while maintaining the correlation between the key and its value
===
decimal
index
ksort()
18. Operators used to operate and assign
+= or -= or *= or /=
indexed array
$_POST[]
XOR
19. An array of variables passed in the URL
is_numeric()
$_GET[]
Parse error
empty()
20. $_SERVER - $_POST - $_GET - $_COOKIE - $_SESSION - $_ENV; special arrays.
Notice
function
superglobal
the period; .
21. bitwise right shift
$_POST[]
>>
underscores
<?php
22. The ouput of var_export((bool)"NULL");
str_ireplace()
abs()
true
error_reporting (0)
23. To reset an array _______ the array() function to the array
reassign
addcslashes()
the escape character ''
true
24. a positive or negative number
integer
array()
for ($i = 0; $i < count($array); $i++) {statement(s);}
0
25. Document Type Definitions
nl2br()
<?php
general
DTD
26. To close a connection between a database
mysql_close($dbc)
the escape character ''
ASP
count()
27. $_SERVER is a ________ variable.
mysql_fetch_array()
predefined
reassign
string
28. To sort the values while maintaining the correlation between each value and its key
asort()
==
indexed array
ceil()
29. To sort values of an array without regard to the keys
sort()
client-side programing
array()
$var++ and $var
30. Tag to begin a php script
predefined
<?php
Notice
ini_set ('display_errors', 1)
31. To determine the amount of elements in an array
mysql_fetch_array()
$_SESSION[]
Notice
count()
32. Hyper Text Markup Language
HTML
define()
statement
preg_match()
33. To counter htmlentities()
XML
>>
not
html_entity_decode()
34. The syntax for connecting to a database
!= inequality
$dbc = mysql_connect(hostname, username, password)
isset()
single quotes
35. Used to remove any white space - spaces or newlines or tabs - from the beginning and end of a string - not the middle.
list()
array()
AJAX
trim()
36. An array whose keys are numbers.
XOR
indexed array
sort()
boolean
37. Alias of rtrim()
indexed array
chop()
getrandmax()
boolean
38. To iterate over the keys and values of an array
integer
array
foreach loop
$var++ and $var
39. Used to find the amount of words in a string.
error_reporting (0)
str_word_count()
isset()
single quotes
40. To set up error reporting
array
mysql
ASP
function error_reporting()
41. The array that stores variables specific to a user's visit
>>
$_SESSION[]
if/elseif/else and switch statements
the escape character ''
42. Control structures that break exit
SEO
if/elseif/else and switch statements
list()
html_entity_decode()
43. Function used to round up to the highest integer
statement
?>
ceil()
true
44. bitwise AND
&
str_word_count()
indexed array
ini_set ('display_errors', 1)
45. The order of operations.
indexed array
precedence
Parse error
preg_split()
46. Used to create a substring (referred to as a token) from a larger string
strtok()
Error
preg_replace()
+= or -= or *= or /=
47. PHP has two conditional: if and ______.
integer
ini_set ('display_errors', 1)
octal
switch
48. Similar to mysql_fetch_array() - but cannot be accessed by integer offset
mysql_fetch_object()
the dollar sign $
===
substr_count()
49. Hyper Text Transfer Protocol
HTTP
foreach
date()
preg_match()
50. To assign array element values to individual variables
+
list()
array_merge()
ceil()