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. To sort by the keys while maintaining the correlation between the key and its value
AJAX
ksort()
strlen()
str_ireplace()
2. Uses two arguments: constant name and constant definition
the escape character ''
define()
foreach
Constant
3. Online applications and resources which are available to the general public with very few restrictions
POST
open source
+
ASP
4. To delete a variable or an element of an array
1
unset()
mysql_fetch_object()
precedence
5. Hyper Text Transfer Protocol
HTTP
strtok()
Array
string
6. This will show all errors that fall under E_ALL or E_STRICT - the pipe | is used for 'or' so that errors that fall under either will be shown.
loops
error_reporting (0)
+= or -= or *= or /=
error_reporting (E_ALL | E_STRICT)
7. allows you to split strings based on more complex rules
the dollar sign $
?>
preg_split()
function error_reporting()
8. Control structures that break exit
define()
strtok()
Notice
if/elseif/else and switch statements
9. Operators used to operate and assign
+= or -= or *= or /=
mysql_close($dbc)
str_ireplace()
ceil()
10. Search Engine Optimization
SEO
asort()
nl2br()
!= inequality
11. Returns a string with backslashes in front of predefined characters
addslashes()
reassign
Array
^
12. The four main error types are:Notice - Warning - ________ and Error.
Parse error
loops
0
ini_set ('display_errors', 1)
13. searches the subject for matches to a given pattern replaced with the given replacement text
float
<<
array
preg_replace()
14. The seven main SQL (structured query language) functions are alter - create - delete - _______ - insert - select - update
drop
E_STRICT
number_format()
bin2hex()
15. To append elements to an array - this will assign item to the next available index; associative arrays get messy.
double quotes
for ($i = 0; $i < count($array); $i++) {statement(s);}
trim()
$array[] = item
16. Used to encrypt values - it is a one-way encryption method
bin2hex()
?>
index
crypt()
17. To sort values of an array in reversed order
integer
rsort()
HTTP
substr_count()
18. Active Server Pages
ASP
abs()
negative numbers
Notice
19. Function used to find the absolute value of a number or numeric variable
abs()
getrandmax()
floor()
ASP
20. the most basic function in PHP used to output information to the page
nl2br()
chop()
echo
Error
21. Similar to mysql_fetch_array() - but cannot be accessed by integer offset
predefined
mysql_fetch_object()
^
abs()
22. a storage location in the computer's memory that has a type & a name and a contents
ksort()
HTML
for ($i = 0; $i < count($array); $i++) {statement(s);}
variable
23. Used to find the amount of words in a string.
general
str_word_count()
==
htmlentities()
24. Control structure that continue exit - they perform specific statements for a determined number of iterations.
loops
HTTP
int
error_reporting (E_ALL)
25. An array whose keys are strings; also known as a hash.
associative array
single quotes
Notice
sort()
26. any programing language where the script is parsed on the server
Hex
==
predefined
server-side programing
27. Used to find the length of a string
strlen()
control structure
SEO
isset()
28. Function can you use to format a number with commas
AJAX
number_format()
round() Function
variable
29. leading zero: 0100 or 0567
octal
crypt()
===
+= or -= or *= or /=
30. addition
define()
+
open source
ASP
31. This will not show error reporting - it will be turned off.
Hex
error_reporting (0)
for ($i = 0; $i < count($array); $i++) {statement(s);}
array()
32. The concatenation assignment operator?
.=
fopen()
not
negative numbers
33. function Function used to create a random number
parentheses
general
==
rand()
34. a line of information that can be stored in a variable or used in a function or statement
getrandmax()
string
$$
+= or -= or *= or /=
35. $_POST Data sent using POST found is sent to _______
<?php
shuffle()
predefined variable
not
36. To word wrap after a certain amount of characters.
if/elseif/else and switch statements
array()
isset()
wordwrap()
37. EXtensible Markup Language
ini_set ('display_errors', 1)
getrandmax()
XML
Warning
38. To close a connection between a database
empty()
numbers
mysql_close($dbc)
Magic Constant
39. Use ______ when there are no variables in the string
XOR
isset()
octal
single quotes
40. Alias of rtrim()
chop()
define()
echo
date()
41. Used to convert certain HTML tags into their entity versions.
addslashes()
htmlspecialchars()
negative numbers
html_entity_decode()
42. signed floating-point value
strlen()
isset()
XML
float
43. To refer to an element in a multidimensional array list the indices in order of _____ to more precise;
PHP
strip_tags()
general
DTD
44. An array whose keys are numbers.
indexed array
$_GET[]
if/elseif/else and switch statements
$dbc = mysql_connect(hostname, username, password)
45. This fatal fatal is caused by a semantic mistake: omission of a semicolon or imbalance of quotations or parentheses or braces.
trim()
Parse error
define()
Error
46. Used to replace a substring with another string - it is not case-sensitive.
server-side programing
str_ireplace()
predefined variable
the period; .
47. To remove all HTML and PHP tags.
string
strip_tags()
Notice
the escape character ''
48. Variable names cannot begin with _______
numbers
define()
trim()
negative numbers
49. bitwise XOR
mysql_close($dbc)
PHP
^
error_reporting (E_ALL)
50. _________ can be used in conditional statements to set precedence
unset()
parentheses
defined()
.=