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. Alias of rtrim()
arsort()
PHP
variable
chop()
2. Besides GET and POST ________ can be used to access data but $_POST and $_GET are more precise and therefore preferable.
$$
$_REQUEST
html_entity_decode()
function error_reporting()
3. To reorganise the array randomly
shuffle()
htmlentities()
general
chr()
4. Shorthand used to increment and decrement
getrandmax()
round() Function
chop()
$var++ and $var
5. a storage location in the computer's memory that has a type & a name and a contents
Shebang
$array[] = item
abs()
variable
6. any programing language where the user must support the language the script is written in
client-side programing
date()
integer
str_ireplace()
7. The output of var_export((float)array());
rsort()
0
drop
predefined
8. Document Type Definitions
urlencode()
str_word_count()
DTD
drop
9. _______ is a comparison operator
!= inequality
+
array_merge()
define()
10. To iterate over the values of an array
defined()
SGML
float
for ($i = 0; $i < count($array); $i++) {statement(s);}
11. leading zero: 0100 or 0567
null
if/elseif/else and switch statements
negative numbers
octal
12. container of both data and code
round() Function
error_reporting (E_ALL)
predefined
Object
13. An array whose keys are numbers.
shuffle()
indexed array
double quotes
the period; .
14. $_SERVER - $_POST - $_GET - $_COOKIE - $_SESSION - $_ENV; special arrays.
$_SESSION[]
superglobal
variable
index
15. To close a connection between a database
statement
foreach
<?php
mysql_close($dbc)
16. used to round numeric values.
preg_replace()
function
round() Function
$dbc = mysql_connect(hostname, username, password)
17. bitwise right shift
numbers
mysql_fetch_array()
>>
date()
18. Use ______ when there are no variables in the string
single quotes
not
Hex
ksort()
19. allows you to split strings based on more complex rules
preg_split()
client-side programing
asort()
htmlentities()
20. The three types of loops in PHP are: for - while - ____.
string
precedence
foreach
HTTP
21. To reset an array _______ the array() function to the array
HTTP
indexed array
reassign
control structure
22. To sort the values while maintaining the correlation between each value and its key
loops
strtok()
ksort()
asort()
23. Function that contains the highest value that rand() can have randomly
parentheses
shuffle()
getrandmax()
mysql_fetch_array()
24. either hasn't yet been set or is assigned NULL value
null
number_format()
rsort()
foreach
25. Used to find the length of a string
array()
strlen()
html_entity_decode()
ini_set ('display_errors', 1)
26. Used to encrypt values - it is a one-way encryption method
ceil()
$_REQUEST
crypt()
for ($i = 0; $i < count($array); $i++) {statement(s);}
27. Leading 0x: 0x13F or 0xA23
mysql_fetch_array()
integer
<<
Hex
28. The name of the #! used to designate the location of the PHP binary
Object
decimal
ceil()
Shebang
29. To assign keys to the values in an array
array()
fopen()
$_GET[]
isset()
30. This will show all error reporting.
define()
error_reporting (E_ALL)
===
error_reporting (E_ALL & -E_NOTICE)
31. Use ________ to have multiple quotations in one string
PHP
the escape character ''
Hex
list()
32. Control structure that continue exit - they perform specific statements for a determined number of iterations.
$_SESSION[]
error_reporting (E_ALL & -E_NOTICE)
E_STRICT
loops
33. The ouput of var_export((bool)"NULL");
POST
strtok()
htmlspecialchars()
true
34. EXtensible Markup Language
array()
XML
client-side programing
round() Function
35. Returns a string with backslashes in front of the specified characters
Parse error
addcslashes()
float
boolean
36. To append elements to an array - this will assign item to the next available index; associative arrays get messy.
urlencode()
decimal
$array[] = item
double quotes
37. _________ can be used in conditional statements to set precedence
htmlentities()
null
htmlspecialchars()
parentheses
38. Returns an array that corresponds to the fetched row of MySQL data and moves the internal data pointer ahead
strlen()
mysql_fetch_array()
negative numbers
client-side programing
39. The syntax for connecting to a database
$dbc = mysql_connect(hostname, username, password)
HTML
mysql
control structure
40. Uses two arguments: constant name and constant definition
strtok()
html_entity_decode()
define()
single quotes
41. Returns a character from a specified ASCII value
chr()
the period; .
strip_tags()
E_STRICT
42. To sort by the keys while maintaining the correlation between the key and its value
rsort()
Notice
ksort()
preg_match()
43. 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.
is_numeric()
error_reporting (E_ALL | E_STRICT)
0
isset()
44. To merge arrays
addcslashes()
array_merge()
error_reporting (E_ALL & -E_NOTICE)
Shebang
45. Hypertext Preprocessor - a server-side programing language used to create webpages
include() and require()
Error
addcslashes()
PHP
46. To refer to an element in a multidimensional array list the indices in order of _____ to more precise;
XML
loops
precedence
general
47. To assign array element values to individual variables
HTTP
foreach
preg_replace()
list()
48. To check if a constant is already declared
loops
defined()
SGML
array
49. Similar to mysql_fetch_array() - but cannot be accessed by integer offset
server-side programing
preg_match()
array_merge()
mysql_fetch_object()
50. The prefix for a dynamic variable - also known as a variable variable
$$
$_GET[]
null
XML