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. Use ______ when a variable contains any amount of variables; in general.
Hex
fopen()
double quotes
floor()
2. used to round numeric values.
empty()
round() Function
$var++ and $var
floor()
3. Control structures that break exit
underscores
Notice
Parse error
if/elseif/else and switch statements
4. EXtensible Markup Language
XML
===
predefined variable
rand()
5. Variable names cannot begin with _______
numbers
trim()
round() Function
double quotes
6. Used to convert all HTML tags into their entity versions.
if/elseif/else and switch statements
index
htmlentities()
foreach loop
7. To counter htmlentities()
$_GET[]
html_entity_decode()
function error_reporting()
bin2hex()
8. Hyper Text Transfer Protocol
nl2br()
HTTP
E_STRICT
$$
9. This will not show error reporting - it will be turned off.
error_reporting (0)
PHP
parentheses
superglobal
10. Used to replace a substring with another string - it is not case-sensitive.
str_ireplace()
array()
general
+
11. To iterate over the values of an array
foreach loop
for ($i = 0; $i < count($array); $i++) {statement(s);}
include() and require()
empty()
12. Hypertext Preprocessor - a server-side programing language used to create webpages
AJAX
precedence
htmlentities()
PHP
13. To sort the values while maintaining the correlation between each value and its key
getrandmax()
asort()
str_ireplace()
the dollar sign $
14. Use ______ for search engines or catalogued pages or pages that would be bookmarked.
htmlentities()
GET
count()
addcslashes()
15. To reset an array _______ the array() function to the array
asort()
Array
preg_match()
reassign
16. Tag to begin a php script
defined()
float
predefined
<?php
17. To close a connection between a database
error_reporting (0)
curly braces; ${$total}
WYSIWYG
mysql_close($dbc)
18. Active Server Pages
ASP
POST
Warning
DTD
19. _________ can be used in conditional statements to set precedence
single quotes
XML
DTD
parentheses
20. To iterate over the keys and values of an array
foreach loop
AJAX
&
Notice
21. any programing language where the script is parsed on the server
html_entity_decode()
server-side programing
include() and require()
error_reporting (E_ALL & -E_NOTICE)
22. To create an array
arsort()
not
curly braces; ${$total}
array()
23. PHP has two conditional: if and ______.
switch
$_REQUEST
&
addslashes()
24. To sort values of an array without regard to the keys
arsort()
PHP
sort()
associative array
25. The seven main error reporting constants are: E_NOTICE - E_WARNING - E_PARSE - E_ERROR - E_ALL - _____ - E_DEPRECATED
indexed array
$dbc = mysql_connect(hostname, username, password)
E_STRICT
mysql_fetch_array()
26. To delete a variable or an element of an array
precedence
unset()
fopen()
array()
27. Function that contains the highest value that rand() can have randomly
rand()
E_STRICT
getrandmax()
int
28. _______ is a comparison operator
predefined variable
!= inequality
foreach
Hex
29. Variable names can begin with __________
underscores
index
AJAX
Error
30. Online applications and resources which are available to the general public with very few restrictions
open source
str_word_count()
for ($i = 0; $i < count($array); $i++) {statement(s);}
abs()
31. Predefined constants such as __LINE__ or __FILE__ or __FUNCTION__ or __CLASS__ and __METHOD__
Shebang
Magic Constant
$$
POST
32. The output of var_export((float)array());
0
int
.=
$_REQUEST
33. Used to encrypt values - it is a one-way encryption method
Parse error
decimal
strtok()
crypt()
34. bitwise XOR
abs()
^
Constant
associative array
35. Function used to find the absolute value of a number or numeric variable
ini_set ('display_errors', 1)
.=
$varname[key]
abs()
36. a language in which to make querys to a database with
number_format()
sql
$_SESSION[]
variable
37. Hyper Text Markup Language
number_format()
client-side programing
urlencode()
HTML
38. collection of binary data
drop
open source
string
single quotes
39. either hasn't yet been set or is assigned NULL value
>>
null
$varname[key]
+= or -= or *= or /=
40. print $_SERVER will _____ work if you use the print function on arrays.
boolean
not
predefined variable
the escape character ''
41. To refer to an item in an array
for ($i = 0; $i < count($array); $i++) {statement(s);}
$varname[key]
1
predefined
42. Standard Generalized Markup Language
SGML
foreach loop
isset()
XOR
43. This error arises from misusing a function.
str_ireplace()
html_entity_decode()
the dollar sign $
Warning
44. All variables must begin with _________.
parentheses
server-side programing
the dollar sign $
preg_match()
45. the most basic function in PHP used to output information to the page
echo
count()
.=
Array
46. $_POST and $_GET are ________ variables.
predefined
substr_count()
shuffle()
fopen()
47. Used to find the amount of words in a string.
str_word_count()
Hex
preg_split()
predefined
48. standard notation
date()
decimal
urlencode()
the escape character ''
49. Used to remove any white space - spaces or newlines or tabs - from the beginning and end of a string - not the middle.
trim()
<<
$_SESSION[]
index
50. To word wrap after a certain amount of characters.
switch
wordwrap()
string
arsort()