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 assign keys to the values in an array
strtok()
list()
array()
statement
2. Function that contains the highest value that rand() can have randomly
predefined
getrandmax()
AJAX
.=
3. Used to create a substring (referred to as a token) from a larger string
open source
error_reporting (E_ALL & -E_NOTICE)
strtok()
int
4. bitwise right shift
===
.=
>>
<<
5. To determine the amount of elements in an array
count()
reassign
negative numbers
Magic Constant
6. a type with two possible values: true and false
curly braces
array()
general
boolean
7. Used to check if a variable has a valid numerical value; strings with numerical values pass.
^
preg_replace()
sort()
is_numeric()
8. Function used to round up to the highest integer
XOR
ceil()
Magic Constant
sort()
9. collection of binary data
function error_reporting()
not
string
foreach loop
10. returns the number of matches found by a given search string under this format...
preg_match()
Constant
abs()
predefined
11. $_POST and $_GET are ________ variables.
Constant
integer
predefined
!= inequality
12. 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
13. The concatenation assignment operator?
!= inequality
addslashes()
defined()
.=
14. Used to convert all HTML tags into their entity versions.
ASP
negative numbers
htmlentities()
preg_split()
15. The order of operations.
precedence
str_word_count()
Hex
html_entity_decode()
16. says 'if' this then do this 'else' do this or 'while' this do this
the period; .
statement
mysql_fetch_object()
crypt()
17. Used to replace a substring with another string - it is not case-sensitive.
define()
str_ireplace()
HTML
htmlentities()
18. To sort values of an array in reversed order
asort()
isset()
!= inequality
rsort()
19. print $_SERVER will _____ work if you use the print function on arrays.
array
rand()
negative numbers
not
20. This will show all error reporting except for notice errors.
mysql_fetch_object()
boolean
error_reporting (E_ALL & -E_NOTICE)
+= or -= or *= or /=
21. To merge arrays
array_merge()
htmlspecialchars()
control structure
numbers
22. To sort the values while maintaining the correlation between each value and its key
==
crypt()
the period; .
asort()
23. container of ordered data elements
define()
Warning
strlen()
Array
24. bitwise AND
reassign
strlen()
Notice
&
25. Search Engine Optimization
integer
SEO
not
the period; .
26. 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)
floor()
error_reporting (0)
function error_reporting()
27. A data structure that can hold a number of items of data of the same type eg. a list of names
array
Object
1
statement
28. a language in which to make querys to a database with
the period; .
error_reporting (E_ALL & -E_NOTICE)
sql
octal
29. Use _______ for passwords or pages that would not be bookmarked or pages that require security.
$array[] = item
statement
POST
chr()
30. signed integer
$array[] = item
predefined
int
^
31. bitwise XOR
empty()
numbers
$_GET[]
^
32. Asynchronous Javascript And XML
Parse error
open source
AJAX
function error_reporting()
33. The output of var_export((float)array(0));
function
$$
1
round() Function
34. Function used to find the absolute value of a number or numeric variable
ASP
echo
abs()
variable
35. $_SERVER - $_POST - $_GET - $_COOKIE - $_SESSION - $_ENV; special arrays.
mysql_fetch_object()
strlen()
unset()
superglobal
36. TRUE or FALSE
boolean
$var++ and $var
html_entity_decode()
single quotes
37. container of both data and code
the period; .
bin2hex()
Object
server-side programing
38. Define(NAME,value)
error_reporting (E_ALL | E_STRICT)
Constant
shuffle()
$_REQUEST
39. To refer to an item in an array
$varname[key]
urlencode()
XML
crypt()
40. Used to convert certain HTML tags into their entity versions.
float
$_REQUEST
htmlspecialchars()
int
41. Document Type Definitions
the dollar sign $
DTD
boolean
mysql_fetch_array()
42. To reset an array _______ the array() function to the array
string
boolean
error_reporting (E_ALL & -E_NOTICE)
reassign
43. Function can you use to format a number with commas
shuffle()
number_format()
Constant
&
44. Used to check if a given variable has an "empty" value - no value or 0 or FALSE.
empty()
+= or -= or *= or /=
general
loops
45. The prefix for a dynamic variable - also known as a variable variable
Notice
precedence
$$
null
46. Creates a pointer to a file with the declared mode (read - write -etc.).
string
loops
fopen()
the escape character ''
47. The three types of loops in PHP are: for - while - ____.
$$
==
foreach
HTTP
48. any programing language where the script is parsed on the server
$dbc = mysql_connect(hostname, username, password)
underscores
Magic Constant
server-side programing
49. The array that stores variables specific to a user's visit
$_SESSION[]
int
POST
drop
50. To get time data
statement
date()
$varname[key]
<<