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. a line of information that can be stored in a variable or used in a function or statement
general
string
octal
strtok()
2. Operators used to operate and assign
+= or -= or *= or /=
POST
strip_tags()
HTML
3. $_SERVER is a ________ variable.
octal
bin2hex()
predefined
DTD
4. Document Type Definitions
drop
DTD
!= inequality
addslashes()
5. a storage location in the computer's memory that has a type & a name and a contents
===
underscores
variable
single quotes
6. Asynchronous Javascript And XML
$_POST[]
unset()
AJAX
0
7. To assign array element values to individual variables
^
list()
floor()
rsort()
8. collection of binary data
string
HTTP
null
octal
9. To reorganise the array randomly
WYSIWYG
shuffle()
htmlspecialchars()
ksort()
10. Hypertext Preprocessor - a server-side programing language used to create webpages
Parse error
index
PHP
ceil()
11. Variable names cannot begin with _______
Shebang
numbers
SEO
sql
12. To reset an array _______ the array() function to the array
reassign
date()
GET
arsort()
13. Used to encrypt values - it is a one-way encryption method
crypt()
array_merge()
echo
bin2hex()
14. To sort values of an array in reversed order
open source
round() Function
rsort()
int
15. To word wrap after a certain amount of characters.
variable
Warning
wordwrap()
$varname[key]
16. To remove all HTML and PHP tags.
crypt()
strip_tags()
GET
asort()
17. PHP has two conditional: if and ______.
switch
XOR
server-side programing
number_format()
18. To merge arrays
==
array_merge()
decimal
html_entity_decode()
19. Hyper Text Transfer Protocol
include() and require()
octal
empty()
HTTP
20. Tag to begin a php script
statement
error_reporting (E_ALL)
!= inequality
<?php
21. To refer to an item in an array
0
switch
preg_match()
$varname[key]
22. Function used to round up to the highest integer
error_reporting (E_ALL)
ceil()
round() Function
str_word_count()
23. Use ______ for search engines or catalogued pages or pages that would be bookmarked.
shuffle()
GET
general
addslashes()
24. Use ________ to have multiple quotations in one string
$_GET[]
wordwrap()
Magic Constant
the escape character ''
25. Predefined constants such as __LINE__ or __FILE__ or __FUNCTION__ or __CLASS__ and __METHOD__
sort()
chop()
Magic Constant
$dbc = mysql_connect(hostname, username, password)
26. Used to check if a variable has any value (including 0 or FALSE or an empty string).
isset()
$_REQUEST
switch
string
27. Function that contains the highest value that rand() can have randomly
getrandmax()
include() and require()
Hex
E_STRICT
28. _______ is a comparison operator
!= inequality
preg_split()
$varname[key]
numbers
29. any programing language where the user must support the language the script is written in
<<
preg_split()
client-side programing
strlen()
30. The three types of loops in PHP are: for - while - ____.
bin2hex()
the dollar sign $
foreach
===
31. used to round numeric values.
round() Function
general
include() and require()
list()
32. Control structure that continue exit - they perform specific statements for a determined number of iterations.
reassign
loops
===
Array
33. leading zero: 0100 or 0567
function error_reporting()
octal
str_ireplace()
$_POST[]
34. Tag to end a php script
function error_reporting()
floor()
?>
int
35. Function used to round down to the lowest integer
floor()
urlencode()
client-side programing
XML
36. Hyper Text Markup Language
unset()
DTD
HTML
strtok()
37. Uses two arguments: constant name and constant definition
negative numbers
not
define()
PHP
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}
function error_reporting()
==
html_entity_decode()
39. ____ or key is referred to for a value within an array.
precedence
index
loops
SGML
40. To delete a variable or an element of an array
array_merge()
unset()
Notice
define()
41. signed floating-point value
float
strlen()
SEO
for ($i = 0; $i < count($array); $i++) {statement(s);}
42. This error refers to a variable with no value.
html_entity_decode()
double quotes
Notice
Parse error
43. Used to remove any white space - spaces or newlines or tabs - from the beginning and end of a string - not the middle.
1
Shebang
rand()
trim()
44. The concatenation assignment operator?
1
.=
decimal
mysql_close($dbc)
45. Control structures that break exit
include() and require()
decimal
string
if/elseif/else and switch statements
46. allows you to split strings based on more complex rules
Magic Constant
array_merge()
drop
preg_split()
47. 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.
precedence
?>
error_reporting (E_ALL | E_STRICT)
chop()
48. Active Server Pages
empty()
ASP
negative numbers
^
49. Function can you use to format a number with commas
not
number_format()
rand()
Notice
50. To iterate over the values of an array
abs()
PHP
for ($i = 0; $i < count($array); $i++) {statement(s);}
true