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. bitwise AND
DTD
&
asort()
foreach loop
2. Define(NAME,value)
curly braces; ${$total}
integer
mysql_fetch_object()
Constant
3. To declare a constant
trim()
integer
define()
PHP
4. To determine the amount of elements in an array
SGML
server-side programing
count()
error_reporting (E_ALL)
5. PHP has two conditional: if and ______.
!= inequality
boolean
==
switch
6. $_POST Data sent using POST found is sent to _______
shuffle()
loops
1
predefined variable
7. To sort values of an array without regard to the keys
sort()
substr_count()
Notice
negative numbers
8. Used to create a substring (referred to as a token) from a larger string
shuffle()
include() and require()
strtok()
isset()
9. Variable names can begin with __________
associative array
getrandmax()
underscores
SEO
10. print $_SERVER will _____ work if you use the print function on arrays.
not
control structure
for ($i = 0; $i < count($array); $i++) {statement(s);}
Shebang
11. equivalence
predefined
reassign
==
?>
12. 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
13. Creates a pointer to a file with the declared mode (read - write -etc.).
fopen()
predefined
shuffle()
the escape character ''
14. a database which is best supported by PHP
drop
define()
mysql
ceil()
15. Tag to begin a php script
<?php
list()
array_merge()
nl2br()
16. A conditional or loop is a ________________.
double quotes
getrandmax()
include() and require()
control structure
17. The three types of loops in PHP are: for - while - ____.
Shebang
AJAX
rsort()
foreach
18. To check if a constant is already declared
Magic Constant
defined()
mysql_fetch_object()
&
19. This will show all errors that fall under E_ALL or E_STRICT - the pipe | is used for 'or' so that errors that fall under either will be shown.
.=
$varname[key]
htmlspecialchars()
error_reporting (E_ALL | E_STRICT)
20. collection of binary data
PHP
string
sql
arsort()
21. An array of variables passed in the URL
getrandmax()
wordwrap()
$_GET[]
list()
22. ___________ can be used with substr() to count backward
negative numbers
str_ireplace()
HTML
bin2hex()
23. Online applications and resources which are available to the general public with very few restrictions
open source
POST
array()
shuffle()
24. Used to convert all HTML tags into their entity versions.
htmlentities()
foreach
array()
floor()
25. Alias of rtrim()
ksort()
chop()
array()
indexed array
26. To iterate over the keys and values of an array
general
crypt()
numbers
foreach loop
27. Hypertext Preprocessor - a server-side programing language used to create webpages
urlencode()
number_format()
PHP
&
28. To iterate over the values of an array
mysql_close($dbc)
for ($i = 0; $i < count($array); $i++) {statement(s);}
AJAX
Magic Constant
29. used to round numeric values.
round() Function
defined()
curly braces
predefined variable
30. Hyper Text Transfer Protocol
function
server-side programing
addslashes()
HTTP
31. Asynchronous Javascript And XML
string
.=
float
AJAX
32. container of both data and code
precedence
DTD
+= or -= or *= or /=
Object
33. Function used to find the absolute value of a number or numeric variable
empty()
float
strlen()
abs()
34. a storage location in the computer's memory that has a type & a name and a contents
variable
nl2br()
isset()
index
35. Used to find the amount of words in a string.
&
str_word_count()
chop()
$$
36. Function can you use to format a number with commas
number_format()
XOR
mysql_fetch_array()
error_reporting (E_ALL)
37. To close a connection between a database
mysql_close($dbc)
fopen()
loops
E_STRICT
38. _____ is a logical operator
POST
error_reporting (E_ALL & -E_NOTICE)
XOR
Shebang
39. The seven main error reporting constants are: E_NOTICE - E_WARNING - E_PARSE - E_ERROR - E_ALL - _____ - E_DEPRECATED
E_STRICT
array_merge()
negative numbers
strlen()
40. Operators used to operate and assign
+= or -= or *= or /=
statement
error_reporting (E_ALL | E_STRICT)
curly braces
41. The array that stores variables specific to a user's visit
is_numeric()
fopen()
$_SESSION[]
statement
42. The four main error types are:Notice - Warning - ________ and Error.
crypt()
Parse error
error_reporting (E_ALL | E_STRICT)
curly braces; ${$total}
43. Leading 0x: 0x13F or 0xA23
Hex
Warning
$_SESSION[]
curly braces
44. Variable names cannot begin with _______
Warning
boolean
numbers
count()
45. Use ________ to have multiple quotations in one string
shuffle()
chop()
the escape character ''
defined()
46. This error arises from misusing a function.
Warning
$_SESSION[]
mysql_fetch_array()
associative array
47. $_POST and $_GET are ________ variables.
error_reporting (0)
indexed array
predefined
==
48. The concatenation assignment operator?
number_format()
.=
Magic Constant
string
49. This will not show error reporting - it will be turned off.
Object
Parse error
error_reporting (0)
loops
50. To assign keys to the values in an array
abs()
array()
sort()
negative numbers