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. This will not show error reporting - it will be turned off.
switch
trim()
error_reporting (0)
SEO
2. To get time data
chr()
date()
rand()
client-side programing
3. Used to replace a substring with another string - it is not case-sensitive.
str_ireplace()
strip_tags()
echo
Notice
4. signed floating-point value
superglobal
urlencode()
reassign
float
5. Hyper Text Markup Language
superglobal
HTML
list()
predefined
6. 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 __________.
curly braces; ${$total}
AJAX
SGML
function
7. $_SERVER - $_POST - $_GET - $_COOKIE - $_SESSION - $_ENV; special arrays.
$var++ and $var
superglobal
curly braces
negative numbers
8. bitwise left shift
<?php
<<
preg_match()
reassign
9. To word wrap after a certain amount of characters.
wordwrap()
number_format()
array
PHP
10. Returns a string with backslashes in front of predefined characters
addslashes()
client-side programing
define()
mysql
11. To delete a variable or an element of an array
Warning
1
unset()
curly braces; ${$total}
12. Hyper Text Transfer Protocol
integer
decimal
HTTP
==
13. Control structure that continue exit - they perform specific statements for a determined number of iterations.
GET
round() Function
loops
XOR
14. PHP has two conditional: if and ______.
+
switch
addslashes()
Constant
15. To append elements to an array - this will assign item to the next available index; associative arrays get messy.
function
$array[] = item
strip_tags()
reassign
16. To close a connection between a database
number_format()
foreach loop
variable
mysql_close($dbc)
17. Online applications and resources which are available to the general public with very few restrictions
open source
associative array
indexed array
error_reporting (0)
18. Tag to end a php script
list()
HTML
?>
preg_split()
19. To get over quotation marks while using arrays
curly braces
+= or -= or *= or /=
boolean
chop()
20. Used to check if a variable has any value (including 0 or FALSE or an empty string).
isset()
server-side programing
arsort()
decimal
21. To assign array element values to individual variables
list()
open source
SEO
Notice
22. To merge arrays
$varname[key]
array_merge()
&
mysql_close($dbc)
23. What You See Is What You Get
shuffle()
count()
WYSIWYG
XML
24. This will show all error reporting except for notice errors.
foreach loop
error_reporting (E_ALL & -E_NOTICE)
control structure
rand()
25. Used to convert all HTML tags into their entity versions.
htmlentities()
&
substr_count()
double quotes
26. The output of var_export((float)array(0));
&
date()
define()
1
27. Alias of rtrim()
SEO
error_reporting (0)
strtok()
chop()
28. Leading 0x: 0x13F or 0xA23
Hex
general
asort()
substr_count()
29. _______ is a comparison operator
string
isset()
!= inequality
foreach loop
30. container of ordered data elements
GET
$_POST[]
Array
==
31. print $_SERVER will _____ work if you use the print function on arrays.
associative array
not
function error_reporting()
indexed array
32. To refer to an item in an array
$varname[key]
Parse error
predefined
strip_tags()
33. To sort the values while maintaining the correlation between each value and its key
&
Shebang
fopen()
asort()
34. Operators used to operate and assign
array()
?>
+= or -= or *= or /=
the dollar sign $
35. $_POST Data sent using POST found is sent to _______
shuffle()
predefined variable
octal
addslashes()
36. This error arises from misusing a function.
asort()
POST
.=
Warning
37. ___________ can be used with substr() to count backward
reassign
SGML
negative numbers
Parse error
38. EXtensible Markup Language
E_STRICT
variable
htmlspecialchars()
XML
39. Used to check if a variable has a valid numerical value; strings with numerical values pass.
define()
DTD
is_numeric()
substr_count()
40. Variable names cannot begin with _______
numbers
function
count()
DTD
41. a storage location in the computer's memory that has a type & a name and a contents
Parse error
$array[] = item
negative numbers
variable
42. This error refers to a variable with no value.
Notice
if/elseif/else and switch statements
addslashes()
$varname[key]
43. Function used to convert new lines in a variable from a form to <br /> tags so that the data can be formatted correctly.
$var++ and $var
boolean
nl2br()
rsort()
44. The prefix for a dynamic variable - also known as a variable variable
$$
single quotes
str_ireplace()
HTTP
45. does a certain action when called upon
rand()
+= or -= or *= or /=
ceil()
function
46. An array whose keys are strings; also known as a hash.
associative array
sort()
array()
strlen()
47. Returns a character from a specified ASCII value
chr()
server-side programing
reassign
precedence
48. equivalence
preg_split()
define()
list()
==
49. To sort the values while maintaining the correlation between each value and its key - in reversed order
error_reporting (E_ALL)
integer
arsort()
variable
50. To assign keys to the values in an array
array()
empty()
mysql_fetch_object()
predefined