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. The concatenation assignment operator?
$$
Constant
===
.=
2. allows you to split strings based on more complex rules
HTTP
htmlspecialchars()
$$
preg_split()
3. identity
===
unset()
string
getrandmax()
4. To remove all HTML and PHP tags.
drop
curly braces
underscores
strip_tags()
5. Creates a pointer to a file with the declared mode (read - write -etc.).
addcslashes()
error_reporting (E_ALL & -E_NOTICE)
fopen()
for ($i = 0; $i < count($array); $i++) {statement(s);}
6. This error arises from misusing a function.
octal
Warning
decimal
chop()
7. $_SERVER - $_POST - $_GET - $_COOKIE - $_SESSION - $_ENV; special arrays.
superglobal
!= inequality
Warning
include() and require()
8. Control structure that continue exit - they perform specific statements for a determined number of iterations.
loops
int
the escape character ''
ceil()
9. leading zero: 0100 or 0567
$dbc = mysql_connect(hostname, username, password)
client-side programing
octal
strip_tags()
10. a type with two possible values: true and false
Object
array_merge()
preg_replace()
boolean
11. _________ can be used in conditional statements to set precedence
$array[] = item
Notice
parentheses
$_POST[]
12. To sort the values while maintaining the correlation between each value and its key
&
===
int
asort()
13. The output of var_export((float)array(0));
1
ini_set ('display_errors', 1)
integer
Hex
14. signed integer
POST
int
AJAX
$_POST[]
15. Function used to round down to the lowest integer
numbers
floor()
preg_split()
server-side programing
16. An array whose keys are numbers.
crypt()
echo
the escape character ''
indexed array
17. standard notation
decimal
strip_tags()
<?php
single quotes
18. To assign keys to the values in an array
echo
array()
Shebang
Notice
19. To get over quotation marks while using arrays
str_ireplace()
reassign
curly braces
ASP
20. Converts a string of ASCII characters to hexadecimal values
E_STRICT
echo
floor()
bin2hex()
21. Hyper Text Markup Language
precedence
HTML
define()
abs()
22. To create an array
array()
strlen()
the period; .
>>
23. collection of binary data
isset()
string
sql
is_numeric()
24. Use ______ when there are no variables in the string
wordwrap()
$_SESSION[]
shuffle()
single quotes
25. An array whose keys are strings; also known as a hash.
include() and require()
===
substr_count()
associative array
26. To sort values of an array without regard to the keys
if/elseif/else and switch statements
sort()
WYSIWYG
empty()
27. Use _______ for passwords or pages that would not be bookmarked or pages that require security.
foreach
foreach loop
POST
client-side programing
28. An array of variables passed with <input /> data
nl2br()
Notice
$_POST[]
defined()
29. Used to find the length of a string
function
numbers
==
strlen()
30. Online applications and resources which are available to the general public with very few restrictions
addcslashes()
empty()
switch
open source
31. Alias of rtrim()
arsort()
single quotes
ASP
chop()
32. To determine the amount of elements in an array
Magic Constant
$_GET[]
the escape character ''
count()
33. Returns an array that corresponds to the fetched row of MySQL data and moves the internal data pointer ahead
abs()
negative numbers
strip_tags()
mysql_fetch_array()
34. To append elements to an array - this will assign item to the next available index; associative arrays get messy.
general
$array[] = item
curly braces; ${$total}
fopen()
35. The prefix for a dynamic variable - also known as a variable variable
AJAX
statement
ASP
$$
36. The order of operations.
mysql
chr()
precedence
str_word_count()
37. Control structures that break exit
GET
drop
precedence
if/elseif/else and switch statements
38. the most basic function in PHP used to output information to the page
.=
echo
drop
nl2br()
39. Variable names can begin with __________
getrandmax()
strip_tags()
asort()
underscores
40. This will show all error reporting.
decimal
error_reporting (E_ALL)
strtok()
addslashes()
41. Uses two arguments: constant name and constant definition
$var++ and $var
for ($i = 0; $i < count($array); $i++) {statement(s);}
define()
>>
42. Variable names cannot begin with _______
decimal
.=
numbers
===
43. a line of information that can be stored in a variable or used in a function or statement
shuffle()
Object
string
$varname[key]
44. To sort by the keys while maintaining the correlation between the key and its value
indexed array
ksort()
strip_tags()
shuffle()
45. Search Engine Optimization
array()
SEO
error_reporting (E_ALL | E_STRICT)
abs()
46. To refer to an element in a multidimensional array list the indices in order of _____ to more precise;
general
addslashes()
boolean
^
47. returns the number of matches found by a given search string under this format...
define()
control structure
nl2br()
preg_match()
48. This will show all error reporting except for notice errors.
$array[] = item
&
error_reporting (E_ALL & -E_NOTICE)
unset()
49. print $_SERVER will _____ work if you use the print function on arrays.
not
&
arsort()
echo
50. Document Type Definitions
underscores
mysql
DTD
$var++ and $var