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. To sort values of an array in reversed order
null
negative numbers
rsort()
true
2. bitwise XOR
octal
function
^
open source
3. To set up error reporting
chr()
function error_reporting()
not
==
4. To append elements to an array - this will assign item to the next available index; associative arrays get messy.
html_entity_decode()
predefined
HTTP
$array[] = item
5. Alias of rtrim()
Object
chop()
date()
0
6. To sort by the keys while maintaining the correlation between the key and its value
Parse error
<<
ksort()
$_SESSION[]
7. Used to encrypt values - it is a one-way encryption method
predefined
curly braces; ${$total}
crypt()
getrandmax()
8. allows you to split strings based on more complex rules
double quotes
preg_split()
mysql_fetch_array()
associative array
9. Hypertext Preprocessor - a server-side programing language used to create webpages
getrandmax()
string
PHP
function
10. Function used to round up to the highest integer
statement
ceil()
Error
count()
11. The four main error types are:Notice - Warning - ________ and Error.
strip_tags()
Parse error
$dbc = mysql_connect(hostname, username, password)
index
12. To refer to an element in a multidimensional array list the indices in order of _____ to more precise;
<?php
boolean
general
addslashes()
13. Search Engine Optimization
substr_count()
SEO
server-side programing
ini_set ('display_errors', 1)
14. The array that stores variables specific to a user's visit
$_SESSION[]
server-side programing
nl2br()
precedence
15. Online applications and resources which are available to the general public with very few restrictions
array_merge()
array()
$array[] = item
open source
16. To reset an array _______ the array() function to the array
predefined
reassign
Warning
asort()
17. A data structure that can hold a number of items of data of the same type eg. a list of names
the dollar sign $
error_reporting (E_ALL & -E_NOTICE)
array
chr()
18. standard notation
bin2hex()
preg_split()
decimal
htmlspecialchars()
19. To counter htmlentities()
html_entity_decode()
general
^
crypt()
20. To merge arrays
str_ireplace()
array_merge()
foreach
Constant
21. An array whose keys are strings; also known as a hash.
associative array
strtok()
boolean
$_POST[]
22. Use ______ when a variable contains any amount of variables; in general.
predefined
addcslashes()
double quotes
nl2br()
23. To get over quotation marks while using arrays
the dollar sign $
Parse error
date()
curly braces
24. Operators used to operate and assign
+= or -= or *= or /=
reassign
empty()
statement
25. 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.
==
error_reporting (E_ALL | E_STRICT)
addcslashes()
E_STRICT
26. A conditional or loop is a ________________.
control structure
single quotes
include() and require()
addslashes()
27. Asynchronous Javascript And XML
AJAX
<?php
true
error_reporting (E_ALL)
28. Returns an array that corresponds to the fetched row of MySQL data and moves the internal data pointer ahead
server-side programing
define()
mysql_fetch_array()
mysql
29. Similar to mysql_fetch_array() - but cannot be accessed by integer offset
$$
mysql_fetch_object()
for ($i = 0; $i < count($array); $i++) {statement(s);}
substr_count()
30. bitwise AND
sql
sort()
&
single quotes
31. any programing language where the script is parsed on the server
htmlentities()
crypt()
server-side programing
null
32. Standard Generalized Markup Language
SGML
crypt()
boolean
Magic Constant
33. Uses two arguments: constant name and constant definition
crypt()
Error
error_reporting (E_ALL & -E_NOTICE)
define()
34. container of ordered data elements
rsort()
PHP
Array
WYSIWYG
35. a database which is best supported by PHP
number_format()
mysql
numbers
for ($i = 0; $i < count($array); $i++) {statement(s);}
36. collection of binary data
<?php
superglobal
empty()
string
37. The seven main SQL (structured query language) functions are alter - create - delete - _______ - insert - select - update
sql
$dbc = mysql_connect(hostname, username, password)
urlencode()
drop
38. returns the number of matches found by a given search string under this format...
HTML
curly braces
negative numbers
preg_match()
39. Used to check if a variable has any value (including 0 or FALSE or an empty string).
DTD
curly braces
isset()
curly braces; ${$total}
40. The three types of loops in PHP are: for - while - ____.
$$
<<
GET
foreach
41. This fatal error arises from memory allocation problem.
function
nl2br()
Error
the dollar sign $
42. Used to convert all HTML tags into their entity versions.
$_GET[]
open source
htmlentities()
superglobal
43. identity
null
double quotes
===
XML
44. An array of variables passed in the URL
$_GET[]
preg_split()
ASP
define()
45. This error refers to a variable with no value.
numbers
Notice
PHP
===
46. To delete a variable or an element of an array
mysql_fetch_object()
client-side programing
unset()
&
47. container of both data and code
Hex
Object
decimal
AJAX
48. Used to check if a given variable has an "empty" value - no value or 0 or FALSE.
addcslashes()
+= or -= or *= or /=
curly braces
empty()
49. a line of information that can be stored in a variable or used in a function or statement
isset()
!= inequality
Notice
string
50. Returns a string with backslashes in front of the specified characters
variable
WYSIWYG
addcslashes()
Object