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. This error arises from misusing a function.
arsort()
SGML
the period; .
Warning
2. To iterate over the keys and values of an array
sql
foreach loop
<?php
+
3. Control structures that break exit
<<
asort()
if/elseif/else and switch statements
HTTP
4. Returns a string with backslashes in front of the specified characters
urlencode()
addcslashes()
Parse error
getrandmax()
5. To sort by the keys while maintaining the correlation between the key and its value
$$
ksort()
===
predefined
6. any programing language where the user must support the language the script is written in
client-side programing
===
strlen()
chr()
7. Returns a string with backslashes in front of predefined characters
int
trim()
XML
addslashes()
8. Function that contains the highest value that rand() can have randomly
getrandmax()
Shebang
define()
preg_split()
9. equivalence
==
&
HTTP
<<
10. signed floating-point value
Shebang
float
getrandmax()
superglobal
11. leading zero: 0100 or 0567
===
octal
include() and require()
Parse error
12. Predefined constants such as __LINE__ or __FILE__ or __FUNCTION__ or __CLASS__ and __METHOD__
ASP
Magic Constant
client-side programing
XML
13. To set up error reporting
Error
Parse error
function error_reporting()
SEO
14. To reorganise the array randomly
shuffle()
&
array()
octal
15. To refer to an item in an array
echo
true
$varname[key]
GET
16. To declare a constant
$_REQUEST
$_GET[]
define()
client-side programing
17. $_POST and $_GET are ________ variables.
for ($i = 0; $i < count($array); $i++) {statement(s);}
Constant
predefined
array()
18. Control structure that continue exit - they perform specific statements for a determined number of iterations.
Notice
asort()
index
loops
19. Online applications and resources which are available to the general public with very few restrictions
$_POST[]
open source
foreach loop
statement
20. PHP has two conditional: if and ______.
addslashes()
switch
index
sort()
21. To iterate over the values of an array
decimal
wordwrap()
rsort()
for ($i = 0; $i < count($array); $i++) {statement(s);}
22. EXtensible Markup Language
0
1
XML
strip_tags()
23. The name of the #! used to designate the location of the PHP binary
negative numbers
<?php
Shebang
bin2hex()
24. says 'if' this then do this 'else' do this or 'while' this do this
variable
statement
numbers
ksort()
25. Besides GET and POST ________ can be used to access data but $_POST and $_GET are more precise and therefore preferable.
$_REQUEST
sort()
mysql_fetch_array()
shuffle()
26. The order of operations.
precedence
arsort()
sort()
predefined variable
27. _______ is a comparison operator
!= inequality
Array
number_format()
negative numbers
28. Converts a string of ASCII characters to hexadecimal values
float
general
bin2hex()
superglobal
29. The seven main error reporting constants are: E_NOTICE - E_WARNING - E_PARSE - E_ERROR - E_ALL - _____ - E_DEPRECATED
&
mysql_close($dbc)
DTD
E_STRICT
30. a language in which to make querys to a database with
sql
switch
integer
error_reporting (E_ALL)
31. Function used to round up to the highest integer
curly braces
drop
Magic Constant
ceil()
32. The seven main SQL (structured query language) functions are alter - create - delete - _______ - insert - select - update
string
drop
strlen()
getrandmax()
33. Returns a character from a specified ASCII value
chr()
rsort()
E_STRICT
addcslashes()
34. Used to replace a substring with another string - it is not case-sensitive.
DTD
the period; .
AJAX
str_ireplace()
35. The prefix for a dynamic variable - also known as a variable variable
preg_split()
chop()
$$
===
36. ____ or key is referred to for a value within an array.
index
mysql_close($dbc)
floor()
Hex
37. signed integer
int
string
function
chr()
38. Define(NAME,value)
chop()
echo
underscores
Constant
39. Variable names can begin with __________
double quotes
rsort()
underscores
$_POST[]
40. standard notation
predefined
decimal
str_word_count()
SGML
41. Use _______ for passwords or pages that would not be bookmarked or pages that require security.
list()
POST
1
preg_replace()
42. Use ________ to have multiple quotations in one string
$array[] = item
the escape character ''
$_POST[]
round() Function
43. Function used to round down to the lowest integer
$_POST[]
date()
floor()
rsort()
44. Shorthand used to increment and decrement
nl2br()
$var++ and $var
>>
predefined
45. This fatal fatal is caused by a semantic mistake: omission of a semicolon or imbalance of quotations or parentheses or braces.
Parse error
open source
underscores
server-side programing
46. Use ______ when there are no variables in the string
E_STRICT
isset()
single quotes
rand()
47. Use ______ when a variable contains any amount of variables; in general.
for ($i = 0; $i < count($array); $i++) {statement(s);}
double quotes
XOR
array
48. A conditional or loop is a ________________.
getrandmax()
array_merge()
control structure
boolean
49. An array whose keys are numbers.
indexed array
error_reporting (E_ALL)
bin2hex()
variable
50. _________ can be used in conditional statements to set precedence
true
urlencode()
Shebang
parentheses