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. bitwise AND
empty()
arsort()
HTML
&
2. Returns a string with backslashes in front of the specified characters
foreach loop
POST
array()
addcslashes()
3. Control structures that break exit
SEO
if/elseif/else and switch statements
parentheses
defined()
4. Used to check if a variable has any value (including 0 or FALSE or an empty string).
if/elseif/else and switch statements
E_STRICT
isset()
htmlentities()
5. Document Type Definitions
htmlspecialchars()
precedence
DTD
is_numeric()
6. Hyper Text Transfer Protocol
str_word_count()
round() Function
^
HTTP
7. a storage location in the computer's memory that has a type & a name and a contents
$dbc = mysql_connect(hostname, username, password)
variable
if/elseif/else and switch statements
XML
8. Used to create a substring (referred to as a token) from a larger string
int
rsort()
strtok()
PHP
9. A data structure that can hold a number of items of data of the same type eg. a list of names
array
rand()
0
str_word_count()
10. The name of the #! used to designate the location of the PHP binary
Shebang
preg_match()
!= inequality
$_POST[]
11. a line of information that can be stored in a variable or used in a function or statement
loops
date()
string
floor()
12. Used to encrypt values - it is a one-way encryption method
crypt()
html_entity_decode()
htmlspecialchars()
mysql_fetch_object()
13. ___________ can be used with substr() to count backward
preg_replace()
not
negative numbers
precedence
14. To sort the values while maintaining the correlation between each value and its key - in reversed order
wordwrap()
arsort()
$_GET[]
array_merge()
15. The concatenation operator?
the period; .
superglobal
Hex
strtok()
16. Used to remove any white space - spaces or newlines or tabs - from the beginning and end of a string - not the middle.
unset()
error_reporting (E_ALL | E_STRICT)
trim()
<?php
17. Function used to round down to the lowest integer
echo
htmlentities()
GET
floor()
18. To refer to an element in a multidimensional array list the indices in order of _____ to more precise;
0
general
HTML
fopen()
19. Alias of rtrim()
getrandmax()
!= inequality
chop()
string
20. To counter htmlentities()
html_entity_decode()
fopen()
Warning
ceil()
21. bitwise left shift
<<
for ($i = 0; $i < count($array); $i++) {statement(s);}
rsort()
defined()
22. signed floating-point value
Constant
index
float
list()
23. The prefix for a dynamic variable - also known as a variable variable
underscores
E_STRICT
$$
define()
24. says 'if' this then do this 'else' do this or 'while' this do this
wordwrap()
statement
define()
$_SESSION[]
25. To declare a constant
floor()
define()
superglobal
reassign
26. returns the number of matches found by a given search string under this format...
define()
preg_match()
array()
$var++ and $var
27. a type with two possible values: true and false
unset()
Magic Constant
boolean
addslashes()
28. The array that stores variables specific to a user's visit
$_SESSION[]
$_POST[]
empty()
drop
29. To delete a variable or an element of an array
error_reporting (E_ALL)
general
$_REQUEST
unset()
30. To sort the values while maintaining the correlation between each value and its key
===
float
Notice
asort()
31. Used to find the length of a string
rand()
strlen()
asort()
chr()
32. To close a connection between a database
SEO
ceil()
the escape character ''
mysql_close($dbc)
33. Function used to convert new lines in a variable from a form to <br /> tags so that the data can be formatted correctly.
if/elseif/else and switch statements
nl2br()
number_format()
XOR
34. Used to convert all HTML tags into their entity versions.
preg_split()
Shebang
htmlentities()
general
35. Returns an array that corresponds to the fetched row of MySQL data and moves the internal data pointer ahead
Parse error
abs()
mysql_fetch_array()
unset()
36. identity
reassign
not
nl2br()
===
37. used to round numeric values.
round() Function
curly braces
html_entity_decode()
rand()
38. Used to replace a substring with another string - it is not case-sensitive.
addslashes()
string
mysql_fetch_array()
str_ireplace()
39. To get time data
numbers
date()
the dollar sign $
the period; .
40. Predefined constants such as __LINE__ or __FILE__ or __FUNCTION__ or __CLASS__ and __METHOD__
$_POST[]
Magic Constant
octal
double quotes
41. An array whose keys are strings; also known as a hash.
decimal
associative array
+= or -= or *= or /=
strip_tags()
42. Besides GET and POST ________ can be used to access data but $_POST and $_GET are more precise and therefore preferable.
<<
POST
curly braces
$_REQUEST
43. any programing language where the user must support the language the script is written in
is_numeric()
client-side programing
foreach loop
XML
44. 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.
error_reporting (E_ALL | E_STRICT)
index
Warning
shuffle()
45. To assign array element values to individual variables
substr_count()
define()
htmlspecialchars()
list()
46. The ouput of var_export((bool)"NULL");
true
strtok()
open source
mysql
47. To check if a constant is already declared
defined()
reassign
date()
chop()
48. _______ is a comparison operator
control structure
htmlspecialchars()
DTD
!= inequality
49. To word wrap after a certain amount of characters.
$dbc = mysql_connect(hostname, username, password)
wordwrap()
PHP
addcslashes()
50. print $_SERVER will _____ work if you use the print function on arrays.
floor()
isset()
not
Error