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. Used to remove any white space - spaces or newlines or tabs - from the beginning and end of a string - not the middle.
trim()
for ($i = 0; $i < count($array); $i++) {statement(s);}
empty()
>>
2. To counter htmlentities()
include() and require()
>>
html_entity_decode()
array_merge()
3. bitwise right shift
>>
general
Error
bin2hex()
4. Used to create a substring (referred to as a token) from a larger string
strtok()
$varname[key]
htmlentities()
predefined
5. Used to check if a variable has a valid numerical value; strings with numerical values pass.
asort()
$$
===
is_numeric()
6. To find how many substrings are in a string
double quotes
substr_count()
is_numeric()
shuffle()
7. says 'if' this then do this 'else' do this or 'while' this do this
statement
$_REQUEST
the period; .
Notice
8. To iterate over the keys and values of an array
^
array()
foreach loop
Parse error
9. When used the value can be passed safely through the URL (GET).
urlencode()
XOR
rand()
integer
10. This will show all error reporting except for notice errors.
error_reporting (E_ALL & -E_NOTICE)
asort()
.=
true
11. signed integer
curly braces
int
Notice
str_word_count()
12. bitwise left shift
ASP
is_numeric()
$array[] = item
<<
13. To reset an array _______ the array() function to the array
$_GET[]
sort()
str_ireplace()
reassign
14. a language in which to make querys to a database with
+
integer
sql
!= inequality
15. leading zero: 0100 or 0567
mysql_close($dbc)
octal
defined()
Object
16. To close a connection between a database
reassign
.=
mysql_close($dbc)
?>
17. To check if a constant is already declared
defined()
Hex
+
XOR
18. An array of variables passed in the URL
defined()
Notice
$_GET[]
error_reporting (E_ALL & -E_NOTICE)
19. To set up error reporting
function error_reporting()
XOR
Array
&
20. Alias of rtrim()
chop()
null
float
count()
21. identity
precedence
asort()
server-side programing
===
22. bitwise XOR
E_STRICT
^
precedence
rand()
23. An array of variables passed with <input /> data
abs()
Notice
mysql_fetch_array()
$_POST[]
24. To assign keys to the values in an array
isset()
array()
+
asort()
25. print $_SERVER will _____ work if you use the print function on arrays.
for ($i = 0; $i < count($array); $i++) {statement(s);}
not
array
+
26. a line of information that can be stored in a variable or used in a function or statement
string
===
html_entity_decode()
$_SESSION[]
27. All variables must begin with _________.
preg_match()
$$
the dollar sign $
include() and require()
28. 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.
error_reporting (E_ALL | E_STRICT)
Parse error
echo
decimal
29. allows you to split strings based on more complex rules
Hex
include() and require()
array_merge()
preg_split()
30. A conditional or loop is a ________________.
function
list()
parentheses
control structure
31. This fatal error arises from memory allocation problem.
is_numeric()
Error
integer
strtok()
32. collection of binary data
$dbc = mysql_connect(hostname, username, password)
foreach loop
<?php
string
33. The name of the #! used to designate the location of the PHP binary
single quotes
Shebang
list()
^
34. Hypertext Preprocessor - a server-side programing language used to create webpages
PHP
array()
GET
decimal
35. Predefined constants such as __LINE__ or __FILE__ or __FUNCTION__ or __CLASS__ and __METHOD__
predefined variable
sql
server-side programing
Magic Constant
36. TRUE or FALSE
sql
numbers
boolean
html_entity_decode()
37. The concatenation assignment operator?
null
integer
.=
negative numbers
38. a type with two possible values: true and false
boolean
variable
<?php
octal
39. Returns an array that corresponds to the fetched row of MySQL data and moves the internal data pointer ahead
$dbc = mysql_connect(hostname, username, password)
error_reporting (E_ALL & -E_NOTICE)
mysql_fetch_array()
boolean
40. Define(NAME,value)
crypt()
asort()
nl2br()
Constant
41. This fatal fatal is caused by a semantic mistake: omission of a semicolon or imbalance of quotations or parentheses or braces.
SGML
SEO
Parse error
error_reporting (E_ALL & -E_NOTICE)
42. The seven main error reporting constants are: E_NOTICE - E_WARNING - E_PARSE - E_ERROR - E_ALL - _____ - E_DEPRECATED
E_STRICT
boolean
Notice
!= inequality
43. The output of var_export((float)array());
trim()
0
crypt()
sql
44. To refer to an element in a multidimensional array list the indices in order of _____ to more precise;
HTML
general
array()
single quotes
45. Function can you use to format a number with commas
HTML
loops
number_format()
echo
46. ____ or key is referred to for a value within an array.
<<
index
rsort()
fopen()
47. Uses two arguments: constant name and constant definition
index
define()
parentheses
the escape character ''
48. Use ______ for search engines or catalogued pages or pages that would be bookmarked.
error_reporting (E_ALL & -E_NOTICE)
GET
loops
mysql_fetch_array()
49. Function used to round down to the lowest integer
define()
$dbc = mysql_connect(hostname, username, password)
floor()
curly braces
50. Active Server Pages
list()
numbers
ASP
E_STRICT