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. Used to replace a substring with another string - it is not case-sensitive.
server-side programing
str_ireplace()
$_POST[]
WYSIWYG
2. Used to find the amount of words in a string.
nl2br()
str_word_count()
count()
not
3. To remove all HTML and PHP tags.
open source
if/elseif/else and switch statements
strip_tags()
0
4. To set up error reporting
decimal
$$
function error_reporting()
boolean
5. addition
HTTP
+
foreach
sort()
6. Online applications and resources which are available to the general public with very few restrictions
open source
for ($i = 0; $i < count($array); $i++) {statement(s);}
decimal
mysql_close($dbc)
7. either hasn't yet been set or is assigned NULL value
Object
strip_tags()
null
Array
8. identity
list()
===
htmlspecialchars()
isset()
9. Asynchronous Javascript And XML
strip_tags()
$_REQUEST
AJAX
bin2hex()
10. Leading 0x: 0x13F or 0xA23
Hex
POST
define()
the escape character ''
11. Use ______ when there are no variables in the string
single quotes
+
$varname[key]
<<
12. a line of information that can be stored in a variable or used in a function or statement
string
curly braces; ${$total}
AJAX
Notice
13. container of both data and code
Object
+= or -= or *= or /=
PHP
error_reporting (E_ALL)
14. a positive or negative number
array()
bin2hex()
unset()
integer
15. Creates a pointer to a file with the declared mode (read - write -etc.).
empty()
fopen()
statement
getrandmax()
16. bitwise AND
&
not
single quotes
associative array
17. To find how many substrings are in a string
error_reporting (E_ALL & -E_NOTICE)
substr_count()
isset()
loops
18. To refer to an element in a multidimensional array list the indices in order of _____ to more precise;
general
mysql_fetch_array()
Constant
===
19. To sort values of an array in reversed order
define()
POST
^
rsort()
20. To iterate over the values of an array
for ($i = 0; $i < count($array); $i++) {statement(s);}
underscores
define()
$_POST[]
21. Control structures that break exit
single quotes
Parse error
if/elseif/else and switch statements
predefined
22. Use ______ when a variable contains any amount of variables; in general.
string
addslashes()
boolean
double quotes
23. _________ can be used in conditional statements to set precedence
parentheses
control structure
open source
htmlentities()
24. 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
25. A data structure that can hold a number of items of data of the same type eg. a list of names
switch
single quotes
array
string
26. Predefined constants such as __LINE__ or __FILE__ or __FUNCTION__ or __CLASS__ and __METHOD__
htmlentities()
curly braces
array()
Magic Constant
27. Used to check if a given variable has an "empty" value - no value or 0 or FALSE.
empty()
nl2br()
sql
crypt()
28. Function used to round up to the highest integer
empty()
asort()
POST
ceil()
29. ___________ can be used with substr() to count backward
negative numbers
strtok()
Parse error
0
30. signed integer
$dbc = mysql_connect(hostname, username, password)
foreach
$$
int
31. Similar to mysql_fetch_array() - but cannot be accessed by integer offset
strlen()
mysql_fetch_object()
E_STRICT
HTML
32. This error arises from misusing a function.
1
Warning
round() Function
ASP
33. a storage location in the computer's memory that has a type & a name and a contents
str_word_count()
unset()
variable
list()
34. searches the subject for matches to a given pattern replaced with the given replacement text
$_REQUEST
preg_replace()
decimal
ksort()
35. Used to check if a variable has a valid numerical value; strings with numerical values pass.
the escape character ''
substr_count()
is_numeric()
array
36. This fatal fatal is caused by a semantic mistake: omission of a semicolon or imbalance of quotations or parentheses or braces.
open source
Parse error
!= inequality
asort()
37. $_SERVER is a ________ variable.
==
$array[] = item
predefined
include() and require()
38. Control structure that continue exit - they perform specific statements for a determined number of iterations.
echo
loops
mysql
server-side programing
39. To check if a constant is already declared
defined()
GET
HTTP
+= or -= or *= or /=
40. Function that contains the highest value that rand() can have randomly
0
getrandmax()
$_GET[]
<<
41. any programing language where the user must support the language the script is written in
.=
boolean
client-side programing
chop()
42. An array of variables passed in the URL
mysql_fetch_object()
$_GET[]
the escape character ''
XOR
43. To iterate over the keys and values of an array
strtok()
float
$dbc = mysql_connect(hostname, username, password)
foreach loop
44. Hyper Text Markup Language
XML
rand()
Error
HTML
45. To delete a variable or an element of an array
SGML
unset()
rsort()
define()
46. To include files - _______ will give errors and _________ will terminate execution().
==
include() and require()
$$
SGML
47. the most basic function in PHP used to output information to the page
XML
Parse error
echo
SGML
48. signed floating-point value
control structure
WYSIWYG
str_ireplace()
float
49. Operators used to operate and assign
the escape character ''
+= or -= or *= or /=
loops
str_word_count()
50. standard notation
array()
decimal
loops
ceil()