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. This fatal fatal is caused by a semantic mistake: omission of a semicolon or imbalance of quotations or parentheses or braces.
curly braces; ${$total}
ini_set ('display_errors', 1)
Parse error
true
2. To merge arrays
array_merge()
single quotes
number_format()
preg_replace()
3. Besides GET and POST ________ can be used to access data but $_POST and $_GET are more precise and therefore preferable.
include() and require()
Notice
switch
$_REQUEST
4. Standard Generalized Markup Language
preg_match()
SGML
reassign
wordwrap()
5. Function used to convert new lines in a variable from a form to <br /> tags so that the data can be formatted correctly.
mysql
nl2br()
the period; .
Hex
6. Function used to round down to the lowest integer
error_reporting (E_ALL)
associative array
floor()
preg_match()
7. To remove all HTML and PHP tags.
strip_tags()
Array
Constant
$dbc = mysql_connect(hostname, username, password)
8. any programing language where the script is parsed on the server
server-side programing
number_format()
preg_split()
not
9. $_SERVER is a ________ variable.
fopen()
addslashes()
reassign
predefined
10. Used to check if a given variable has an "empty" value - no value or 0 or FALSE.
$_GET[]
loops
double quotes
empty()
11. addition
XML
+
html_entity_decode()
boolean
12. Hypertext Preprocessor - a server-side programing language used to create webpages
array_merge()
PHP
include() and require()
substr_count()
13. Leading 0x: 0x13F or 0xA23
Hex
array()
the period; .
POST
14. Use ______ when a variable contains any amount of variables; in general.
mysql
define()
double quotes
HTTP
15. Tag to end a php script
defined()
<<
?>
html_entity_decode()
16. To sort the values while maintaining the correlation between each value and its key - in reversed order
$_REQUEST
precedence
arsort()
if/elseif/else and switch statements
17. Returns a character from a specified ASCII value
html_entity_decode()
chr()
urlencode()
wordwrap()
18. Used to display errors in a particular script - should be placed at top of script.
19. To get time data
date()
foreach loop
curly braces; ${$total}
wordwrap()
20. Predefined constants such as __LINE__ or __FILE__ or __FUNCTION__ or __CLASS__ and __METHOD__
boolean
indexed array
Magic Constant
addslashes()
21. Creates a pointer to a file with the declared mode (read - write -etc.).
Parse error
mysql_close($dbc)
Magic Constant
fopen()
22. Hyper Text Transfer Protocol
null
HTTP
array
Magic Constant
23. To reset an array _______ the array() function to the array
reassign
AJAX
foreach
sort()
24. Define(NAME,value)
$_POST[]
preg_match()
Constant
unset()
25. The output of var_export((float)array(0));
$$
curly braces; ${$total}
1
urlencode()
26. Used to create a substring (referred to as a token) from a larger string
statement
+= or -= or *= or /=
htmlentities()
strtok()
27. a database which is best supported by PHP
drop
0
mysql
underscores
28. To iterate over the values of an array
for ($i = 0; $i < count($array); $i++) {statement(s);}
sql
decimal
empty()
29. standard notation
decimal
strlen()
$$
HTML
30. PHP has two conditional: if and ______.
Error
switch
the period; .
curly braces
31. Asynchronous Javascript And XML
htmlentities()
$_GET[]
AJAX
Parse error
32. a storage location in the computer's memory that has a type & a name and a contents
variable
error_reporting (0)
html_entity_decode()
negative numbers
33. function Function used to create a random number
1
string
abs()
rand()
34. The seven main error reporting constants are: E_NOTICE - E_WARNING - E_PARSE - E_ERROR - E_ALL - _____ - E_DEPRECATED
count()
open source
predefined variable
E_STRICT
35. All variables must begin with _________.
Shebang
define()
client-side programing
the dollar sign $
36. the most basic function in PHP used to output information to the page
error_reporting (E_ALL)
echo
integer
asort()
37. This fatal error arises from memory allocation problem.
defined()
Object
foreach loop
Error
38. Online applications and resources which are available to the general public with very few restrictions
open source
general
drop
array_merge()
39. Returns an array that corresponds to the fetched row of MySQL data and moves the internal data pointer ahead
mysql_fetch_array()
boolean
predefined
control structure
40. To sort values of an array without regard to the keys
curly braces
array()
crypt()
sort()
41. To sort the values while maintaining the correlation between each value and its key
string
is_numeric()
asort()
the escape character ''
42. Control structure that continue exit - they perform specific statements for a determined number of iterations.
loops
float
sql
ASP
43. To word wrap after a certain amount of characters.
include() and require()
function error_reporting()
drop
wordwrap()
44. _____ is a logical operator
0
XOR
include() and require()
mysql_fetch_array()
45. To assign array element values to individual variables
error_reporting (E_ALL)
list()
wordwrap()
nl2br()
46. To reorganise the array randomly
shuffle()
date()
sql
ASP
47. To assign keys to the values in an array
open source
loops
array
array()
48. equivalence
true
==
WYSIWYG
error_reporting (0)
49. $_POST Data sent using POST found is sent to _______
integer
ASP
predefined variable
strlen()
50. To close a connection between a database
nl2br()
mysql_close($dbc)
drop
strtok()