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. Creates a pointer to a file with the declared mode (read - write -etc.).
underscores
function error_reporting()
fopen()
preg_match()
2. does a certain action when called upon
numbers
Notice
Array
function
3. Function used to round up to the highest integer
str_word_count()
precedence
$_SESSION[]
ceil()
4. returns the number of matches found by a given search string under this format...
preg_match()
abs()
list()
integer
5. Use ______ when a variable contains any amount of variables; in general.
Array
bin2hex()
superglobal
double quotes
6. The concatenation operator?
array
the period; .
foreach loop
isset()
7. To sort the values while maintaining the correlation between each value and its key - in reversed order
chr()
ASP
precedence
arsort()
8. Tag to begin a php script
HTML
<?php
^
Error
9. Returns a string with backslashes in front of the specified characters
the period; .
switch
string
addcslashes()
10. To check if a constant is already declared
error_reporting (E_ALL | E_STRICT)
defined()
Constant
array_merge()
11. Function can you use to format a number with commas
ksort()
number_format()
mysql
general
12. addition
HTTP
+
<?php
$_REQUEST
13. bitwise left shift
Magic Constant
XML
<<
defined()
14. searches the subject for matches to a given pattern replaced with the given replacement text
double quotes
DTD
control structure
preg_replace()
15. Used to convert all HTML tags into their entity versions.
htmlentities()
POST
client-side programing
count()
16. When used the value can be passed safely through the URL (GET).
E_STRICT
urlencode()
XML
octal
17. To delete a variable or an element of an array
if/elseif/else and switch statements
chop()
unset()
variable
18. To assign keys to the values in an array
HTTP
boolean
Error
array()
19. Asynchronous Javascript And XML
AJAX
Parse error
+
error_reporting (E_ALL | E_STRICT)
20. a type with two possible values: true and false
XML
sort()
boolean
1
21. Active Server Pages
===
ASP
==
precedence
22. Used to check if a variable has a valid numerical value; strings with numerical values pass.
Parse error
is_numeric()
predefined
underscores
23. 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
24. The name of the #! used to designate the location of the PHP binary
<<
Warning
Shebang
for ($i = 0; $i < count($array); $i++) {statement(s);}
25. bitwise AND
htmlspecialchars()
Array
&
.=
26. Function used to find the absolute value of a number or numeric variable
abs()
error_reporting (E_ALL & -E_NOTICE)
GET
<?php
27. What You See Is What You Get
decimal
variable
wordwrap()
WYSIWYG
28. A conditional or loop is a ________________.
HTTP
control structure
error_reporting (E_ALL | E_STRICT)
^
29. container of ordered data elements
the dollar sign $
Array
array_merge()
general
30. To determine the amount of elements in an array
true
shuffle()
mysql_fetch_array()
count()
31. Function used to convert new lines in a variable from a form to <br /> tags so that the data can be formatted correctly.
preg_match()
Notice
nl2br()
AJAX
32. The order of operations.
precedence
abs()
$varname[key]
single quotes
33. PHP has two conditional: if and ______.
switch
negative numbers
0
defined()
34. The seven main SQL (structured query language) functions are alter - create - delete - _______ - insert - select - update
client-side programing
!= inequality
drop
<<
35. $_SERVER - $_POST - $_GET - $_COOKIE - $_SESSION - $_ENV; special arrays.
superglobal
Parse error
strtok()
SEO
36. Used to remove any white space - spaces or newlines or tabs - from the beginning and end of a string - not the middle.
addslashes()
trim()
the escape character ''
strlen()
37. Used to find the amount of words in a string.
the dollar sign $
true
str_word_count()
reassign
38. any programing language where the script is parsed on the server
if/elseif/else and switch statements
abs()
server-side programing
AJAX
39. To reorganise the array randomly
count()
shuffle()
DTD
$_SESSION[]
40. An array whose keys are numbers.
indexed array
control structure
curly braces; ${$total}
SGML
41. The prefix for a dynamic variable - also known as a variable variable
$$
shuffle()
XOR
superglobal
42. Use _______ for passwords or pages that would not be bookmarked or pages that require security.
POST
array_merge()
not
Object
43. 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}
abs()
$dbc = mysql_connect(hostname, username, password)
precedence
44. The three types of loops in PHP are: for - while - ____.
is_numeric()
foreach
include() and require()
Notice
45. To get time data
$varname[key]
date()
chop()
POST
46. container of both data and code
^
html_entity_decode()
.=
Object
47. To iterate over the values of an array
for ($i = 0; $i < count($array); $i++) {statement(s);}
rsort()
foreach
.=
48. Online applications and resources which are available to the general public with very few restrictions
precedence
Constant
function error_reporting()
open source
49. any programing language where the user must support the language the script is written in
array()
str_ireplace()
AJAX
client-side programing
50. This will show all error reporting except for notice errors.
preg_split()
octal
error_reporting (E_ALL & -E_NOTICE)
0