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. print $_SERVER will _____ work if you use the print function on arrays.
&
indexed array
Constant
not
2. Use ______ when a variable contains any amount of variables; in general.
error_reporting (0)
list()
mysql_fetch_array()
double quotes
3. Returns a string with backslashes in front of the specified characters
addcslashes()
chop()
error_reporting (E_ALL | E_STRICT)
crypt()
4. The name of the #! used to designate the location of the PHP binary
Parse error
rsort()
.=
Shebang
5. Besides GET and POST ________ can be used to access data but $_POST and $_GET are more precise and therefore preferable.
$_GET[]
<?php
$_REQUEST
client-side programing
6. ___________ can be used with substr() to count backward
SEO
include() and require()
0
negative numbers
7. Predefined constants such as __LINE__ or __FILE__ or __FUNCTION__ or __CLASS__ and __METHOD__
Magic Constant
Error
PHP
empty()
8. To sort the values while maintaining the correlation between each value and its key
isset()
asort()
boolean
WYSIWYG
9. Asynchronous Javascript And XML
^
error_reporting (0)
curly braces
AJAX
10. _______ is a comparison operator
!= inequality
preg_match()
double quotes
drop
11. Variable names cannot begin with _______
boolean
numbers
preg_split()
foreach
12. addition
str_word_count()
+
chop()
array()
13. Use ________ to have multiple quotations in one string
the escape character ''
==
sql
define()
14. 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 __________.
Parse error
switch
curly braces; ${$total}
array_merge()
15. What You See Is What You Get
$_REQUEST
$array[] = item
array()
WYSIWYG
16. equivalence
mysql_fetch_array()
htmlentities()
==
getrandmax()
17. This error refers to a variable with no value.
if/elseif/else and switch statements
Notice
index
array()
18. The ouput of var_export((bool)"NULL");
foreach loop
true
octal
strip_tags()
19. $_SERVER is a ________ variable.
wordwrap()
mysql_fetch_object()
predefined
error_reporting (E_ALL & -E_NOTICE)
20. To get time data
switch
date()
predefined
Hex
21. any programing language where the user must support the language the script is written in
index
client-side programing
string
the period; .
22. identity
===
predefined variable
preg_replace()
==
23. An array of variables passed with <input /> data
array()
===
control structure
$_POST[]
24. To merge arrays
foreach
underscores
error_reporting (E_ALL | E_STRICT)
array_merge()
25. Creates a pointer to a file with the declared mode (read - write -etc.).
fopen()
predefined variable
decimal
addcslashes()
26. This will show all error reporting.
open source
error_reporting (E_ALL)
addcslashes()
array
27. To refer to an element in a multidimensional array list the indices in order of _____ to more precise;
int
general
single quotes
array
28. bitwise XOR
control structure
defined()
predefined variable
^
29. Hyper Text Transfer Protocol
HTTP
<?php
empty()
true
30. To reorganise the array randomly
ASP
shuffle()
HTTP
$varname[key]
31. This fatal fatal is caused by a semantic mistake: omission of a semicolon or imbalance of quotations or parentheses or braces.
asort()
Parse error
precedence
string
32. Used to check if a variable has a valid numerical value; strings with numerical values pass.
ksort()
AJAX
is_numeric()
rand()
33. signed floating-point value
===
$$
float
==
34. $_SERVER - $_POST - $_GET - $_COOKIE - $_SESSION - $_ENV; special arrays.
parentheses
null
superglobal
negative numbers
35. Returns a character from a specified ASCII value
Warning
chr()
Hex
associative array
36. The output of var_export((float)array());
index
isset()
negative numbers
0
37. used to round numeric values.
ceil()
define()
client-side programing
round() Function
38. To assign array element values to individual variables
$_GET[]
^
list()
foreach
39. container of both data and code
not
error_reporting (E_ALL & -E_NOTICE)
Object
function error_reporting()
40. Returns an array that corresponds to the fetched row of MySQL data and moves the internal data pointer ahead
mysql_fetch_array()
strip_tags()
html_entity_decode()
.=
41. Variable names can begin with __________
DTD
fopen()
addcslashes()
underscores
42. Leading 0x: 0x13F or 0xA23
PHP
HTML
Hex
Warning
43. The seven main SQL (structured query language) functions are alter - create - delete - _______ - insert - select - update
loops
Parse error
drop
precedence
44. Used to find the amount of words in a string.
XOR
str_word_count()
ASP
strtok()
45. To check if a constant is already declared
defined()
control structure
sort()
curly braces; ${$total}
46. leading zero: 0100 or 0567
curly braces
XOR
octal
error_reporting (E_ALL & -E_NOTICE)
47. To set up error reporting
shuffle()
AJAX
Array
function error_reporting()
48. This error arises from misusing a function.
echo
^
error_reporting (0)
Warning
49. An array of variables passed in the URL
the period; .
trim()
XOR
$_GET[]
50. 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