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. either hasn't yet been set or is assigned NULL value
.=
null
defined()
for ($i = 0; $i < count($array); $i++) {statement(s);}
2. The ouput of var_export((bool)"NULL");
+
true
index
round() Function
3. $_SERVER is a ________ variable.
floor()
count()
predefined
ceil()
4. identity
$var++ and $var
double quotes
XOR
===
5. bitwise XOR
^
for ($i = 0; $i < count($array); $i++) {statement(s);}
Constant
mysql_fetch_object()
6. The name of the #! used to designate the location of the PHP binary
octal
strtok()
statement
Shebang
7. Returns a string with backslashes in front of predefined characters
is_numeric()
htmlentities()
addslashes()
general
8. Creates a pointer to a file with the declared mode (read - write -etc.).
$var++ and $var
true
fopen()
the escape character ''
9. a database which is best supported by PHP
ksort()
int
drop
mysql
10. To remove all HTML and PHP tags.
strip_tags()
isset()
index
SEO
11. 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.
numbers
Parse error
mysql_fetch_object()
error_reporting (E_ALL | E_STRICT)
12. Leading 0x: 0x13F or 0xA23
Hex
$varname[key]
SEO
foreach loop
13. Asynchronous Javascript And XML
is_numeric()
AJAX
Hex
1
14. To sort the values while maintaining the correlation between each value and its key - in reversed order
==
chr()
arsort()
Error
15. 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 __________.
wordwrap()
curly braces; ${$total}
XML
switch
16. Define(NAME,value)
Constant
$_GET[]
Parse error
client-side programing
17. Returns a string with backslashes in front of the specified characters
addcslashes()
shuffle()
function
sort()
18. To merge arrays
Magic Constant
for ($i = 0; $i < count($array); $i++) {statement(s);}
ini_set ('display_errors', 1)
array_merge()
19. Function used to round up to the highest integer
$_POST[]
error_reporting (E_ALL)
predefined variable
ceil()
20. signed floating-point value
empty()
control structure
SGML
float
21. To check if a constant is already declared
chr()
preg_match()
string
defined()
22. function Function used to create a random number
precedence
<?php
array
rand()
23. To get over quotation marks while using arrays
array
?>
+
curly braces
24. Function used to round down to the lowest integer
>>
strlen()
floor()
addslashes()
25. This will show all error reporting.
error_reporting (E_ALL)
arsort()
predefined
==
26. Alias of rtrim()
defined()
chop()
define()
DTD
27. Hypertext Preprocessor - a server-side programing language used to create webpages
define()
E_STRICT
drop
PHP
28. The output of var_export((float)array(0));
indexed array
1
Parse error
array
29. Similar to mysql_fetch_array() - but cannot be accessed by integer offset
mysql_fetch_object()
$_REQUEST
foreach
array()
30. collection of binary data
string
float
array_merge()
trim()
31. a line of information that can be stored in a variable or used in a function or statement
float
string
SEO
function
32. To sort the values while maintaining the correlation between each value and its key
str_word_count()
ini_set ('display_errors', 1)
boolean
asort()
33. To word wrap after a certain amount of characters.
underscores
Array
wordwrap()
isset()
34. This fatal fatal is caused by a semantic mistake: omission of a semicolon or imbalance of quotations or parentheses or braces.
Shebang
Parse error
Array
the escape character ''
35. $_POST Data sent using POST found is sent to _______
control structure
predefined variable
addslashes()
function error_reporting()
36. Function can you use to format a number with commas
server-side programing
number_format()
nl2br()
PHP
37. To create an array
html_entity_decode()
array()
floor()
preg_replace()
38. Use ______ when a variable contains any amount of variables; in general.
!= inequality
double quotes
DTD
+= or -= or *= or /=
39. Used to check if a given variable has an "empty" value - no value or 0 or FALSE.
error_reporting (0)
empty()
curly braces; ${$total}
double quotes
40. To counter htmlentities()
html_entity_decode()
list()
abs()
Error
41. To refer to an item in an array
$varname[key]
.=
1
Error
42. ___________ can be used with substr() to count backward
negative numbers
getrandmax()
integer
!= inequality
43. When used the value can be passed safely through the URL (GET).
urlencode()
ceil()
HTTP
underscores
44. bitwise AND
Hex
preg_match()
&
$_GET[]
45. bitwise left shift
mysql_fetch_array()
<<
Parse error
Warning
46. To close a connection between a database
mysql_close($dbc)
numbers
HTTP
^
47. The order of operations.
SEO
$array[] = item
precedence
===
48. a language in which to make querys to a database with
string
array()
sql
open source
49. used to round numeric values.
curly braces
$_POST[]
round() Function
negative numbers
50. To assign array element values to individual variables
drop
abs()
$$
list()