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. To find how many substrings are in a string
fopen()
switch
substr_count()
true
2. Used to find the amount of words in a string.
precedence
str_word_count()
addcslashes()
$_GET[]
3. the most basic function in PHP used to output information to the page
XML
echo
Magic Constant
control structure
4. bitwise left shift
HTML
$_POST[]
1
<<
5. Control structures that break exit
underscores
if/elseif/else and switch statements
html_entity_decode()
associative array
6. To sort the values while maintaining the correlation between each value and its key - in reversed order
not
error_reporting (E_ALL | E_STRICT)
shuffle()
arsort()
7. Hyper Text Transfer Protocol
server-side programing
superglobal
general
HTTP
8. $_POST and $_GET are ________ variables.
underscores
floor()
function error_reporting()
predefined
9. a language in which to make querys to a database with
Shebang
0
preg_match()
sql
10. bitwise XOR
string
preg_match()
Magic Constant
^
11. Variable names can begin with __________
floor()
reassign
variable
underscores
12. An array whose keys are strings; also known as a hash.
strlen()
Parse error
addslashes()
associative array
13. Function used to round up to the highest integer
Array
empty()
rand()
ceil()
14. Converts a string of ASCII characters to hexadecimal values
precedence
predefined
bin2hex()
Magic Constant
15. a positive or negative number
$_GET[]
!= inequality
error_reporting (0)
integer
16. A data structure that can hold a number of items of data of the same type eg. a list of names
numbers
rsort()
array
switch
17. _________ can be used in conditional statements to set precedence
parentheses
asort()
Notice
POST
18. bitwise AND
&
error_reporting (E_ALL | E_STRICT)
curly braces
trim()
19. All variables must begin with _________.
the dollar sign $
strtok()
==
for ($i = 0; $i < count($array); $i++) {statement(s);}
20. The four main error types are:Notice - Warning - ________ and Error.
ASP
error_reporting (0)
Parse error
trim()
21. container of both data and code
array
+= or -= or *= or /=
Object
+
22. The three types of loops in PHP are: for - while - ____.
foreach loop
foreach
sql
Parse error
23. print $_SERVER will _____ work if you use the print function on arrays.
not
open source
the dollar sign $
PHP
24. Hyper Text Markup Language
HTML
number_format()
array()
<<
25. To sort by the keys while maintaining the correlation between the key and its value
decimal
ksort()
unset()
Warning
26. Search Engine Optimization
SEO
rand()
string
Magic Constant
27. $_SERVER - $_POST - $_GET - $_COOKIE - $_SESSION - $_ENV; special arrays.
round() Function
ini_set ('display_errors', 1)
superglobal
Notice
28. addition
wordwrap()
client-side programing
Parse error
+
29. Returns a string with backslashes in front of predefined characters
Notice
for ($i = 0; $i < count($array); $i++) {statement(s);}
Warning
addslashes()
30. any programing language where the script is parsed on the server
trim()
array()
$varname[key]
server-side programing
31. Used to convert all HTML tags into their entity versions.
htmlentities()
single quotes
null
asort()
32. To close a connection between a database
$varname[key]
mysql_close($dbc)
index
underscores
33. Besides GET and POST ________ can be used to access data but $_POST and $_GET are more precise and therefore preferable.
array
$_REQUEST
asort()
chr()
34. Hypertext Preprocessor - a server-side programing language used to create webpages
PHP
wordwrap()
POST
SGML
35. Returns a character from a specified ASCII value
rsort()
chr()
curly braces
indexed array
36. used to round numeric values.
round() Function
double quotes
<?php
shuffle()
37. To iterate over the keys and values of an array
curly braces; ${$total}
error_reporting (0)
foreach loop
mysql
38. Function that contains the highest value that rand() can have randomly
function
not
html_entity_decode()
getrandmax()
39. To declare a constant
htmlentities()
foreach
Object
define()
40. To remove all HTML and PHP tags.
empty()
strip_tags()
defined()
predefined variable
41. Used to convert certain HTML tags into their entity versions.
underscores
float
htmlspecialchars()
if/elseif/else and switch statements
42. This fatal error arises from memory allocation problem.
array
Error
$$
open source
43. container of ordered data elements
<?php
Array
sort()
octal
44. Use ________ to have multiple quotations in one string
the escape character ''
$_REQUEST
DTD
unset()
45. any programing language where the user must support the language the script is written in
reassign
wordwrap()
client-side programing
the escape character ''
46. Similar to mysql_fetch_array() - but cannot be accessed by integer offset
str_ireplace()
mysql_fetch_object()
<?php
ceil()
47. Function used to find the absolute value of a number or numeric variable
error_reporting (E_ALL & -E_NOTICE)
abs()
include() and require()
foreach loop
48. This error arises from misusing a function.
==
&
Warning
shuffle()
49. Define(NAME,value)
Constant
for ($i = 0; $i < count($array); $i++) {statement(s);}
float
str_ireplace()
50. To iterate over the values of an array
echo
isset()
urlencode()
for ($i = 0; $i < count($array); $i++) {statement(s);}