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. To delete a variable or an element of an array
client-side programing
unset()
negative numbers
drop
2. Function can you use to format a number with commas
round() Function
SEO
number_format()
+= or -= or *= or /=
3. any programing language where the user must support the language the script is written in
wordwrap()
Magic Constant
client-side programing
Object
4. Used to convert all HTML tags into their entity versions.
error_reporting (0)
superglobal
htmlentities()
the period; .
5. 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
6. Use _______ for passwords or pages that would not be bookmarked or pages that require security.
predefined
DTD
variable
POST
7. Used to check if a variable has any value (including 0 or FALSE or an empty string).
isset()
define()
boolean
underscores
8. Control structure that continue exit - they perform specific statements for a determined number of iterations.
string
error_reporting (E_ALL)
trim()
loops
9. This will show all error reporting.
html_entity_decode()
SGML
error_reporting (E_ALL)
?>
10. The three types of loops in PHP are: for - while - ____.
preg_split()
asort()
foreach
defined()
11. To sort values of an array in reversed order
not
trim()
rsort()
float
12. Leading 0x: 0x13F or 0xA23
client-side programing
Hex
==
trim()
13. To close a connection between a database
mysql_close($dbc)
numbers
round() Function
switch
14. a storage location in the computer's memory that has a type & a name and a contents
HTML
function
variable
fopen()
15. standard notation
shuffle()
sql
null
decimal
16. Returns a string with backslashes in front of predefined characters
addslashes()
fopen()
preg_split()
foreach
17. Function that contains the highest value that rand() can have randomly
htmlentities()
getrandmax()
superglobal
E_STRICT
18. To declare a constant
array_merge()
define()
+
round() Function
19. Alias of rtrim()
E_STRICT
array
chop()
Shebang
20. Function used to find the absolute value of a number or numeric variable
HTML
chr()
Magic Constant
abs()
21. Operators used to operate and assign
mysql
$_SESSION[]
+= or -= or *= or /=
predefined variable
22. bitwise left shift
single quotes
<<
general
XML
23. To create an array
substr_count()
if/elseif/else and switch statements
array()
<?php
24. Creates a pointer to a file with the declared mode (read - write -etc.).
the escape character ''
fopen()
?>
loops
25. To sort the values while maintaining the correlation between each value and its key - in reversed order
arsort()
getrandmax()
HTML
Parse error
26. To sort values of an array without regard to the keys
open source
POST
Warning
sort()
27. Function used to round down to the lowest integer
statement
index
floor()
predefined
28. To sort by the keys while maintaining the correlation between the key and its value
empty()
statement
for ($i = 0; $i < count($array); $i++) {statement(s);}
ksort()
29. any programing language where the script is parsed on the server
mysql_close($dbc)
server-side programing
Object
html_entity_decode()
30. $_SERVER - $_POST - $_GET - $_COOKIE - $_SESSION - $_ENV; special arrays.
substr_count()
superglobal
if/elseif/else and switch statements
boolean
31. To find how many substrings are in a string
substr_count()
true
trim()
loops
32. Used to convert certain HTML tags into their entity versions.
superglobal
sort()
0
htmlspecialchars()
33. Similar to mysql_fetch_array() - but cannot be accessed by integer offset
PHP
Warning
array()
mysql_fetch_object()
34. $_SERVER is a ________ variable.
null
^
predefined
HTML
35. the most basic function in PHP used to output information to the page
echo
?>
switch
ASP
36. collection of binary data
string
loops
control structure
sql
37. Used to replace a substring with another string - it is not case-sensitive.
str_ireplace()
?>
<?php
function error_reporting()
38. Search Engine Optimization
SEO
<?php
>>
SGML
39. To refer to an element in a multidimensional array list the indices in order of _____ to more precise;
general
foreach loop
list()
===
40. used to round numeric values.
round() Function
empty()
predefined
floor()
41. Tag to begin a php script
E_STRICT
empty()
negative numbers
<?php
42. To counter htmlentities()
ini_set ('display_errors', 1)
curly braces
html_entity_decode()
XML
43. $_POST Data sent using POST found is sent to _______
error_reporting (E_ALL & -E_NOTICE)
str_ireplace()
addcslashes()
predefined variable
44. EXtensible Markup Language
HTML
XML
define()
is_numeric()
45. The order of operations.
preg_match()
define()
asort()
precedence
46. This error refers to a variable with no value.
Notice
<?php
$_SESSION[]
addcslashes()
47. The ouput of var_export((bool)"NULL");
trim()
rand()
true
DTD
48. $_POST and $_GET are ________ variables.
switch
predefined
wordwrap()
statement
49. To include files - _______ will give errors and _________ will terminate execution().
client-side programing
the escape character ''
count()
include() and require()
50. The array that stores variables specific to a user's visit
Shebang
$_SESSION[]
ksort()
HTTP