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 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.
str_ireplace()
strlen()
>>
error_reporting (E_ALL | E_STRICT)
2. bitwise AND
Parse error
<?php
client-side programing
&
3. To sort values of an array in reversed order
index
defined()
preg_split()
rsort()
4. a type with two possible values: true and false
predefined
sort()
boolean
number_format()
5. Hyper Text Markup Language
Parse error
strlen()
precedence
HTML
6. What You See Is What You Get
HTTP
define()
chop()
WYSIWYG
7. Use _______ for passwords or pages that would not be bookmarked or pages that require security.
single quotes
POST
the escape character ''
preg_match()
8. leading zero: 0100 or 0567
array()
&
octal
asort()
9. says 'if' this then do this 'else' do this or 'while' this do this
number_format()
statement
ini_set ('display_errors', 1)
$$
10. ___________ can be used with substr() to count backward
negative numbers
1
associative array
str_ireplace()
11. Use ______ when there are no variables in the string
$_SESSION[]
date()
octal
single quotes
12. Function used to round down to the lowest integer
floor()
+= or -= or *= or /=
curly braces
boolean
13. To reorganise the array randomly
strlen()
isset()
.=
shuffle()
14. Converts a string of ASCII characters to hexadecimal values
precedence
bin2hex()
unset()
trim()
15. Used to check if a variable has a valid numerical value; strings with numerical values pass.
list()
is_numeric()
PHP
1
16. The concatenation operator?
octal
the period; .
general
define()
17. This fatal fatal is caused by a semantic mistake: omission of a semicolon or imbalance of quotations or parentheses or braces.
GET
html_entity_decode()
superglobal
Parse error
18. Returns an array that corresponds to the fetched row of MySQL data and moves the internal data pointer ahead
array()
curly braces; ${$total}
mysql_fetch_array()
numbers
19. collection of binary data
string
getrandmax()
octal
reassign
20. Use ______ for search engines or catalogued pages or pages that would be bookmarked.
ini_set ('display_errors', 1)
preg_match()
GET
Array
21. Used to create a substring (referred to as a token) from a larger string
strtok()
html_entity_decode()
chr()
===
22. The syntax for connecting to a database
HTTP
$dbc = mysql_connect(hostname, username, password)
preg_match()
asort()
23. This will show all error reporting except for notice errors.
server-side programing
predefined variable
SEO
error_reporting (E_ALL & -E_NOTICE)
24. The prefix for a dynamic variable - also known as a variable variable
include() and require()
the dollar sign $
$$
isset()
25. To get time data
array
integer
date()
chr()
26. The order of operations.
open source
precedence
predefined
$_SESSION[]
27. All variables must begin with _________.
define()
predefined variable
<<
the dollar sign $
28. Used to encrypt values - it is a one-way encryption method
Hex
crypt()
sort()
Shebang
29. Similar to mysql_fetch_array() - but cannot be accessed by integer offset
drop
$_SESSION[]
mysql_fetch_object()
ini_set ('display_errors', 1)
30. does a certain action when called upon
unset()
WYSIWYG
function
number_format()
31. Returns a string with backslashes in front of the specified characters
addcslashes()
GET
sql
loops
32. $_SERVER is a ________ variable.
Array
$_REQUEST
predefined
Warning
33. This will show all error reporting.
error_reporting (E_ALL)
$varname[key]
addslashes()
!= inequality
34. Leading 0x: 0x13F or 0xA23
sql
unset()
Hex
underscores
35. Active Server Pages
reassign
ASP
mysql_fetch_array()
Magic Constant
36. The concatenation assignment operator?
.=
error_reporting (E_ALL)
<<
Notice
37. When used the value can be passed safely through the URL (GET).
curly braces
urlencode()
mysql_close($dbc)
strlen()
38. To sort the values while maintaining the correlation between each value and its key - in reversed order
general
arsort()
list()
ini_set ('display_errors', 1)
39. To sort the values while maintaining the correlation between each value and its key
integer
asort()
function error_reporting()
Parse error
40. This will not show error reporting - it will be turned off.
predefined
error_reporting (0)
error_reporting (E_ALL | E_STRICT)
if/elseif/else and switch statements
41. To include files - _______ will give errors and _________ will terminate execution().
Constant
strtok()
AJAX
include() and require()
42. To sort values of an array without regard to the keys
sort()
<<
strlen()
mysql_fetch_array()
43. _______ is a comparison operator
!= inequality
rand()
the period; .
true
44. To merge arrays
function
strtok()
mysql_fetch_array()
array_merge()
45. To check if a constant is already declared
!= inequality
<<
defined()
mysql_fetch_object()
46. $_POST and $_GET are ________ variables.
predefined
indexed array
string
Shebang
47. either hasn't yet been set or is assigned NULL value
AJAX
null
float
foreach loop
48. Used to check if a variable has any value (including 0 or FALSE or an empty string).
negative numbers
preg_match()
strip_tags()
isset()
49. To assign array element values to individual variables
list()
error_reporting (E_ALL)
mysql_fetch_object()
Notice
50. This error arises from misusing a function.
Warning
XOR
ceil()
SGML