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. All variables must begin with _________.
urlencode()
define()
the dollar sign $
.=
2. Variable names can begin with __________
Shebang
error_reporting (0)
double quotes
underscores
3. This fatal fatal is caused by a semantic mistake: omission of a semicolon or imbalance of quotations or parentheses or braces.
>>
str_ireplace()
Parse error
indexed array
4. Function that contains the highest value that rand() can have randomly
not
getrandmax()
foreach loop
the dollar sign $
5. The syntax for connecting to a database
$dbc = mysql_connect(hostname, username, password)
+= or -= or *= or /=
Warning
addslashes()
6. any programing language where the user must support the language the script is written in
function
server-side programing
!= inequality
client-side programing
7. Use ______ when a variable contains any amount of variables; in general.
preg_replace()
associative array
XML
double quotes
8. Tag to end a php script
isset()
Constant
&
?>
9. An array whose keys are numbers.
crypt()
loops
indexed array
^
10. What You See Is What You Get
mysql_fetch_array()
$var++ and $var
WYSIWYG
$_REQUEST
11. signed integer
SEO
int
POST
round() Function
12. Control structures that break exit
Magic Constant
XML
if/elseif/else and switch statements
mysql
13. Function used to round up to the highest integer
crypt()
ceil()
curly braces
1
14. The seven main error reporting constants are: E_NOTICE - E_WARNING - E_PARSE - E_ERROR - E_ALL - _____ - E_DEPRECATED
E_STRICT
round() Function
XML
float
15. The output of var_export((float)array(0));
===
1
HTML
+
16. Function can you use to format a number with commas
bin2hex()
<?php
define()
number_format()
17. Returns a string with backslashes in front of the specified characters
preg_replace()
WYSIWYG
addcslashes()
chr()
18. Alias of rtrim()
strtok()
boolean
chop()
HTTP
19. To set up error reporting
octal
function error_reporting()
foreach loop
SGML
20. This will show all error reporting except for notice errors.
error_reporting (E_ALL & -E_NOTICE)
Shebang
html_entity_decode()
decimal
21. The seven main SQL (structured query language) functions are alter - create - delete - _______ - insert - select - update
+= or -= or *= or /=
==
associative array
drop
22. To reset an array _______ the array() function to the array
general
str_ireplace()
associative array
reassign
23. leading zero: 0100 or 0567
octal
mysql_fetch_array()
nl2br()
defined()
24. addition
predefined
is_numeric()
?>
+
25. Function used to round down to the lowest integer
+
include() and require()
Hex
floor()
26. Function used to convert new lines in a variable from a form to <br /> tags so that the data can be formatted correctly.
statement
PHP
preg_split()
nl2br()
27. a database which is best supported by PHP
arsort()
array
mysql
decimal
28. Used to replace a substring with another string - it is not case-sensitive.
sort()
==
single quotes
str_ireplace()
29. The name of the #! used to designate the location of the PHP binary
Shebang
array()
!= inequality
Magic Constant
30. Used to convert certain HTML tags into their entity versions.
fopen()
$array[] = item
integer
htmlspecialchars()
31. To get time data
?>
string
date()
array()
32. The concatenation assignment operator?
PHP
ini_set ('display_errors', 1)
rsort()
.=
33. equivalence
Parse error
$var++ and $var
==
Parse error
34. allows you to split strings based on more complex rules
preg_split()
0
array
sort()
35. Define(NAME,value)
server-side programing
0
Constant
mysql_close($dbc)
36. Used to check if a variable has a valid numerical value; strings with numerical values pass.
urlencode()
list()
is_numeric()
predefined variable
37. Variable names cannot begin with _______
^
HTTP
$_GET[]
numbers
38. a storage location in the computer's memory that has a type & a name and a contents
superglobal
!= inequality
^
variable
39. standard notation
$_GET[]
decimal
preg_split()
POST
40. To create an array
array()
not
+
arsort()
41. To sort values of an array without regard to the keys
bin2hex()
sort()
define()
chr()
42. The concatenation operator?
foreach
the period; .
ceil()
>>
43. _______ is a comparison operator
foreach loop
!= inequality
Error
htmlspecialchars()
44. An array of variables passed in the URL
error_reporting (E_ALL)
$_GET[]
1
rand()
45. Used to remove any white space - spaces or newlines or tabs - from the beginning and end of a string - not the middle.
trim()
shuffle()
defined()
XML
46. An array whose keys are strings; also known as a hash.
$var++ and $var
indexed array
strtok()
associative array
47. any programing language where the script is parsed on the server
defined()
server-side programing
SEO
XOR
48. bitwise right shift
float
^
>>
count()
49. Used to find the length of a string
crypt()
list()
$var++ and $var
strlen()
50. To sort the values while maintaining the correlation between each value and its key
.=
crypt()
asort()
===