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. says 'if' this then do this 'else' do this or 'while' this do this
string
statement
Notice
+= or -= or *= or /=
2. does a certain action when called upon
predefined
function
str_ireplace()
round() Function
3. print $_SERVER will _____ work if you use the print function on arrays.
reassign
!= inequality
not
crypt()
4. Use ________ to have multiple quotations in one string
the escape character ''
superglobal
crypt()
error_reporting (E_ALL & -E_NOTICE)
5. a type with two possible values: true and false
boolean
predefined
XOR
error_reporting (0)
6. This will not show error reporting - it will be turned off.
error_reporting (0)
reassign
associative array
SGML
7. The output of var_export((float)array());
true
0
statement
arsort()
8. used to round numeric values.
superglobal
Warning
round() Function
integer
9. EXtensible Markup Language
XOR
function error_reporting()
XML
curly braces
10. To sort by the keys while maintaining the correlation between the key and its value
XOR
string
ksort()
foreach loop
11. To counter htmlentities()
$_SESSION[]
Notice
bin2hex()
html_entity_decode()
12. Uses two arguments: constant name and constant definition
wordwrap()
Notice
string
define()
13. either hasn't yet been set or is assigned NULL value
wordwrap()
isset()
asort()
null
14. The ouput of var_export((bool)"NULL");
$_POST[]
count()
predefined
true
15. a language in which to make querys to a database with
sql
mysql_fetch_object()
is_numeric()
htmlentities()
16. Used to check if a variable has any value (including 0 or FALSE or an empty string).
isset()
abs()
chr()
double quotes
17. _______ is a comparison operator
!= inequality
associative array
>>
chop()
18. _________ can be used in conditional statements to set precedence
parentheses
==
$_GET[]
null
19. Used to find the length of a string
Array
underscores
error_reporting (E_ALL)
strlen()
20. _____ is a logical operator
XOR
array()
Error
htmlentities()
21. Used to encrypt values - it is a one-way encryption method
error_reporting (E_ALL | E_STRICT)
crypt()
$_SESSION[]
foreach
22. This error refers to a variable with no value.
$varname[key]
mysql_close($dbc)
Notice
0
23. Predefined constants such as __LINE__ or __FILE__ or __FUNCTION__ or __CLASS__ and __METHOD__
array()
Magic Constant
indexed array
number_format()
24. To delete a variable or an element of an array
wordwrap()
unset()
string
Object
25. An array whose keys are numbers.
ksort()
wordwrap()
indexed array
mysql_close($dbc)
26. bitwise AND
list()
rsort()
ini_set ('display_errors', 1)
&
27. Used to display errors in a particular script - should be placed at top of script.
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
28. $_POST Data sent using POST found is sent to _______
predefined variable
curly braces
$var++ and $var
round() Function
29. TRUE or FALSE
reassign
Parse error
boolean
date()
30. To word wrap after a certain amount of characters.
PHP
wordwrap()
bin2hex()
array
31. The prefix for a dynamic variable - also known as a variable variable
$$
chop()
general
Parse error
32. All variables must begin with _________.
the dollar sign $
Array
mysql
octal
33. Used to convert all HTML tags into their entity versions.
AJAX
$var++ and $var
htmlentities()
SGML
34. bitwise XOR
mysql_fetch_object()
^
float
associative array
35. bitwise right shift
abs()
Array
bin2hex()
>>
36. 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 __________.
rsort()
strlen()
curly braces; ${$total}
+
37. $_SERVER is a ________ variable.
htmlspecialchars()
predefined
$array[] = item
array()
38. To merge arrays
XOR
array_merge()
superglobal
index
39. The three types of loops in PHP are: for - while - ____.
Notice
Shebang
foreach
XOR
40. This fatal fatal is caused by a semantic mistake: omission of a semicolon or imbalance of quotations or parentheses or braces.
str_word_count()
Parse error
string
AJAX
41. Control structures that break exit
if/elseif/else and switch statements
asort()
float
nl2br()
42. the most basic function in PHP used to output information to the page
echo
floor()
variable
ceil()
43. Creates a pointer to a file with the declared mode (read - write -etc.).
Parse error
list()
fopen()
$var++ and $var
44. a positive or negative number
mysql_fetch_object()
define()
integer
float
45. Used to remove any white space - spaces or newlines or tabs - from the beginning and end of a string - not the middle.
sort()
trim()
is_numeric()
.=
46. container of ordered data elements
HTTP
statement
drop
Array
47. any programing language where the user must support the language the script is written in
foreach
client-side programing
predefined
define()
48. equivalence
==
not
string
for ($i = 0; $i < count($array); $i++) {statement(s);}
49. Hyper Text Markup Language
defined()
integer
HTML
Array
50. To sort the values while maintaining the correlation between each value and its key - in reversed order
date()
arsort()
sort()
$var++ and $var