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. An array whose keys are numbers.
error_reporting (E_ALL | E_STRICT)
urlencode()
indexed array
boolean
2. To counter htmlentities()
===
html_entity_decode()
float
open source
3. equivalence
HTML
==
html_entity_decode()
preg_match()
4. Control structure that continue exit - they perform specific statements for a determined number of iterations.
ksort()
loops
asort()
SEO
5. This will show all error reporting.
error_reporting (E_ALL)
Magic Constant
wordwrap()
===
6. Operators used to operate and assign
arsort()
chop()
Parse error
+= or -= or *= or /=
7. ____ or key is referred to for a value within an array.
decimal
+
index
the period; .
8. _________ can be used in conditional statements to set precedence
parentheses
integer
drop
&
9. addition
$_SESSION[]
negative numbers
general
+
10. container of ordered data elements
Array
?>
the dollar sign $
Parse error
11. $_SERVER - $_POST - $_GET - $_COOKIE - $_SESSION - $_ENV; special arrays.
error_reporting (E_ALL | E_STRICT)
<?php
superglobal
shuffle()
12. Use ______ for search engines or catalogued pages or pages that would be bookmarked.
reassign
Array
GET
foreach
13. a storage location in the computer's memory that has a type & a name and a contents
variable
foreach
str_ireplace()
define()
14. bitwise AND
<<
&
Error
Parse error
15. collection of binary data
$dbc = mysql_connect(hostname, username, password)
string
Object
<<
16. Hypertext Preprocessor - a server-side programing language used to create webpages
PHP
server-side programing
precedence
wordwrap()
17. The output of var_export((float)array(0));
1
reassign
XOR
PHP
18. any programing language where the script is parsed on the server
superglobal
preg_match()
single quotes
server-side programing
19. To append elements to an array - this will assign item to the next available index; associative arrays get messy.
boolean
strlen()
chr()
$array[] = item
20. Tag to begin a php script
echo
GET
trim()
<?php
21. Standard Generalized Markup Language
error_reporting (0)
chop()
DTD
SGML
22. An array of variables passed in the URL
array()
fopen()
$_GET[]
Constant
23. $_POST and $_GET are ________ variables.
is_numeric()
curly braces
predefined
floor()
24. bitwise left shift
<<
decimal
error_reporting (E_ALL | E_STRICT)
Parse error
25. a positive or negative number
preg_replace()
integer
loops
==
26. This will show all error reporting except for notice errors.
<?php
unset()
?>
error_reporting (E_ALL & -E_NOTICE)
27. The syntax for connecting to a database
define()
boolean
&
$dbc = mysql_connect(hostname, username, password)
28. a line of information that can be stored in a variable or used in a function or statement
server-side programing
function
string
error_reporting (E_ALL & -E_NOTICE)
29. function Function used to create a random number
chop()
rand()
empty()
==
30. To sort the values while maintaining the correlation between each value and its key - in reversed order
arsort()
$varname[key]
strtok()
index
31. Returns a character from a specified ASCII value
int
predefined
$_SESSION[]
chr()
32. To sort by the keys while maintaining the correlation between the key and its value
date()
AJAX
ksort()
$_GET[]
33. says 'if' this then do this 'else' do this or 'while' this do this
date()
statement
$var++ and $var
chr()
34. This error refers to a variable with no value.
arsort()
Hex
single quotes
Notice
35. Uses two arguments: constant name and constant definition
preg_replace()
HTTP
ksort()
define()
36. To sort the values while maintaining the correlation between each value and its key
asort()
general
SGML
for ($i = 0; $i < count($array); $i++) {statement(s);}
37. Function that contains the highest value that rand() can have randomly
$var++ and $var
str_ireplace()
curly braces; ${$total}
getrandmax()
38. The three types of loops in PHP are: for - while - ____.
rsort()
foreach
mysql_fetch_object()
wordwrap()
39. Variable names can begin with __________
<?php
error_reporting (E_ALL | E_STRICT)
fopen()
underscores
40. signed integer
crypt()
float
int
DTD
41. Returns a string with backslashes in front of predefined characters
addslashes()
Constant
defined()
array
42. Function used to round down to the lowest integer
include() and require()
HTTP
1
floor()
43. What You See Is What You Get
empty()
WYSIWYG
nl2br()
PHP
44. bitwise XOR
>>
shuffle()
!= inequality
^
45. TRUE or FALSE
preg_replace()
boolean
nl2br()
indexed array
46. EXtensible Markup Language
if/elseif/else and switch statements
str_ireplace()
octal
XML
47. To create an array
array()
htmlspecialchars()
rsort()
is_numeric()
48. Function can you use to format a number with commas
WYSIWYG
predefined
number_format()
Object
49. $_POST Data sent using POST found is sent to _______
is_numeric()
parentheses
predefined variable
sort()
50. Use _______ for passwords or pages that would not be bookmarked or pages that require security.
$dbc = mysql_connect(hostname, username, password)
$_POST[]
abs()
POST