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. Active Server Pages
1
$dbc = mysql_connect(hostname, username, password)
str_word_count()
ASP
2. To close a connection between a database
floor()
predefined
mysql_close($dbc)
indexed array
3. _________ can be used in conditional statements to set precedence
==
preg_replace()
Object
parentheses
4. To refer to an element in a multidimensional array list the indices in order of _____ to more precise;
strtok()
general
$_REQUEST
superglobal
5. Returns an array that corresponds to the fetched row of MySQL data and moves the internal data pointer ahead
Warning
mysql_fetch_array()
decimal
ceil()
6. Used to create a substring (referred to as a token) from a larger string
+= or -= or *= or /=
isset()
strtok()
>>
7. To word wrap after a certain amount of characters.
wordwrap()
function error_reporting()
mysql
string
8. The three types of loops in PHP are: for - while - ____.
numbers
arsort()
foreach
associative array
9. Uses two arguments: constant name and constant definition
date()
error_reporting (E_ALL)
predefined variable
define()
10. Tag to begin a php script
<?php
unset()
parentheses
ini_set ('display_errors', 1)
11. Asynchronous Javascript And XML
AJAX
preg_match()
XOR
substr_count()
12. _______ is a comparison operator
0
error_reporting (0)
!= inequality
strlen()
13. To determine the amount of elements in an array
count()
mysql
null
$_SESSION[]
14. Control structure that continue exit - they perform specific statements for a determined number of iterations.
Parse error
loops
client-side programing
curly braces; ${$total}
15. Creates a pointer to a file with the declared mode (read - write -etc.).
preg_split()
for ($i = 0; $i < count($array); $i++) {statement(s);}
not
fopen()
16. Similar to mysql_fetch_array() - but cannot be accessed by integer offset
Object
mysql_fetch_object()
switch
&
17. Variable names cannot begin with _______
predefined variable
numbers
statement
sort()
18. When used the value can be passed safely through the URL (GET).
ceil()
urlencode()
wordwrap()
rsort()
19. Returns a character from a specified ASCII value
Warning
chr()
0
abs()
20. Alias of rtrim()
arsort()
chop()
<?php
Magic Constant
21. This will show all error reporting except for notice errors.
Constant
error_reporting (E_ALL & -E_NOTICE)
sql
mysql_fetch_array()
22. Use ________ to have multiple quotations in one string
arsort()
1
urlencode()
the escape character ''
23. To create an array
drop
abs()
array()
nl2br()
24. All variables must begin with _________.
list()
the dollar sign $
define()
include() and require()
25. any programing language where the user must support the language the script is written in
for ($i = 0; $i < count($array); $i++) {statement(s);}
foreach loop
client-side programing
rand()
26. Converts a string of ASCII characters to hexadecimal values
bin2hex()
associative array
!= inequality
mysql
27. The order of operations.
function error_reporting()
SGML
precedence
for ($i = 0; $i < count($array); $i++) {statement(s);}
28. To check if a constant is already declared
array_merge()
defined()
Notice
foreach
29. Hyper Text Markup Language
HTML
abs()
the dollar sign $
HTTP
30. To set up error reporting
addcslashes()
function error_reporting()
<<
empty()
31. a positive or negative number
Magic Constant
$var++ and $var
XML
integer
32. Besides GET and POST ________ can be used to access data but $_POST and $_GET are more precise and therefore preferable.
$_REQUEST
curly braces
int
include() and require()
33. To sort values of an array in reversed order
!= inequality
rsort()
Hex
POST
34. either hasn't yet been set or is assigned NULL value
null
==
ASP
octal
35. To delete a variable or an element of an array
<?php
list()
crypt()
unset()
36. To get time data
date()
XML
$_GET[]
HTML
37. The ouput of var_export((bool)"NULL");
1
true
SEO
curly braces; ${$total}
38. To sort values of an array without regard to the keys
fopen()
decimal
sort()
html_entity_decode()
39. function Function used to create a random number
curly braces; ${$total}
SGML
ASP
rand()
40. To sort the values while maintaining the correlation between each value and its key
asort()
crypt()
rand()
associative array
41. a storage location in the computer's memory that has a type & a name and a contents
$_POST[]
strip_tags()
Magic Constant
variable
42. An array whose keys are numbers.
include() and require()
$_SESSION[]
indexed array
mysql
43. To get over quotation marks while using arrays
arsort()
==
curly braces
underscores
44. Leading 0x: 0x13F or 0xA23
echo
Hex
variable
array()
45. signed floating-point value
float
Parse error
boolean
string
46. bitwise right shift
HTTP
>>
drop
htmlentities()
47. This will not show error reporting - it will be turned off.
bin2hex()
error_reporting (0)
SEO
nl2br()
48. This error refers to a variable with no value.
Notice
ksort()
array()
statement
49. searches the subject for matches to a given pattern replaced with the given replacement text
control structure
$var++ and $var
preg_replace()
indexed array
50. a line of information that can be stored in a variable or used in a function or statement
Parse error
WYSIWYG
open source
string