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. collection of binary data
curly braces; ${$total}
1
float
string
2. Use _______ for passwords or pages that would not be bookmarked or pages that require security.
crypt()
$_REQUEST
POST
1
3. signed integer
chr()
preg_replace()
variable
int
4. Variable names can begin with __________
mysql_close($dbc)
underscores
superglobal
the escape character ''
5. To sort by the keys while maintaining the correlation between the key and its value
drop
str_ireplace()
empty()
ksort()
6. PHP has two conditional: if and ______.
if/elseif/else and switch statements
substr_count()
XML
switch
7. Shorthand used to increment and decrement
$var++ and $var
switch
POST
>>
8. The seven main SQL (structured query language) functions are alter - create - delete - _______ - insert - select - update
drop
reassign
error_reporting (E_ALL)
Object
9. Function used to round down to the lowest integer
addcslashes()
round() Function
PHP
floor()
10. To reset an array _______ the array() function to the array
array_merge()
array()
reassign
predefined
11. To declare a constant
^
==
str_word_count()
define()
12. The seven main error reporting constants are: E_NOTICE - E_WARNING - E_PARSE - E_ERROR - E_ALL - _____ - E_DEPRECATED
$_POST[]
strlen()
E_STRICT
$_REQUEST
13. Used to find the length of a string
count()
strlen()
ASP
general
14. An array of variables passed with <input /> data
$_POST[]
switch
mysql
unset()
15. To refer to an item in an array
$varname[key]
predefined variable
XML
numbers
16. To set up error reporting
Shebang
function error_reporting()
control structure
function
17. Creates a pointer to a file with the declared mode (read - write -etc.).
fopen()
indexed array
htmlentities()
strlen()
18. Besides GET and POST ________ can be used to access data but $_POST and $_GET are more precise and therefore preferable.
$_REQUEST
XOR
include() and require()
rand()
19. identity
<<
ceil()
define()
===
20. ___________ can be used with substr() to count backward
$_REQUEST
PHP
error_reporting (E_ALL | E_STRICT)
negative numbers
21. To determine the amount of elements in an array
count()
Notice
int
Error
22. To iterate over the values of an array
Error
sort()
for ($i = 0; $i < count($array); $i++) {statement(s);}
XML
23. Predefined constants such as __LINE__ or __FILE__ or __FUNCTION__ or __CLASS__ and __METHOD__
htmlspecialchars()
Magic Constant
echo
Error
24. To include files - _______ will give errors and _________ will terminate execution().
^
include() and require()
html_entity_decode()
open source
25. The four main error types are:Notice - Warning - ________ and Error.
Parse error
Hex
htmlspecialchars()
ceil()
26. The array that stores variables specific to a user's visit
$_SESSION[]
ksort()
addcslashes()
AJAX
27. 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
28. To refer to an element in a multidimensional array list the indices in order of _____ to more precise;
general
function
E_STRICT
strtok()
29. Use ______ when a variable contains any amount of variables; in general.
mysql
double quotes
$_REQUEST
asort()
30. signed floating-point value
float
include() and require()
open source
addcslashes()
31. The output of var_export((float)array());
0
?>
ksort()
$_GET[]
32. allows you to split strings based on more complex rules
preg_split()
isset()
<<
===
33. This error arises from misusing a function.
number_format()
Warning
ceil()
Hex
34. any programing language where the user must support the language the script is written in
client-side programing
count()
$_REQUEST
getrandmax()
35. Returns a string with backslashes in front of predefined characters
Shebang
wordwrap()
HTTP
addslashes()
36. Control structures that break exit
chop()
==
!= inequality
if/elseif/else and switch statements
37. Hyper Text Transfer Protocol
DTD
HTTP
preg_replace()
index
38. 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}
error_reporting (0)
string
.=
39. Control structure that continue exit - they perform specific statements for a determined number of iterations.
E_STRICT
echo
define()
loops
40. Alias of rtrim()
strlen()
chop()
mysql_fetch_array()
parentheses
41. Function that contains the highest value that rand() can have randomly
Constant
error_reporting (0)
POST
getrandmax()
42. Uses two arguments: constant name and constant definition
urlencode()
GET
define()
general
43. bitwise left shift
preg_split()
<<
PHP
switch
44. A conditional or loop is a ________________.
!= inequality
the period; .
control structure
statement
45. The prefix for a dynamic variable - also known as a variable variable
$_POST[]
addcslashes()
$$
SEO
46. equivalence
==
$_REQUEST
boolean
html_entity_decode()
47. Leading 0x: 0x13F or 0xA23
shuffle()
$var++ and $var
Hex
fopen()
48. Returns a character from a specified ASCII value
chr()
addslashes()
array
$_SESSION[]
49. Use ________ to have multiple quotations in one string
the escape character ''
round() Function
GET
unset()
50. $_POST and $_GET are ________ variables.
floor()
predefined
$_REQUEST
AJAX