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. An array whose keys are strings; also known as a hash.
associative array
strlen()
Magic Constant
for ($i = 0; $i < count($array); $i++) {statement(s);}
2. To sort values of an array without regard to the keys
sort()
<<
curly braces
chop()
3. a language in which to make querys to a database with
error_reporting (E_ALL | E_STRICT)
sql
0
boolean
4. Active Server Pages
ASP
$var++ and $var
SEO
?>
5. The concatenation assignment operator?
.=
string
DTD
Error
6. To set up error reporting
is_numeric()
date()
function error_reporting()
decimal
7. Leading 0x: 0x13F or 0xA23
Hex
float
loops
$$
8. Use ______ when a variable contains any amount of variables; in general.
double quotes
.=
+
GET
9. To reorganise the array randomly
open source
bin2hex()
shuffle()
variable
10. To sort the values while maintaining the correlation between each value and its key
SGML
negative numbers
the escape character ''
asort()
11. Use _______ for passwords or pages that would not be bookmarked or pages that require security.
preg_split()
the escape character ''
reassign
POST
12. function Function used to create a random number
strlen()
html_entity_decode()
define()
rand()
13. To iterate over the values of an array
for ($i = 0; $i < count($array); $i++) {statement(s);}
variable
boolean
$_REQUEST
14. _______ is a comparison operator
shuffle()
!= inequality
$_POST[]
Array
15. To find how many substrings are in a string
bin2hex()
array()
error_reporting (E_ALL & -E_NOTICE)
substr_count()
16. To sort the values while maintaining the correlation between each value and its key - in reversed order
sort()
arsort()
preg_replace()
array_merge()
17. identity
error_reporting (E_ALL)
===
==
Object
18. leading zero: 0100 or 0567
octal
array()
mysql
is_numeric()
19. Tag to begin a php script
preg_match()
curly braces
<?php
$$
20. The order of operations.
date()
fopen()
precedence
$_POST[]
21. Hypertext Preprocessor - a server-side programing language used to create webpages
Hex
PHP
count()
addcslashes()
22. Asynchronous Javascript And XML
array()
AJAX
parentheses
strlen()
23. Function used to round down to the lowest integer
Warning
SGML
SEO
floor()
24. Function used to find the absolute value of a number or numeric variable
function error_reporting()
abs()
error_reporting (E_ALL)
+
25. To merge arrays
float
bin2hex()
function
array_merge()
26. To assign keys to the values in an array
Array
array()
GET
XML
27. any programing language where the script is parsed on the server
define()
server-side programing
octal
array
28. any programing language where the user must support the language the script is written in
Object
HTML
client-side programing
trim()
29. The four main error types are:Notice - Warning - ________ and Error.
$var++ and $var
true
SGML
Parse error
30. ___________ can be used with substr() to count backward
wordwrap()
E_STRICT
the escape character ''
negative numbers
31. $_POST and $_GET are ________ variables.
server-side programing
predefined
Constant
variable
32. Standard Generalized Markup Language
bin2hex()
octal
ini_set ('display_errors', 1)
SGML
33. Returns a string with backslashes in front of the specified characters
Warning
str_ireplace()
addcslashes()
indexed array
34. Search Engine Optimization
DTD
$_GET[]
SEO
shuffle()
35. the most basic function in PHP used to output information to the page
echo
crypt()
$_SESSION[]
0
36. This fatal fatal is caused by a semantic mistake: omission of a semicolon or imbalance of quotations or parentheses or braces.
AJAX
ksort()
error_reporting (E_ALL)
Parse error
37. equivalence
$_GET[]
error_reporting (E_ALL)
substr_count()
==
38. Online applications and resources which are available to the general public with very few restrictions
fopen()
array()
predefined variable
open source
39. A conditional or loop is a ________________.
control structure
boolean
substr_count()
htmlspecialchars()
40. Use ______ when there are no variables in the string
loops
abs()
single quotes
control structure
41. a positive or negative number
not
$_GET[]
integer
index
42. To determine the amount of elements in an array
urlencode()
count()
array()
abs()
43. A data structure that can hold a number of items of data of the same type eg. a list of names
decimal
array
foreach loop
the period; .
44. To sort by the keys while maintaining the correlation between the key and its value
Magic Constant
AJAX
Object
ksort()
45. Returns a string with backslashes in front of predefined characters
foreach loop
single quotes
addslashes()
1
46. bitwise XOR
PHP
^
1
Parse error
47. The array that stores variables specific to a user's visit
string
asort()
$_SESSION[]
$_POST[]
48. This will show all error reporting except for notice errors.
E_STRICT
$_REQUEST
error_reporting (E_ALL & -E_NOTICE)
fopen()
49. a database which is best supported by PHP
defined()
mysql
float
predefined
50. bitwise left shift
$_POST[]
getrandmax()
<<
Magic Constant