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. Function used to round up to the highest integer
Parse error
client-side programing
ceil()
htmlspecialchars()
2. Function used to find the absolute value of a number or numeric variable
round() Function
nl2br()
abs()
Parse error
3. $_SERVER is a ________ variable.
define()
isset()
string
predefined
4. Document Type Definitions
ceil()
substr_count()
DTD
array_merge()
5. Online applications and resources which are available to the general public with very few restrictions
predefined
Parse error
DTD
open source
6. Used to replace a substring with another string - it is not case-sensitive.
str_ireplace()
ASP
$_SESSION[]
GET
7. Tag to begin a php script
shuffle()
count()
<?php
loops
8. Search Engine Optimization
string
Warning
shuffle()
SEO
9. To determine the amount of elements in an array
count()
preg_split()
$varname[key]
statement
10. This error arises from misusing a function.
Warning
if/elseif/else and switch statements
boolean
mysql_fetch_object()
11. Leading 0x: 0x13F or 0xA23
the dollar sign $
predefined
precedence
Hex
12. To declare a constant
preg_split()
preg_match()
switch
define()
13. To close a connection between a database
mysql_close($dbc)
preg_match()
sql
preg_split()
14. Alias of rtrim()
chop()
negative numbers
1
ASP
15. $_POST Data sent using POST found is sent to _______
the period; .
predefined variable
ini_set ('display_errors', 1)
underscores
16. Converts a string of ASCII characters to hexadecimal values
WYSIWYG
bin2hex()
not
reassign
17. bitwise left shift
<<
Hex
list()
float
18. To get time data
date()
int
error_reporting (E_ALL & -E_NOTICE)
echo
19. Returns a string with backslashes in front of predefined characters
ini_set ('display_errors', 1)
echo
addslashes()
underscores
20. returns the number of matches found by a given search string under this format...
predefined variable
client-side programing
error_reporting (E_ALL)
preg_match()
21. allows you to split strings based on more complex rules
!= inequality
preg_split()
is_numeric()
Parse error
22. TRUE or FALSE
urlencode()
the escape character ''
curly braces; ${$total}
boolean
23. Use _______ for passwords or pages that would not be bookmarked or pages that require security.
SGML
sql
POST
ASP
24. any programing language where the user must support the language the script is written in
trim()
HTTP
client-side programing
ksort()
25. Returns a character from a specified ASCII value
strtok()
defined()
mysql_fetch_array()
chr()
26. To reset an array _______ the array() function to the array
reassign
GET
foreach
urlencode()
27. To sort by the keys while maintaining the correlation between the key and its value
$_SESSION[]
ksort()
array()
Error
28. The seven main SQL (structured query language) functions are alter - create - delete - _______ - insert - select - update
unset()
drop
general
&
29. Used to find the length of a string
Constant
$dbc = mysql_connect(hostname, username, password)
HTML
strlen()
30. To sort the values while maintaining the correlation between each value and its key
asort()
SEO
integer
Object
31. Variable names can begin with __________
underscores
rand()
chr()
<?php
32. Used to check if a variable has any value (including 0 or FALSE or an empty string).
Notice
indexed array
Warning
isset()
33. To word wrap after a certain amount of characters.
addcslashes()
negative numbers
wordwrap()
POST
34. Use ______ for search engines or catalogued pages or pages that would be bookmarked.
DTD
GET
str_word_count()
ini_set ('display_errors', 1)
35. Active Server Pages
curly braces
sql
array()
ASP
36. To counter htmlentities()
^
html_entity_decode()
double quotes
rand()
37. Used to encrypt values - it is a one-way encryption method
crypt()
WYSIWYG
preg_replace()
foreach
38. addition
+
$_REQUEST
substr_count()
addcslashes()
39. A data structure that can hold a number of items of data of the same type eg. a list of names
array
PHP
string
+
40. _________ can be used in conditional statements to set precedence
ASP
number_format()
wordwrap()
parentheses
41. This will not show error reporting - it will be turned off.
mysql_fetch_object()
error_reporting (0)
addslashes()
error_reporting (E_ALL)
42. To delete a variable or an element of an array
nl2br()
error_reporting (E_ALL | E_STRICT)
strtok()
unset()
43. To assign array element values to individual variables
list()
underscores
function
===
44. Define(NAME,value)
curly braces
Constant
SEO
ini_set ('display_errors', 1)
45. 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
46. container of both data and code
control structure
switch
Object
trim()
47. To refer to an element in a multidimensional array list the indices in order of _____ to more precise;
control structure
general
html_entity_decode()
define()
48. To check if a constant is already declared
ksort()
XOR
defined()
+= or -= or *= or /=
49. Standard Generalized Markup Language
SGML
strip_tags()
Hex
rsort()
50. used to round numeric values.
round() Function
str_word_count()
true
error_reporting (E_ALL)