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. Use ______ for search engines or catalogued pages or pages that would be bookmarked.
$varname[key]
Error
GET
htmlspecialchars()
2. EXtensible Markup Language
XML
Magic Constant
GET
Notice
3. any programing language where the user must support the language the script is written in
client-side programing
+
Hex
decimal
4. standard notation
decimal
shuffle()
array
getrandmax()
5. An array of variables passed with <input /> data
Warning
fopen()
echo
$_POST[]
6. Used to display errors in a particular script - should be placed at top of script.
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
7. returns the number of matches found by a given search string under this format...
general
ASP
preg_match()
function
8. the most basic function in PHP used to output information to the page
octal
echo
<?php
str_ireplace()
9. The order of operations.
curly braces; ${$total}
isset()
predefined variable
precedence
10. identity
empty()
preg_match()
function
===
11. Predefined constants such as __LINE__ or __FILE__ or __FUNCTION__ or __CLASS__ and __METHOD__
statement
Magic Constant
function
0
12. Converts a string of ASCII characters to hexadecimal values
drop
bin2hex()
floor()
underscores
13. Use ______ when a variable contains any amount of variables; in general.
floor()
double quotes
decimal
octal
14. All variables must begin with _________.
HTML
^
foreach loop
the dollar sign $
15. searches the subject for matches to a given pattern replaced with the given replacement text
octal
the escape character ''
str_ireplace()
preg_replace()
16. ____ or key is referred to for a value within an array.
WYSIWYG
open source
index
date()
17. Function that contains the highest value that rand() can have randomly
+= or -= or *= or /=
decimal
define()
getrandmax()
18. To counter htmlentities()
strlen()
XOR
$var++ and $var
html_entity_decode()
19. To sort values of an array in reversed order
rsort()
Magic Constant
mysql_fetch_array()
urlencode()
20. Control structures that break exit
round() Function
the dollar sign $
if/elseif/else and switch statements
$_GET[]
21. Document Type Definitions
int
control structure
==
DTD
22. Returns an array that corresponds to the fetched row of MySQL data and moves the internal data pointer ahead
mysql_fetch_array()
preg_replace()
error_reporting (E_ALL | E_STRICT)
index
23. The name of the #! used to designate the location of the PHP binary
XML
Warning
Shebang
not
24. Define(NAME,value)
string
str_ireplace()
Constant
preg_replace()
25. Search Engine Optimization
SEO
addslashes()
include() and require()
empty()
26. bitwise left shift
sql
SEO
<<
.=
27. Hyper Text Markup Language
Array
HTML
Object
$var++ and $var
28. Used to remove any white space - spaces or newlines or tabs - from the beginning and end of a string - not the middle.
html_entity_decode()
trim()
client-side programing
addslashes()
29. Tag to end a php script
foreach
?>
function
+
30. _________ can be used in conditional statements to set precedence
parentheses
^
underscores
numbers
31. A conditional or loop is a ________________.
reassign
control structure
<?php
client-side programing
32. signed floating-point value
float
abs()
Error
array_merge()
33. An array whose keys are strings; also known as a hash.
associative array
bin2hex()
str_word_count()
define()
34. Used to replace a substring with another string - it is not case-sensitive.
curly braces; ${$total}
str_ireplace()
Shebang
$var++ and $var
35. Used to check if a variable has any value (including 0 or FALSE or an empty string).
isset()
wordwrap()
int
DTD
36. To iterate over the keys and values of an array
general
boolean
Hex
foreach loop
37. To determine the amount of elements in an array
===
count()
defined()
bin2hex()
38. allows you to split strings based on more complex rules
date()
abs()
preg_split()
urlencode()
39. Used to convert all HTML tags into their entity versions.
drop
$var++ and $var
echo
htmlentities()
40. $_POST Data sent using POST found is sent to _______
single quotes
crypt()
trim()
predefined variable
41. Function used to round up to the highest integer
ceil()
server-side programing
>>
XML
42. Used to check if a variable has a valid numerical value; strings with numerical values pass.
defined()
is_numeric()
control structure
not
43. Operators used to operate and assign
&
GET
fopen()
+= or -= or *= or /=
44. To word wrap after a certain amount of characters.
is_numeric()
array()
wordwrap()
strtok()
45. Function used to find the absolute value of a number or numeric variable
$dbc = mysql_connect(hostname, username, password)
abs()
$array[] = item
error_reporting (E_ALL | E_STRICT)
46. To append elements to an array - this will assign item to the next available index; associative arrays get messy.
==
fopen()
indexed array
$array[] = item
47. equivalence
^
html_entity_decode()
==
integer
48. says 'if' this then do this 'else' do this or 'while' this do this
html_entity_decode()
statement
empty()
define()
49. Uses two arguments: constant name and constant definition
server-side programing
crypt()
define()
array
50. a database which is best supported by PHP
HTML
Hex
index
mysql