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. What You See Is What You Get
null
WYSIWYG
array_merge()
?>
2. Control structures that break exit
<?php
Notice
if/elseif/else and switch statements
trim()
3. To iterate over the keys and values of an array
the escape character ''
is_numeric()
foreach loop
SEO
4. identity
if/elseif/else and switch statements
unset()
str_ireplace()
===
5. Use ______ when a variable contains any amount of variables; in general.
the dollar sign $
error_reporting (E_ALL & -E_NOTICE)
$_REQUEST
double quotes
6. TRUE or FALSE
boolean
drop
trim()
rsort()
7. A conditional or loop is a ________________.
abs()
decimal
control structure
$varname[key]
8. The ouput of var_export((bool)"NULL");
>>
chr()
true
single quotes
9. 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}
is_numeric()
sort()
rsort()
10. Online applications and resources which are available to the general public with very few restrictions
open source
echo
precedence
integer
11. allows you to split strings based on more complex rules
.=
shuffle()
strtok()
preg_split()
12. returns the number of matches found by a given search string under this format...
mysql_close($dbc)
if/elseif/else and switch statements
statement
preg_match()
13. Shorthand used to increment and decrement
$array[] = item
&
Constant
$var++ and $var
14. a positive or negative number
float
$_SESSION[]
integer
array()
15. Similar to mysql_fetch_array() - but cannot be accessed by integer offset
ASP
echo
boolean
mysql_fetch_object()
16. Leading 0x: 0x13F or 0xA23
Hex
html_entity_decode()
predefined
superglobal
17. The concatenation operator?
DTD
predefined
the period; .
trim()
18. $_POST Data sent using POST found is sent to _______
echo
include() and require()
$_GET[]
predefined variable
19. leading zero: 0100 or 0567
string
$_POST[]
octal
boolean
20. To remove all HTML and PHP tags.
true
strtok()
$var++ and $var
strip_tags()
21. container of ordered data elements
Array
unset()
===
array_merge()
22. Active Server Pages
the escape character ''
ASP
predefined
$_POST[]
23. Used to remove any white space - spaces or newlines or tabs - from the beginning and end of a string - not the middle.
preg_split()
single quotes
trim()
reassign
24. bitwise XOR
^
$_GET[]
include() and require()
$dbc = mysql_connect(hostname, username, password)
25. Use ________ to have multiple quotations in one string
defined()
Object
the escape character ''
open source
26. Function used to round down to the lowest integer
Notice
floor()
$$
for ($i = 0; $i < count($array); $i++) {statement(s);}
27. Function that contains the highest value that rand() can have randomly
$_REQUEST
getrandmax()
Warning
preg_split()
28. standard notation
decimal
list()
1
Parse error
29. Operators used to operate and assign
substr_count()
+= or -= or *= or /=
predefined
GET
30. Returns an array that corresponds to the fetched row of MySQL data and moves the internal data pointer ahead
sql
function error_reporting()
date()
mysql_fetch_array()
31. $_SERVER - $_POST - $_GET - $_COOKIE - $_SESSION - $_ENV; special arrays.
error_reporting (E_ALL & -E_NOTICE)
getrandmax()
superglobal
true
32. To refer to an item in an array
octal
$_POST[]
$varname[key]
bin2hex()
33. This will show all error reporting.
$_GET[]
chr()
error_reporting (E_ALL)
WYSIWYG
34. Use ______ when there are no variables in the string
<<
Object
mysql_close($dbc)
single quotes
35. EXtensible Markup Language
function
XML
sql
htmlentities()
36. To reorganise the array randomly
SEO
shuffle()
index
floor()
37. A data structure that can hold a number of items of data of the same type eg. a list of names
array
chop()
function
<?php
38. Hyper Text Markup Language
mysql_close($dbc)
array()
HTML
==
39. a type with two possible values: true and false
wordwrap()
strip_tags()
boolean
underscores
40. searches the subject for matches to a given pattern replaced with the given replacement text
preg_replace()
define()
loops
Shebang
41. _______ is a comparison operator
mysql_fetch_array()
boolean
!= inequality
$_SESSION[]
42. Used to find the amount of words in a string.
ini_set ('display_errors', 1)
crypt()
str_word_count()
Magic Constant
43. To get time data
decimal
PHP
isset()
date()
44. Used to check if a given variable has an "empty" value - no value or 0 or FALSE.
define()
arsort()
empty()
str_ireplace()
45. Variable names can begin with __________
underscores
.=
crypt()
open source
46. To assign array element values to individual variables
list()
Notice
preg_match()
^
47. To set up error reporting
sort()
function error_reporting()
str_ireplace()
Constant
48. This fatal fatal is caused by a semantic mistake: omission of a semicolon or imbalance of quotations or parentheses or braces.
ksort()
string
Parse error
mysql_fetch_object()
49. The output of var_export((float)array());
GET
indexed array
Notice
0
50. Function used to find the absolute value of a number or numeric variable
parentheses
POST
Parse error
abs()