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. Returns a string with backslashes in front of predefined characters
$varname[key]
addslashes()
server-side programing
chop()
2. This error refers to a variable with no value.
SGML
===
$_GET[]
Notice
3. The concatenation operator?
null
the period; .
function
octal
4. Use ______ when a variable contains any amount of variables; in general.
$array[] = item
===
double quotes
?>
5. The order of operations.
error_reporting (E_ALL | E_STRICT)
precedence
preg_split()
==
6. To close a connection between a database
.=
preg_replace()
mysql_close($dbc)
Array
7. does a certain action when called upon
foreach loop
HTTP
function
?>
8. To get over quotation marks while using arrays
curly braces
mysql_fetch_object()
===
POST
9. Define(NAME,value)
<<
mysql_fetch_array()
Constant
precedence
10. signed integer
+
POST
int
define()
11. Function used to find the absolute value of a number or numeric variable
abs()
$_POST[]
nl2br()
empty()
12. Hyper Text Transfer Protocol
preg_split()
HTTP
parentheses
mysql_fetch_array()
13. a type with two possible values: true and false
0
>>
&
boolean
14. The output of var_export((float)array());
urlencode()
integer
Magic Constant
0
15. To declare a constant
boolean
Shebang
define()
trim()
16. _________ can be used in conditional statements to set precedence
parentheses
switch
round() Function
integer
17. To remove all HTML and PHP tags.
preg_split()
array
string
strip_tags()
18. To assign keys to the values in an array
array()
error_reporting (E_ALL | E_STRICT)
predefined
if/elseif/else and switch statements
19. Leading 0x: 0x13F or 0xA23
the period; .
boolean
crypt()
Hex
20. Active Server Pages
htmlspecialchars()
Constant
ASP
crypt()
21. This error arises from misusing a function.
Warning
empty()
fopen()
ceil()
22. Use ________ to have multiple quotations in one string
the escape character ''
GET
XML
Shebang
23. bitwise AND
+= or -= or *= or /=
>>
&
HTTP
24. Tag to end a php script
string
number_format()
$_SESSION[]
?>
25. any programing language where the user must support the language the script is written in
the dollar sign $
client-side programing
float
error_reporting (E_ALL | E_STRICT)
26. Function can you use to format a number with commas
unset()
int
abs()
number_format()
27. allows you to split strings based on more complex rules
preg_split()
date()
getrandmax()
precedence
28. The syntax for connecting to a database
$$
$dbc = mysql_connect(hostname, username, password)
html_entity_decode()
$_SESSION[]
29. $_POST and $_GET are ________ variables.
statement
strlen()
predefined
general
30. Search Engine Optimization
include() and require()
boolean
!= inequality
SEO
31. bitwise XOR
^
array()
variable
preg_replace()
32. container of both data and code
Error
SEO
Object
ini_set ('display_errors', 1)
33. a language in which to make querys to a database with
addslashes()
Array
client-side programing
sql
34. An array of variables passed in the URL
chop()
echo
nl2br()
$_GET[]
35. To append elements to an array - this will assign item to the next available index; associative arrays get messy.
chop()
general
+
$array[] = item
36. $_SERVER is a ________ variable.
predefined
precedence
htmlentities()
+
37. The seven main SQL (structured query language) functions are alter - create - delete - _______ - insert - select - update
$array[] = item
urlencode()
drop
curly braces; ${$total}
38. print $_SERVER will _____ work if you use the print function on arrays.
switch
not
round() Function
XOR
39. To determine the amount of elements in an array
ceil()
$_GET[]
str_ireplace()
count()
40. Tag to begin a php script
is_numeric()
defined()
error_reporting (E_ALL | E_STRICT)
<?php
41. The prefix for a dynamic variable - also known as a variable variable
XML
Parse error
$$
shuffle()
42. 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
43. Operators used to operate and assign
+= or -= or *= or /=
$_POST[]
Magic Constant
>>
44. 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}
$var++ and $var
crypt()
GET
45. Used to remove any white space - spaces or newlines or tabs - from the beginning and end of a string - not the middle.
PHP
trim()
Parse error
chr()
46. Hyper Text Markup Language
if/elseif/else and switch statements
array()
HTML
list()
47. The four main error types are:Notice - Warning - ________ and Error.
double quotes
Notice
list()
Parse error
48. To reset an array _______ the array() function to the array
Hex
decimal
reassign
round() Function
49. The array that stores variables specific to a user's visit
error_reporting (E_ALL)
$_SESSION[]
define()
boolean
50. A data structure that can hold a number of items of data of the same type eg. a list of names
round() Function
array
bin2hex()
control structure