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
function
rsort()
numbers
HTML
2. Used to find the length of a string
html_entity_decode()
strlen()
the escape character ''
mysql
3. container of both data and code
Object
nl2br()
^
numbers
4. Function used to round down to the lowest integer
PHP
function
arsort()
floor()
5. Variable names can begin with __________
underscores
open source
the period; .
$dbc = mysql_connect(hostname, username, password)
6. Used to create a substring (referred to as a token) from a larger string
strtok()
GET
unset()
sql
7. identity
Parse error
empty()
===
wordwrap()
8. To refer to an element in a multidimensional array list the indices in order of _____ to more precise;
>>
number_format()
abs()
general
9. EXtensible Markup Language
XML
unset()
Parse error
Hex
10. To determine the amount of elements in an array
underscores
count()
define()
$_POST[]
11. Function can you use to format a number with commas
drop
number_format()
.=
WYSIWYG
12. This will show all error reporting.
drop
statement
array()
error_reporting (E_ALL)
13. To get time data
$varname[key]
date()
>>
single quotes
14. An array whose keys are numbers.
indexed array
AJAX
crypt()
date()
15. Use ________ to have multiple quotations in one string
$_POST[]
defined()
client-side programing
the escape character ''
16. To counter htmlentities()
rsort()
html_entity_decode()
Array
bin2hex()
17. Used to check if a variable has a valid numerical value; strings with numerical values pass.
list()
function
is_numeric()
wordwrap()
18. Alias of rtrim()
reassign
+= or -= or *= or /=
octal
chop()
19. Hyper Text Transfer Protocol
asort()
Hex
HTTP
addcslashes()
20. container of ordered data elements
Array
$_REQUEST
HTML
double quotes
21. To create an array
array()
E_STRICT
floor()
defined()
22. any programing language where the script is parsed on the server
server-side programing
$_GET[]
abs()
define()
23. Control structures that break exit
if/elseif/else and switch statements
$_REQUEST
define()
array
24. Tag to begin a php script
associative array
<?php
chop()
Array
25. Operators used to operate and assign
shuffle()
+= or -= or *= or /=
^
ksort()
26. To close a connection between a database
^
mysql_close($dbc)
float
HTML
27. The four main error types are:Notice - Warning - ________ and Error.
Parse error
open source
if/elseif/else and switch statements
string
28. The prefix for a dynamic variable - also known as a variable variable
mysql_close($dbc)
decimal
$$
rsort()
29. The name of the #! used to designate the location of the PHP binary
Magic Constant
single quotes
true
Shebang
30. To iterate over the keys and values of an array
foreach loop
str_word_count()
ini_set ('display_errors', 1)
boolean
31. Function used to convert new lines in a variable from a form to <br /> tags so that the data can be formatted correctly.
mysql_close($dbc)
nl2br()
if/elseif/else and switch statements
Hex
32. Leading 0x: 0x13F or 0xA23
mysql_fetch_array()
string
Hex
$_GET[]
33. Creates a pointer to a file with the declared mode (read - write -etc.).
>>
fopen()
boolean
HTTP
34. Function used to round up to the highest integer
Parse error
abs()
not
ceil()
35. The ouput of var_export((bool)"NULL");
true
include() and require()
predefined
the escape character ''
36. a storage location in the computer's memory that has a type & a name and a contents
isset()
htmlentities()
variable
float
37. Control structure that continue exit - they perform specific statements for a determined number of iterations.
loops
<<
SEO
double quotes
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. Used to check if a given variable has an "empty" value - no value or 0 or FALSE.
integer
abs()
number_format()
empty()
40. Define(NAME,value)
drop
defined()
Constant
0
41. Online applications and resources which are available to the general public with very few restrictions
html_entity_decode()
function error_reporting()
number_format()
open source
42. To get over quotation marks while using arrays
boolean
E_STRICT
XML
curly braces
43. Used to remove any white space - spaces or newlines or tabs - from the beginning and end of a string - not the middle.
arsort()
trim()
preg_replace()
variable
44. A conditional or loop is a ________________.
control structure
the period; .
associative array
string
45. Function that contains the highest value that rand() can have randomly
$_SESSION[]
getrandmax()
DTD
defined()
46. signed floating-point value
float
predefined
asort()
Magic Constant
47. function Function used to create a random number
wordwrap()
string
rand()
<?php
48. To assign array element values to individual variables
array()
list()
decimal
nl2br()
49. This will not show error reporting - it will be turned off.
error_reporting (0)
Notice
0
double quotes
50. Converts a string of ASCII characters to hexadecimal values
define()
addslashes()
foreach
bin2hex()