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. Hyper Text Markup Language
HTML
integer
echo
preg_split()
2. To sort values of an array without regard to the keys
sort()
ASP
array()
function
3. Returns a character from a specified ASCII value
0
chr()
$_GET[]
POST
4. This will not show error reporting - it will be turned off.
SGML
underscores
error_reporting (0)
ini_set ('display_errors', 1)
5. Used to find the amount of words in a string.
str_word_count()
+
addslashes()
rsort()
6. $_SERVER - $_POST - $_GET - $_COOKIE - $_SESSION - $_ENV; special arrays.
Warning
superglobal
indexed array
urlencode()
7. a storage location in the computer's memory that has a type & a name and a contents
variable
negative numbers
!= inequality
==
8. Online applications and resources which are available to the general public with very few restrictions
XML
open source
define()
server-side programing
9. To reorganise the array randomly
<<
array_merge()
shuffle()
loops
10. To assign keys to the values in an array
POST
array()
.=
general
11. any programing language where the script is parsed on the server
$_POST[]
server-side programing
XOR
Notice
12. Standard Generalized Markup Language
general
$_REQUEST
SGML
E_STRICT
13. $_SERVER is a ________ variable.
boolean
$$
predefined
ASP
14. To reset an array _______ the array() function to the array
?>
asort()
E_STRICT
reassign
15. container of ordered data elements
Parse error
Array
variable
.=
16. 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.
Object
error_reporting (E_ALL | E_STRICT)
==
getrandmax()
17. searches the subject for matches to a given pattern replaced with the given replacement text
the period; .
boolean
preg_replace()
ASP
18. Used to convert all HTML tags into their entity versions.
crypt()
htmlentities()
XML
HTML
19. _______ is a comparison operator
bin2hex()
chop()
!= inequality
str_word_count()
20. Control structure that continue exit - they perform specific statements for a determined number of iterations.
$_POST[]
+= or -= or *= or /=
WYSIWYG
loops
21. The syntax for connecting to a database
$dbc = mysql_connect(hostname, username, password)
statement
==
XML
22. This will show all error reporting.
count()
int
Notice
error_reporting (E_ALL)
23. standard notation
$$
integer
+
decimal
24. To refer to an element in a multidimensional array list the indices in order of _____ to more precise;
general
not
crypt()
POST
25. Active Server Pages
ASP
substr_count()
isset()
floor()
26. This error arises from misusing a function.
boolean
Magic Constant
Warning
DTD
27. Uses two arguments: constant name and constant definition
string
define()
decimal
not
28. does a certain action when called upon
variable
$dbc = mysql_connect(hostname, username, password)
boolean
function
29. Leading 0x: 0x13F or 0xA23
if/elseif/else and switch statements
>>
mysql_fetch_array()
Hex
30. To find how many substrings are in a string
array()
single quotes
substr_count()
negative numbers
31. To iterate over the values of an array
mysql
for ($i = 0; $i < count($array); $i++) {statement(s);}
index
curly braces; ${$total}
32. To check if a constant is already declared
function error_reporting()
drop
defined()
shuffle()
33. any programing language where the user must support the language the script is written in
precedence
predefined variable
client-side programing
asort()
34. To declare a constant
for ($i = 0; $i < count($array); $i++) {statement(s);}
function error_reporting()
define()
.=
35. Operators used to operate and assign
+= or -= or *= or /=
AJAX
string
asort()
36. $_POST and $_GET are ________ variables.
predefined
statement
round() Function
Parse error
37. Hypertext Preprocessor - a server-side programing language used to create webpages
Shebang
&
PHP
if/elseif/else and switch statements
38. _________ can be used in conditional statements to set precedence
parentheses
switch
boolean
string
39. collection of binary data
mysql_close($dbc)
string
function
foreach loop
40. The four main error types are:Notice - Warning - ________ and Error.
sql
variable
Parse error
mysql_close($dbc)
41. To remove all HTML and PHP tags.
abs()
strip_tags()
error_reporting (E_ALL | E_STRICT)
SGML
42. A conditional or loop is a ________________.
control structure
preg_split()
number_format()
include() and require()
43. To set up error reporting
chop()
superglobal
function error_reporting()
foreach loop
44. Document Type Definitions
strip_tags()
DTD
nl2br()
Error
45. The three types of loops in PHP are: for - while - ____.
client-side programing
the dollar sign $
htmlspecialchars()
foreach
46. Asynchronous Javascript And XML
1
AJAX
shuffle()
asort()
47. The concatenation assignment operator?
HTML
E_STRICT
.=
nl2br()
48. An array of variables passed in the URL
>>
$_GET[]
<?php
mysql
49. Function used to find the absolute value of a number or numeric variable
superglobal
single quotes
mysql_fetch_array()
abs()
50. This fatal error arises from memory allocation problem.
urlencode()
loops
Error
single quotes