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
boolean
mysql_fetch_array()
arsort()
Constant
2. Returns a character from a specified ASCII value
chr()
ASP
date()
string
3. $_POST and $_GET are ________ variables.
+
defined()
predefined
statement
4. leading zero: 0100 or 0567
echo
sort()
octal
XOR
5. To get time data
+
SGML
mysql_fetch_array()
date()
6. $_POST Data sent using POST found is sent to _______
variable
predefined
predefined variable
ini_set ('display_errors', 1)
7. To delete a variable or an element of an array
unset()
include() and require()
>>
array()
8. A conditional or loop is a ________________.
POST
DTD
control structure
predefined
9. This error arises from misusing a function.
Warning
sort()
preg_split()
loops
10. Function used to round down to the lowest integer
curly braces
$array[] = item
floor()
is_numeric()
11. The concatenation assignment operator?
abs()
strtok()
$_REQUEST
.=
12. Converts a string of ASCII characters to hexadecimal values
open source
Error
bin2hex()
error_reporting (E_ALL & -E_NOTICE)
13. 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)
octal
htmlspecialchars()
preg_split()
14. Variable names cannot begin with _______
boolean
numbers
array()
strtok()
15. _______ is a comparison operator
array_merge()
!= inequality
$_POST[]
strlen()
16. To word wrap after a certain amount of characters.
is_numeric()
Constant
bin2hex()
wordwrap()
17. A data structure that can hold a number of items of data of the same type eg. a list of names
empty()
array
&
true
18. To check if a constant is already declared
variable
!= inequality
defined()
single quotes
19. _____ is a logical operator
XOR
decimal
int
strtok()
20. bitwise AND
preg_replace()
include() and require()
Parse error
&
21. To include files - _______ will give errors and _________ will terminate execution().
rsort()
include() and require()
rand()
HTTP
22. _________ can be used in conditional statements to set precedence
arsort()
ksort()
$_POST[]
parentheses
23. When used the value can be passed safely through the URL (GET).
float
urlencode()
include() and require()
variable
24. To reorganise the array randomly
integer
shuffle()
$$
octal
25. addition
+
$array[] = item
the escape character ''
Parse error
26. Active Server Pages
define()
abs()
ASP
SEO
27. To sort the values while maintaining the correlation between each value and its key
asort()
str_ireplace()
foreach
strip_tags()
28. container of ordered data elements
$var++ and $var
Array
1
general
29. bitwise XOR
^
trim()
negative numbers
shuffle()
30. To refer to an element in a multidimensional array list the indices in order of _____ to more precise;
numbers
arsort()
$_SESSION[]
general
31. either hasn't yet been set or is assigned NULL value
HTTP
1
<?php
null
32. PHP has two conditional: if and ______.
octal
Warning
DTD
switch
33. Used to create a substring (referred to as a token) from a larger string
strtok()
mysql_close($dbc)
defined()
curly braces; ${$total}
34. Control structure that continue exit - they perform specific statements for a determined number of iterations.
open source
loops
bin2hex()
date()
35. Use ______ when there are no variables in the string
DTD
array()
single quotes
str_word_count()
36. To set up error reporting
.=
function error_reporting()
control structure
$var++ and $var
37. The prefix for a dynamic variable - also known as a variable variable
include() and require()
1
$$
int
38. To get over quotation marks while using arrays
predefined
?>
curly braces
foreach loop
39. To determine the amount of elements in an array
integer
Parse error
preg_split()
count()
40. The order of operations.
addcslashes()
precedence
null
reassign
41. Function can you use to format a number with commas
drop
number_format()
str_word_count()
strtok()
42. To sort values of an array without regard to the keys
$$
sort()
control structure
predefined
43. To merge arrays
strlen()
foreach loop
array_merge()
switch
44. $_SERVER is a ________ variable.
null
foreach
predefined
substr_count()
45. identity
htmlspecialchars()
===
array()
$varname[key]
46. To refer to an item in an array
$varname[key]
bin2hex()
unset()
^
47. allows you to split strings based on more complex rules
boolean
control structure
the escape character ''
preg_split()
48. Leading 0x: 0x13F or 0xA23
date()
foreach loop
not
Hex
49. An array whose keys are strings; also known as a hash.
XML
associative array
single quotes
array()
50. To remove all HTML and PHP tags.
strip_tags()
trim()
client-side programing
control structure