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 of variables passed with <input /> data
$array[] = item
integer
mysql_close($dbc)
$_POST[]
2. This fatal fatal is caused by a semantic mistake: omission of a semicolon or imbalance of quotations or parentheses or braces.
sort()
Parse error
rsort()
===
3. _____ is a logical operator
reassign
precedence
XOR
Error
4. Standard Generalized Markup Language
1
+
SGML
ini_set ('display_errors', 1)
5. Used to create a substring (referred to as a token) from a larger string
str_word_count()
indexed array
strtok()
preg_replace()
6. signed integer
foreach loop
int
fopen()
+
7. bitwise left shift
open source
control structure
HTTP
<<
8. To set up error reporting
&
reassign
function error_reporting()
precedence
9. searches the subject for matches to a given pattern replaced with the given replacement text
XOR
preg_replace()
switch
mysql_close($dbc)
10. To reset an array _______ the array() function to the array
arsort()
$array[] = item
count()
reassign
11. $_SERVER - $_POST - $_GET - $_COOKIE - $_SESSION - $_ENV; special arrays.
superglobal
crypt()
+
number_format()
12. To sort values of an array in reversed order
sort()
rsort()
<?php
echo
13. Control structures that break exit
if/elseif/else and switch statements
error_reporting (E_ALL)
0
ksort()
14. any programing language where the script is parsed on the server
function
server-side programing
date()
1
15. Use ______ when a variable contains any amount of variables; in general.
sql
define()
double quotes
error_reporting (0)
16. function Function used to create a random number
asort()
===
addcslashes()
rand()
17. Control structure that continue exit - they perform specific statements for a determined number of iterations.
loops
GET
parentheses
Warning
18. To put a dollar sign before a variable like $10 where 10 is the variable's value - you can escape the first dollar sign; $$cost; or you can use __________.
$_GET[]
curly braces; ${$total}
SGML
HTTP
19. To append elements to an array - this will assign item to the next available index; associative arrays get messy.
Parse error
array_merge()
$array[] = item
numbers
20. a language in which to make querys to a database with
general
fopen()
decimal
sql
21. Leading 0x: 0x13F or 0xA23
octal
Hex
shuffle()
urlencode()
22. Used to find the length of a string
the escape character ''
abs()
strlen()
count()
23. addition
SEO
define()
error_reporting (E_ALL | E_STRICT)
+
24. What You See Is What You Get
chr()
WYSIWYG
htmlspecialchars()
str_word_count()
25. bitwise AND
&
foreach
function
predefined
26. To include files - _______ will give errors and _________ will terminate execution().
XML
include() and require()
control structure
html_entity_decode()
27. leading zero: 0100 or 0567
octal
0
boolean
null
28. Used to replace a substring with another string - it is not case-sensitive.
parentheses
arsort()
XML
str_ireplace()
29. Returns a string with backslashes in front of predefined characters
addslashes()
Parse error
variable
^
30. To sort the values while maintaining the correlation between each value and its key - in reversed order
GET
arsort()
float
1
31. To sort values of an array without regard to the keys
Error
sort()
reassign
strip_tags()
32. This will show all error reporting except for notice errors.
+
error_reporting (E_ALL & -E_NOTICE)
0
preg_match()
33. $_POST and $_GET are ________ variables.
parentheses
not
0
predefined
34. Asynchronous Javascript And XML
Parse error
array_merge()
?>
AJAX
35. To word wrap after a certain amount of characters.
$array[] = item
trim()
rand()
wordwrap()
36. To sort by the keys while maintaining the correlation between the key and its value
Notice
include() and require()
ksort()
function error_reporting()
37. This error refers to a variable with no value.
Notice
mysql_fetch_object()
curly braces; ${$total}
indexed array
38. $_POST Data sent using POST found is sent to _______
true
$varname[key]
?>
predefined variable
39. container of ordered data elements
addcslashes()
error_reporting (E_ALL & -E_NOTICE)
the escape character ''
Array
40. Use _______ for passwords or pages that would not be bookmarked or pages that require security.
octal
predefined
POST
GET
41. Variable names can begin with __________
underscores
arsort()
!= inequality
preg_match()
42. The concatenation assignment operator?
associative array
.=
$var++ and $var
?>
43. Tag to begin a php script
general
<?php
foreach loop
shuffle()
44. Function used to convert new lines in a variable from a form to <br /> tags so that the data can be formatted correctly.
nl2br()
int
defined()
predefined
45. Use ________ to have multiple quotations in one string
include() and require()
the escape character ''
Notice
double quotes
46. An array whose keys are strings; also known as a hash.
associative array
Array
$_SESSION[]
underscores
47. The output of var_export((float)array());
string
E_STRICT
ksort()
0
48. To determine the amount of elements in an array
count()
array_merge()
addslashes()
SEO
49. The three types of loops in PHP are: for - while - ____.
foreach
chop()
ksort()
GET
50. To get time data
control structure
date()
abs()
define()