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. Returns an array that corresponds to the fetched row of MySQL data and moves the internal data pointer ahead
mysql_fetch_array()
if/elseif/else and switch statements
double quotes
HTTP
2. Standard Generalized Markup Language
rsort()
SGML
Object
Notice
3. The concatenation assignment operator?
Array
precedence
.=
rsort()
4. To remove all HTML and PHP tags.
substr_count()
strip_tags()
function
sort()
5. To put a dollar sign before a variable like $10 where 10 is the variable's value - you can escape the first dollar sign; $$cost; or you can use __________.
curly braces; ${$total}
Warning
index
boolean
6. The array that stores variables specific to a user's visit
E_STRICT
$_SESSION[]
boolean
underscores
7. This error refers to a variable with no value.
ASP
single quotes
Notice
open source
8. Hypertext Preprocessor - a server-side programing language used to create webpages
array()
DTD
Array
PHP
9. a positive or negative number
precedence
htmlentities()
integer
superglobal
10. To declare a constant
the dollar sign $
boolean
define()
array()
11. Used to convert certain HTML tags into their entity versions.
ceil()
&
error_reporting (0)
htmlspecialchars()
12. Hyper Text Markup Language
fopen()
HTML
loops
mysql_close($dbc)
13. ____ or key is referred to for a value within an array.
index
integer
Hex
error_reporting (0)
14. Operators used to operate and assign
!= inequality
empty()
AJAX
+= or -= or *= or /=
15. Used to check if a variable has a valid numerical value; strings with numerical values pass.
is_numeric()
addcslashes()
<?php
octal
16. standard notation
loops
decimal
array()
negative numbers
17. To sort by the keys while maintaining the correlation between the key and its value
XOR
html_entity_decode()
substr_count()
ksort()
18. signed integer
error_reporting (0)
int
PHP
crypt()
19. Use ______ when there are no variables in the string
float
drop
single quotes
if/elseif/else and switch statements
20. Asynchronous Javascript And XML
AJAX
$var++ and $var
<<
include() and require()
21. addition
+
preg_split()
>>
$_POST[]
22. Function used to find the absolute value of a number or numeric variable
octal
Array
$_POST[]
abs()
23. does a certain action when called upon
string
defined()
mysql_fetch_object()
function
24. To iterate over the values of an array
not
$var++ and $var
for ($i = 0; $i < count($array); $i++) {statement(s);}
E_STRICT
25. Returns a character from a specified ASCII value
isset()
predefined variable
chr()
true
26. container of ordered data elements
Notice
.=
Array
chop()
27. This will not show error reporting - it will be turned off.
<?php
string
error_reporting (0)
===
28. Function used to round down to the lowest integer
statement
sort()
floor()
preg_match()
29. Leading 0x: 0x13F or 0xA23
Hex
curly braces; ${$total}
+
statement
30. To counter htmlentities()
Array
strip_tags()
curly braces
html_entity_decode()
31. The four main error types are:Notice - Warning - ________ and Error.
Parse error
0
integer
$var++ and $var
32. collection of binary data
SGML
string
XOR
.=
33. Function that contains the highest value that rand() can have randomly
index
+
getrandmax()
$dbc = mysql_connect(hostname, username, password)
34. Function used to convert new lines in a variable from a form to <br /> tags so that the data can be formatted correctly.
abs()
decimal
precedence
nl2br()
35. An array of variables passed in the URL
is_numeric()
$_GET[]
getrandmax()
Shebang
36. a language in which to make querys to a database with
1
sql
mysql_fetch_array()
===
37. Active Server Pages
XOR
ASP
empty()
SEO
38. container of both data and code
Object
include() and require()
not
HTML
39. Returns a string with backslashes in front of the specified characters
XML
rand()
isset()
addcslashes()
40. To reorganise the array randomly
shuffle()
Array
$var++ and $var
str_ireplace()
41. An array whose keys are numbers.
mysql
E_STRICT
0
indexed array
42. To sort values of an array without regard to the keys
decimal
sort()
$_POST[]
the period; .
43. The order of operations.
str_ireplace()
html_entity_decode()
>>
precedence
44. To merge arrays
preg_split()
array_merge()
boolean
&
45. To refer to an item in an array
date()
error_reporting (E_ALL | E_STRICT)
Notice
$varname[key]
46. A data structure that can hold a number of items of data of the same type eg. a list of names
array
the dollar sign $
for ($i = 0; $i < count($array); $i++) {statement(s);}
===
47. To create an array
ini_set ('display_errors', 1)
XOR
statement
array()
48. searches the subject for matches to a given pattern replaced with the given replacement text
number_format()
preg_replace()
abs()
reassign
49. signed floating-point value
$$
define()
float
ksort()
50. _____ is a logical operator
Shebang
>>
XOR
POST