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. To sort the values while maintaining the correlation between each value and its key - in reversed order
Shebang
arsort()
$_POST[]
underscores
2. To sort by the keys while maintaining the correlation between the key and its value
array
boolean
ksort()
GET
3. This fatal fatal is caused by a semantic mistake: omission of a semicolon or imbalance of quotations or parentheses or braces.
Parse error
Object
addcslashes()
open source
4. All variables must begin with _________.
the dollar sign $
arsort()
urlencode()
variable
5. a type with two possible values: true and false
foreach
the escape character ''
boolean
!= inequality
6. used to round numeric values.
round() Function
is_numeric()
>>
$_POST[]
7. To reorganise the array randomly
>>
isset()
int
shuffle()
8. Function can you use to format a number with commas
number_format()
true
$$
the escape character ''
9. To determine the amount of elements in an array
int
count()
Hex
sort()
10. _____ is a logical operator
if/elseif/else and switch statements
XOR
mysql_close($dbc)
chop()
11. This error arises from misusing a function.
Warning
str_ireplace()
superglobal
POST
12. To delete a variable or an element of an array
unset()
client-side programing
strlen()
XOR
13. Function used to round up to the highest integer
round() Function
ceil()
error_reporting (E_ALL & -E_NOTICE)
the period; .
14. To counter htmlentities()
array
define()
sort()
html_entity_decode()
15. Use ________ to have multiple quotations in one string
float
PHP
substr_count()
the escape character ''
16. This will show all error reporting.
error_reporting (E_ALL)
the dollar sign $
double quotes
count()
17. any programing language where the user must support the language the script is written in
$_REQUEST
htmlspecialchars()
client-side programing
the escape character ''
18. collection of binary data
Constant
addcslashes()
string
numbers
19. This error refers to a variable with no value.
Notice
==
wordwrap()
null
20. signed floating-point value
+= or -= or *= or /=
if/elseif/else and switch statements
float
shuffle()
21. standard notation
decimal
HTTP
.=
function
22. Variable names can begin with __________
nl2br()
Warning
underscores
octal
23. The four main error types are:Notice - Warning - ________ and Error.
Parse error
crypt()
include() and require()
string
24. The order of operations.
preg_split()
control structure
HTML
precedence
25. To assign array element values to individual variables
^
list()
double quotes
asort()
26. To declare a constant
fopen()
define()
Parse error
array()
27. The name of the #! used to designate the location of the PHP binary
html_entity_decode()
strtok()
Shebang
$_POST[]
28. EXtensible Markup Language
define()
decimal
XML
.=
29. This will not show error reporting - it will be turned off.
fopen()
error_reporting (0)
empty()
variable
30. $_SERVER is a ________ variable.
ini_set ('display_errors', 1)
is_numeric()
Warning
predefined
31. a language in which to make querys to a database with
Warning
$_GET[]
is_numeric()
sql
32. searches the subject for matches to a given pattern replaced with the given replacement text
preg_replace()
bin2hex()
urlencode()
rsort()
33. To check if a constant is already declared
defined()
the escape character ''
$_POST[]
negative numbers
34. Returns a character from a specified ASCII value
numbers
boolean
chr()
WYSIWYG
35. The ouput of var_export((bool)"NULL");
html_entity_decode()
true
isset()
the escape character ''
36. Used to encrypt values - it is a one-way encryption method
error_reporting (0)
indexed array
crypt()
superglobal
37. leading zero: 0100 or 0567
AJAX
integer
octal
strip_tags()
38. A data structure that can hold a number of items of data of the same type eg. a list of names
octal
shuffle()
+= or -= or *= or /=
array
39. To reset an array _______ the array() function to the array
array()
reassign
integer
if/elseif/else and switch statements
40. Alias of rtrim()
PHP
bin2hex()
str_word_count()
chop()
41. Standard Generalized Markup Language
count()
SGML
predefined
Hex
42. container of both data and code
Parse error
predefined
Object
0
43. Used to convert certain HTML tags into their entity versions.
Hex
client-side programing
DTD
htmlspecialchars()
44. To merge arrays
SEO
array_merge()
&
general
45. Tag to begin a php script
underscores
foreach loop
<?php
error_reporting (E_ALL | E_STRICT)
46. ___________ can be used with substr() to count backward
Magic Constant
negative numbers
array()
date()
47. The seven main SQL (structured query language) functions are alter - create - delete - _______ - insert - select - update
+= or -= or *= or /=
mysql_fetch_object()
^
drop
48. _______ is a comparison operator
!= inequality
strtok()
control structure
client-side programing
49. print $_SERVER will _____ work if you use the print function on arrays.
addslashes()
+
WYSIWYG
not
50. Function used to find the absolute value of a number or numeric variable
HTML
chr()
abs()
mysql_fetch_object()