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. Function used to round up to the highest integer
index
ceil()
htmlspecialchars()
===
2. a storage location in the computer's memory that has a type & a name and a contents
variable
Magic Constant
null
===
3. When used the value can be passed safely through the URL (GET).
indexed array
mysql_close($dbc)
list()
urlencode()
4. Use ______ when a variable contains any amount of variables; in general.
loops
list()
double quotes
error_reporting (E_ALL)
5. To iterate over the values of an array
SEO
preg_replace()
nl2br()
for ($i = 0; $i < count($array); $i++) {statement(s);}
6. To refer to an element in a multidimensional array list the indices in order of _____ to more precise;
drop
general
Shebang
negative numbers
7. Search Engine Optimization
SEO
html_entity_decode()
ASP
predefined
8. Use ______ for search engines or catalogued pages or pages that would be bookmarked.
round() Function
preg_split()
client-side programing
GET
9. signed floating-point value
Warning
float
<?php
decimal
10. To close a connection between a database
shuffle()
asort()
mysql_close($dbc)
is_numeric()
11. a positive or negative number
integer
predefined variable
ini_set ('display_errors', 1)
not
12. Hypertext Preprocessor - a server-side programing language used to create webpages
decimal
PHP
int
octal
13. The output of var_export((float)array(0));
the period; .
drop
1
fopen()
14. To assign keys to the values in an array
boolean
integer
$var++ and $var
array()
15. either hasn't yet been set or is assigned NULL value
predefined
octal
DTD
null
16. Used to replace a substring with another string - it is not case-sensitive.
$$
str_ireplace()
strip_tags()
reassign
17. Returns an array that corresponds to the fetched row of MySQL data and moves the internal data pointer ahead
the period; .
PHP
mysql_fetch_array()
ksort()
18. $_SERVER is a ________ variable.
chr()
$_REQUEST
predefined
boolean
19. Tag to begin a php script
<?php
client-side programing
preg_split()
predefined
20. To include files - _______ will give errors and _________ will terminate execution().
variable
include() and require()
if/elseif/else and switch statements
error_reporting (E_ALL)
21. bitwise XOR
strtok()
^
<?php
Notice
22. An array whose keys are strings; also known as a hash.
true
list()
GET
associative array
23. returns the number of matches found by a given search string under this format...
addslashes()
preg_match()
strtok()
reassign
24. Used to create a substring (referred to as a token) from a larger string
trim()
strtok()
shuffle()
curly braces
25. A conditional or loop is a ________________.
trim()
control structure
$_POST[]
reassign
26. $_POST and $_GET are ________ variables.
variable
predefined
===
urlencode()
27. signed integer
.=
true
int
GET
28. An array of variables passed in the URL
$_GET[]
array()
urlencode()
htmlspecialchars()
29. Hyper Text Markup Language
double quotes
HTML
Constant
substr_count()
30. To merge arrays
array_merge()
unset()
curly braces
ini_set ('display_errors', 1)
31. The three types of loops in PHP are: for - while - ____.
foreach
array()
mysql_fetch_array()
rand()
32. Besides GET and POST ________ can be used to access data but $_POST and $_GET are more precise and therefore preferable.
+
addslashes()
Constant
$_REQUEST
33. Control structures that break exit
numbers
if/elseif/else and switch statements
>>
HTTP
34. This error arises from misusing a function.
curly braces
Magic Constant
GET
Warning
35. Function used to find the absolute value of a number or numeric variable
statement
abs()
predefined variable
int
36. The output of var_export((float)array());
integer
0
fopen()
parentheses
37. Used to find the length of a string
boolean
strlen()
&
Parse error
38. Used to encrypt values - it is a one-way encryption method
the escape character ''
crypt()
ASP
urlencode()
39. Used to check if a variable has a valid numerical value; strings with numerical values pass.
is_numeric()
foreach loop
$_REQUEST
$varname[key]
40. What You See Is What You Get
$_GET[]
WYSIWYG
htmlspecialchars()
Object
41. Function used to round down to the lowest integer
Warning
client-side programing
XML
floor()
42. allows you to split strings based on more complex rules
fopen()
preg_split()
error_reporting (E_ALL & -E_NOTICE)
PHP
43. Document Type Definitions
DTD
rand()
predefined
preg_replace()
44. Define(NAME,value)
Constant
SGML
underscores
shuffle()
45. Used to remove any white space - spaces or newlines or tabs - from the beginning and end of a string - not the middle.
trim()
precedence
$array[] = item
double quotes
46. To sort the values while maintaining the correlation between each value and its key - in reversed order
bin2hex()
arsort()
wordwrap()
Error
47. Variable names cannot begin with _______
$_GET[]
include() and require()
numbers
error_reporting (E_ALL & -E_NOTICE)
48. Function can you use to format a number with commas
general
GET
number_format()
PHP
49. EXtensible Markup Language
error_reporting (E_ALL & -E_NOTICE)
POST
if/elseif/else and switch statements
XML
50. To sort values of an array without regard to the keys
sort()
loops
array()
error_reporting (E_ALL)