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. either hasn't yet been set or is assigned NULL value
curly braces
null
count()
AJAX
2. a positive or negative number
mysql_fetch_object()
integer
error_reporting (E_ALL | E_STRICT)
?>
3. equivalence
drop
==
double quotes
client-side programing
4. To merge arrays
array_merge()
0
$_REQUEST
+
5. signed floating-point value
function
Magic Constant
float
negative numbers
6. function Function used to create a random number
drop
Warning
rand()
define()
7. 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
8. To reorganise the array randomly
integer
curly braces; ${$total}
shuffle()
ceil()
9. Variable names cannot begin with _______
sql
open source
numbers
htmlspecialchars()
10. Hypertext Preprocessor - a server-side programing language used to create webpages
PHP
AJAX
curly braces; ${$total}
$array[] = item
11. Used to convert all HTML tags into their entity versions.
control structure
htmlentities()
the period; .
ini_set ('display_errors', 1)
12. The syntax for connecting to a database
$_POST[]
precedence
$varname[key]
$dbc = mysql_connect(hostname, username, password)
13. Uses two arguments: constant name and constant definition
define()
$_GET[]
if/elseif/else and switch statements
preg_match()
14. $_SERVER is a ________ variable.
substr_count()
predefined
superglobal
curly braces
15. addition
+
foreach
bin2hex()
preg_split()
16. This error refers to a variable with no value.
Notice
chr()
!= inequality
arsort()
17. An array whose keys are strings; also known as a hash.
htmlentities()
>>
associative array
define()
18. Tag to end a php script
SGML
function
?>
reassign
19. EXtensible Markup Language
+
client-side programing
XML
string
20. The three types of loops in PHP are: for - while - ____.
sort()
bin2hex()
foreach
mysql_fetch_object()
21. The concatenation operator?
the period; .
ASP
error_reporting (E_ALL | E_STRICT)
general
22. Returns a string with backslashes in front of predefined characters
$varname[key]
SGML
addslashes()
decimal
23. The four main error types are:Notice - Warning - ________ and Error.
strip_tags()
list()
PHP
Parse error
24. $_SERVER - $_POST - $_GET - $_COOKIE - $_SESSION - $_ENV; special arrays.
superglobal
$_GET[]
reassign
SGML
25. Tag to begin a php script
<?php
asort()
if/elseif/else and switch statements
E_STRICT
26. says 'if' this then do this 'else' do this or 'while' this do this
$array[] = item
DTD
$_POST[]
statement
27. Creates a pointer to a file with the declared mode (read - write -etc.).
function
fopen()
chr()
ini_set ('display_errors', 1)
28. a database which is best supported by PHP
mysql
foreach
date()
decimal
29. This error arises from misusing a function.
chr()
echo
Warning
array()
30. _________ can be used in conditional statements to set precedence
$_GET[]
associative array
parentheses
$dbc = mysql_connect(hostname, username, password)
31. Control structure that continue exit - they perform specific statements for a determined number of iterations.
integer
unset()
XML
loops
32. The name of the #! used to designate the location of the PHP binary
preg_replace()
>>
Shebang
reassign
33. Define(NAME,value)
predefined
?>
server-side programing
Constant
34. This will not show error reporting - it will be turned off.
error_reporting (0)
octal
$dbc = mysql_connect(hostname, username, password)
empty()
35. Used to replace a substring with another string - it is not case-sensitive.
Hex
str_ireplace()
foreach loop
negative numbers
36. To set up error reporting
wordwrap()
function error_reporting()
addslashes()
Object
37. Function used to round down to the lowest integer
array()
Object
single quotes
floor()
38. This fatal error arises from memory allocation problem.
error_reporting (E_ALL & -E_NOTICE)
single quotes
Error
numbers
39. Function used to find the absolute value of a number or numeric variable
addslashes()
floor()
strtok()
abs()
40. The ouput of var_export((bool)"NULL");
preg_split()
mysql_fetch_array()
>>
true
41. Standard Generalized Markup Language
numbers
$_REQUEST
ini_set ('display_errors', 1)
SGML
42. To get over quotation marks while using arrays
control structure
curly braces
XML
ASP
43. This will show all error reporting except for notice errors.
preg_match()
drop
error_reporting (E_ALL & -E_NOTICE)
mysql_fetch_object()
44. Variable names can begin with __________
foreach loop
negative numbers
the escape character ''
underscores
45. 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.
htmlspecialchars()
error_reporting (E_ALL | E_STRICT)
client-side programing
shuffle()
46. Online applications and resources which are available to the general public with very few restrictions
chop()
XML
open source
DTD
47. PHP has two conditional: if and ______.
htmlspecialchars()
crypt()
switch
octal
48. used to round numeric values.
==
unset()
round() Function
shuffle()
49. Returns an array that corresponds to the fetched row of MySQL data and moves the internal data pointer ahead
strtok()
addcslashes()
the dollar sign $
mysql_fetch_array()
50. To iterate over the values of an array
sql
define()
for ($i = 0; $i < count($array); $i++) {statement(s);}
integer