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. signed floating-point value
float
strtok()
foreach
foreach loop
2. used to round numeric values.
GET
foreach
indexed array
round() Function
3. An array whose keys are numbers.
foreach
double quotes
for ($i = 0; $i < count($array); $i++) {statement(s);}
indexed array
4. To close a connection between a database
include() and require()
?>
mysql_close($dbc)
getrandmax()
5. standard notation
client-side programing
decimal
urlencode()
$dbc = mysql_connect(hostname, username, password)
6. To refer to an item in an array
underscores
Notice
<?php
$varname[key]
7. The output of var_export((float)array());
0
Hex
preg_replace()
preg_split()
8. Returns a character from a specified ASCII value
PHP
chr()
array
defined()
9. PHP has two conditional: if and ______.
negative numbers
switch
floor()
count()
10. Hypertext Preprocessor - a server-side programing language used to create webpages
str_ireplace()
error_reporting (0)
PHP
array()
11. a line of information that can be stored in a variable or used in a function or statement
PHP
nl2br()
string
$varname[key]
12. Define(NAME,value)
nl2br()
isset()
Object
Constant
13. print $_SERVER will _____ work if you use the print function on arrays.
POST
==
not
Hex
14. To reset an array _______ the array() function to the array
reassign
chop()
sort()
?>
15. Function used to round down to the lowest integer
array
floor()
$var++ and $var
error_reporting (0)
16. What You See Is What You Get
number_format()
DTD
WYSIWYG
the escape character ''
17. To counter htmlentities()
control structure
switch
html_entity_decode()
floor()
18. To assign keys to the values in an array
preg_split()
array()
1
POST
19. $_SERVER - $_POST - $_GET - $_COOKIE - $_SESSION - $_ENV; special arrays.
underscores
superglobal
$_GET[]
general
20. 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 __________.
not
curly braces; ${$total}
general
strlen()
21. Use ______ when a variable contains any amount of variables; in general.
double quotes
sql
number_format()
str_ireplace()
22. To delete a variable or an element of an array
$varname[key]
floor()
Array
unset()
23. To word wrap after a certain amount of characters.
double quotes
==
defined()
wordwrap()
24. To remove all HTML and PHP tags.
strip_tags()
getrandmax()
predefined variable
+= or -= or *= or /=
25. To determine the amount of elements in an array
curly braces
count()
floor()
PHP
26. Online applications and resources which are available to the general public with very few restrictions
double quotes
open source
defined()
is_numeric()
27. bitwise right shift
predefined variable
wordwrap()
mysql
>>
28. Shorthand used to increment and decrement
strip_tags()
$dbc = mysql_connect(hostname, username, password)
$var++ and $var
count()
29. The three types of loops in PHP are: for - while - ____.
crypt()
define()
addcslashes()
foreach
30. Standard Generalized Markup Language
SGML
Warning
for ($i = 0; $i < count($array); $i++) {statement(s);}
>>
31. a storage location in the computer's memory that has a type & a name and a contents
string
variable
E_STRICT
Hex
32. Uses two arguments: constant name and constant definition
if/elseif/else and switch statements
define()
XML
!= inequality
33. 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)
addslashes()
substr_count()
the period; .
34. collection of binary data
double quotes
!= inequality
string
===
35. Returns a string with backslashes in front of predefined characters
switch
addslashes()
integer
AJAX
36. _________ can be used in conditional statements to set precedence
isset()
integer
$_POST[]
parentheses
37. To find how many substrings are in a string
substr_count()
str_ireplace()
trim()
str_word_count()
38. The seven main SQL (structured query language) functions are alter - create - delete - _______ - insert - select - update
mysql_fetch_array()
drop
getrandmax()
rand()
39. This fatal error arises from memory allocation problem.
&
rsort()
Error
addslashes()
40. the most basic function in PHP used to output information to the page
1
underscores
echo
GET
41. any programing language where the user must support the language the script is written in
client-side programing
string
associative array
strip_tags()
42. Control structure that continue exit - they perform specific statements for a determined number of iterations.
urlencode()
loops
general
predefined
43. returns the number of matches found by a given search string under this format...
preg_split()
preg_match()
int
integer
44. signed integer
str_word_count()
int
define()
negative numbers
45. EXtensible Markup Language
curly braces
urlencode()
Constant
XML
46. To get time data
unset()
date()
array
list()
47. To sort the values while maintaining the correlation between each value and its key
boolean
client-side programing
octal
asort()
48. Used to encrypt values - it is a one-way encryption method
crypt()
Parse error
mysql_fetch_array()
htmlspecialchars()
49. Tag to begin a php script
decimal
<?php
underscores
htmlspecialchars()
50. Used to check if a given variable has an "empty" value - no value or 0 or FALSE.
boolean
strlen()
empty()
curly braces; ${$total}