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. bitwise right shift
>>
empty()
strtok()
mysql_close($dbc)
2. To merge arrays
define()
index
array_merge()
XML
3. Operators used to operate and assign
ini_set ('display_errors', 1)
the period; .
+= or -= or *= or /=
Shebang
4. To sort the values while maintaining the correlation between each value and its key
array_merge()
the period; .
asort()
chr()
5. Used to check if a variable has any value (including 0 or FALSE or an empty string).
isset()
list()
XOR
control structure
6. standard notation
function
decimal
Shebang
server-side programing
7. EXtensible Markup Language
.=
XML
null
POST
8. _______ is a comparison operator
preg_match()
double quotes
!= inequality
fopen()
9. Used to convert all HTML tags into their entity versions.
strlen()
htmlentities()
octal
index
10. The ouput of var_export((bool)"NULL");
true
Warning
AJAX
array
11. To check if a constant is already declared
Parse error
defined()
error_reporting (E_ALL)
shuffle()
12. To determine the amount of elements in an array
count()
mysql_fetch_object()
===
Hex
13. Hyper Text Markup Language
0
HTML
HTTP
true
14. 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.
SGML
sql
1
error_reporting (E_ALL | E_STRICT)
15. used to round numeric values.
round() Function
decimal
array_merge()
substr_count()
16. The four main error types are:Notice - Warning - ________ and Error.
predefined variable
asort()
Parse error
E_STRICT
17. ____ or key is referred to for a value within an array.
bin2hex()
drop
server-side programing
index
18. To refer to an item in an array
$varname[key]
urlencode()
nl2br()
mysql_close($dbc)
19. a type with two possible values: true and false
true
Parse error
boolean
!= inequality
20. a database which is best supported by PHP
mysql
&
$_REQUEST
variable
21. says 'if' this then do this 'else' do this or 'while' this do this
echo
string
true
statement
22. any programing language where the user must support the language the script is written in
octal
rsort()
client-side programing
count()
23. Function used to find the absolute value of a number or numeric variable
not
$_POST[]
abs()
parentheses
24. bitwise AND
&
defined()
curly braces
Error
25. To find how many substrings are in a string
substr_count()
defined()
<?php
===
26. function Function used to create a random number
addcslashes()
rand()
indexed array
addslashes()
27. The name of the #! used to designate the location of the PHP binary
Shebang
asort()
double quotes
decimal
28. Use ________ to have multiple quotations in one string
<?php
numbers
defined()
the escape character ''
29. Returns a string with backslashes in front of predefined characters
addslashes()
POST
<?php
numbers
30. This will show all error reporting.
GET
floor()
unset()
error_reporting (E_ALL)
31. The concatenation operator?
the period; .
Parse error
ASP
include() and require()
32. To get over quotation marks while using arrays
list()
getrandmax()
curly braces
HTML
33. Creates a pointer to a file with the declared mode (read - write -etc.).
$$
fopen()
^
rand()
34. $_SERVER - $_POST - $_GET - $_COOKIE - $_SESSION - $_ENV; special arrays.
getrandmax()
function
define()
superglobal
35. Tag to end a php script
?>
unset()
$var++ and $var
drop
36. The prefix for a dynamic variable - also known as a variable variable
$$
defined()
HTML
not
37. Used to find the amount of words in a string.
precedence
defined()
str_word_count()
0
38. Hyper Text Transfer Protocol
htmlspecialchars()
HTTP
<?php
E_STRICT
39. An array whose keys are strings; also known as a hash.
+
associative array
round() Function
str_ireplace()
40. To sort by the keys while maintaining the correlation between the key and its value
chop()
count()
$_REQUEST
ksort()
41. identity
GET
===
mysql_fetch_array()
open source
42. a storage location in the computer's memory that has a type & a name and a contents
rsort()
variable
null
$array[] = item
43. equivalence
&
XML
===
==
44. The concatenation assignment operator?
$_GET[]
mysql_fetch_array()
.=
list()
45. To close a connection between a database
error_reporting (E_ALL & -E_NOTICE)
AJAX
mysql_close($dbc)
null
46. a language in which to make querys to a database with
Hex
Shebang
foreach
sql
47. To put a dollar sign before a variable like $10 where 10 is the variable's value - you can escape the first dollar sign; $$cost; or you can use __________.
curly braces; ${$total}
echo
getrandmax()
mysql_close($dbc)
48. collection of binary data
Object
int
string
$$
49. To get time data
include() and require()
date()
ceil()
arsort()
50. Function used to round down to the lowest integer
floor()
str_word_count()
preg_replace()
for ($i = 0; $i < count($array); $i++) {statement(s);}