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. Use ______ when there are no variables in the string
Shebang
isset()
Parse error
single quotes
2. Function used to round down to the lowest integer
floor()
foreach
unset()
true
3. a line of information that can be stored in a variable or used in a function or statement
$_REQUEST
HTTP
string
+
4. To check if a constant is already declared
defined()
GET
open source
chr()
5. Used to find the amount of words in a string.
date()
str_word_count()
nl2br()
control structure
6. Tag to begin a php script
?>
<?php
ceil()
error_reporting (E_ALL)
7. Function used to find the absolute value of a number or numeric variable
trim()
true
count()
abs()
8. To set up error reporting
SEO
echo
function error_reporting()
ASP
9. Use ______ when a variable contains any amount of variables; in general.
floor()
double quotes
underscores
array()
10. To include files - _______ will give errors and _________ will terminate execution().
include() and require()
sort()
mysql_fetch_array()
string
11. Uses two arguments: constant name and constant definition
define()
>>
str_word_count()
addcslashes()
12. Hypertext Preprocessor - a server-side programing language used to create webpages
crypt()
Object
indexed array
PHP
13. To create an array
empty()
string
array()
0
14. $_SERVER is a ________ variable.
predefined
floor()
Parse error
addslashes()
15. The syntax for connecting to a database
$var++ and $var
html_entity_decode()
$dbc = mysql_connect(hostname, username, password)
chr()
16. This fatal error arises from memory allocation problem.
HTML
for ($i = 0; $i < count($array); $i++) {statement(s);}
double quotes
Error
17. allows you to split strings based on more complex rules
fopen()
preg_split()
curly braces
ksort()
18. An array whose keys are strings; also known as a hash.
^
define()
number_format()
associative array
19. equivalence
error_reporting (E_ALL | E_STRICT)
PHP
$_SESSION[]
==
20. To sort values of an array in reversed order
reassign
list()
rsort()
foreach loop
21. Shorthand used to increment and decrement
strip_tags()
$var++ and $var
switch
integer
22. To sort by the keys while maintaining the correlation between the key and its value
curly braces
ksort()
XOR
not
23. Use ______ for search engines or catalogued pages or pages that would be bookmarked.
<<
strip_tags()
AJAX
GET
24. Standard Generalized Markup Language
the escape character ''
loops
rsort()
SGML
25. Define(NAME,value)
error_reporting (0)
Constant
Object
!= inequality
26. To remove all HTML and PHP tags.
strip_tags()
int
index
open source
27. Operators used to operate and assign
+= or -= or *= or /=
ksort()
Magic Constant
GET
28. used to round numeric values.
DTD
round() Function
predefined variable
define()
29. Predefined constants such as __LINE__ or __FILE__ or __FUNCTION__ or __CLASS__ and __METHOD__
floor()
define()
Magic Constant
PHP
30. The seven main error reporting constants are: E_NOTICE - E_WARNING - E_PARSE - E_ERROR - E_ALL - _____ - E_DEPRECATED
foreach loop
E_STRICT
wordwrap()
array()
31. To counter htmlentities()
ceil()
mysql_fetch_object()
statement
html_entity_decode()
32. standard notation
true
function
decimal
HTTP
33. Creates a pointer to a file with the declared mode (read - write -etc.).
asort()
open source
strtok()
fopen()
34. Returns a character from a specified ASCII value
the dollar sign $
chr()
preg_split()
str_ireplace()
35. Function that contains the highest value that rand() can have randomly
getrandmax()
htmlentities()
html_entity_decode()
single quotes
36. searches the subject for matches to a given pattern replaced with the given replacement text
list()
addslashes()
preg_replace()
ceil()
37. _______ is a comparison operator
predefined variable
GET
!= inequality
POST
38. signed floating-point value
float
count()
date()
is_numeric()
39. To reorganise the array randomly
ksort()
associative array
shuffle()
!= inequality
40. An array of variables passed with <input /> data
$_POST[]
mysql_close($dbc)
==
defined()
41. An array of variables passed in the URL
echo
error_reporting (E_ALL | E_STRICT)
$_GET[]
Array
42. A data structure that can hold a number of items of data of the same type eg. a list of names
bin2hex()
integer
Parse error
array
43. Control structure that continue exit - they perform specific statements for a determined number of iterations.
HTTP
WYSIWYG
loops
E_STRICT
44. leading zero: 0100 or 0567
error_reporting (0)
Hex
control structure
octal
45. any programing language where the user must support the language the script is written in
Magic Constant
client-side programing
$var++ and $var
preg_replace()
46. The output of var_export((float)array());
Magic Constant
drop
numbers
0
47. Returns a string with backslashes in front of predefined characters
preg_match()
DTD
date()
addslashes()
48. ___________ can be used with substr() to count backward
mysql
negative numbers
Warning
+
49. The prefix for a dynamic variable - also known as a variable variable
is_numeric()
preg_replace()
$$
PHP
50. When used the value can be passed safely through the URL (GET).
predefined
unset()
urlencode()
define()