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. Control structure that continue exit - they perform specific statements for a determined number of iterations.
^
loops
strtok()
E_STRICT
2. Operators used to operate and assign
+= or -= or *= or /=
foreach
reassign
$$
3. a type with two possible values: true and false
boolean
the period; .
SEO
bin2hex()
4. To declare a constant
Hex
number_format()
str_ireplace()
define()
5. Function used to convert new lines in a variable from a form to <br /> tags so that the data can be formatted correctly.
nl2br()
addcslashes()
strtok()
general
6. Returns a string with backslashes in front of the specified characters
chr()
list()
sql
addcslashes()
7. This fatal fatal is caused by a semantic mistake: omission of a semicolon or imbalance of quotations or parentheses or braces.
foreach
control structure
GET
Parse error
8. Similar to mysql_fetch_array() - but cannot be accessed by integer offset
chr()
mysql_fetch_object()
if/elseif/else and switch statements
strlen()
9. To iterate over the keys and values of an array
chr()
crypt()
int
foreach loop
10. $_SERVER is a ________ variable.
fopen()
!= inequality
unset()
predefined
11. returns the number of matches found by a given search string under this format...
preg_match()
true
arsort()
index
12. Use ______ when there are no variables in the string
open source
Notice
indexed array
single quotes
13. This fatal error arises from memory allocation problem.
numbers
array_merge()
Error
parentheses
14. Creates a pointer to a file with the declared mode (read - write -etc.).
fopen()
bin2hex()
numbers
the period; .
15. Returns a string with backslashes in front of predefined characters
boolean
sort()
statement
addslashes()
16. bitwise left shift
fopen()
mysql
POST
<<
17. An array of variables passed in the URL
SGML
$_GET[]
&
str_ireplace()
18. The four main error types are:Notice - Warning - ________ and Error.
Parse error
array()
addcslashes()
int
19. To merge arrays
function
crypt()
include() and require()
array_merge()
20. Besides GET and POST ________ can be used to access data but $_POST and $_GET are more precise and therefore preferable.
Parse error
array
$_REQUEST
===
21. The concatenation assignment operator?
array()
.=
Error
sql
22. To refer to an item in an array
nl2br()
indexed array
$varname[key]
Object
23. The syntax for connecting to a database
$dbc = mysql_connect(hostname, username, password)
preg_split()
ksort()
open source
24. Use _______ for passwords or pages that would not be bookmarked or pages that require security.
POST
double quotes
the dollar sign $
HTTP
25. Used to convert all HTML tags into their entity versions.
html_entity_decode()
htmlentities()
define()
DTD
26. To append elements to an array - this will assign item to the next available index; associative arrays get messy.
array_merge()
DTD
negative numbers
$array[] = item
27. The concatenation operator?
string
decimal
trim()
the period; .
28. The ouput of var_export((bool)"NULL");
true
+= or -= or *= or /=
mysql
Array
29. EXtensible Markup Language
XML
echo
array()
switch
30. container of ordered data elements
is_numeric()
octal
int
Array
31. To sort the values while maintaining the correlation between each value and its key - in reversed order
arsort()
predefined variable
str_word_count()
variable
32. a storage location in the computer's memory that has a type & a name and a contents
chop()
variable
nl2br()
error_reporting (0)
33. Used to check if a variable has a valid numerical value; strings with numerical values pass.
predefined
octal
is_numeric()
>>
34. Hyper Text Markup Language
HTML
precedence
<<
open source
35. _______ is a comparison operator
$array[] = item
WYSIWYG
!= inequality
list()
36. standard notation
round() Function
decimal
fopen()
echo
37. The seven main error reporting constants are: E_NOTICE - E_WARNING - E_PARSE - E_ERROR - E_ALL - _____ - E_DEPRECATED
array()
E_STRICT
strtok()
predefined
38. 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
39. Converts a string of ASCII characters to hexadecimal values
round() Function
bin2hex()
chop()
^
40. $_POST and $_GET are ________ variables.
predefined
$var++ and $var
!= inequality
crypt()
41. TRUE or FALSE
the dollar sign $
!= inequality
Error
boolean
42. An array of variables passed with <input /> data
Constant
$_POST[]
the escape character ''
negative numbers
43. To word wrap after a certain amount of characters.
wordwrap()
array()
$array[] = item
variable
44. To delete a variable or an element of an array
indexed array
$$
open source
unset()
45. Use ______ for search engines or catalogued pages or pages that would be bookmarked.
preg_match()
the dollar sign $
array()
GET
46. any programing language where the user must support the language the script is written in
addslashes()
include() and require()
client-side programing
ini_set ('display_errors', 1)
47. To close a connection between a database
mysql_close($dbc)
mysql
if/elseif/else and switch statements
date()
48. To sort the values while maintaining the correlation between each value and its key
function error_reporting()
asort()
PHP
shuffle()
49. When used the value can be passed safely through the URL (GET).
chr()
urlencode()
general
abs()
50. Returns a character from a specified ASCII value
int
chop()
wordwrap()
chr()