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. addition
$array[] = item
+
mysql_close($dbc)
$_SESSION[]
2. Used to replace a substring with another string - it is not case-sensitive.
control structure
ksort()
fopen()
str_ireplace()
3. An array whose keys are strings; also known as a hash.
$_GET[]
GET
associative array
Error
4. The syntax for connecting to a database
index
asort()
$dbc = mysql_connect(hostname, username, password)
^
5. To include files - _______ will give errors and _________ will terminate execution().
null
include() and require()
substr_count()
the dollar sign $
6. PHP has two conditional: if and ______.
floor()
switch
mysql_fetch_object()
wordwrap()
7. $_POST and $_GET are ________ variables.
boolean
parentheses
count()
predefined
8. a storage location in the computer's memory that has a type & a name and a contents
$_GET[]
addslashes()
1
variable
9. When used the value can be passed safely through the URL (GET).
urlencode()
function
DTD
$_REQUEST
10. The prefix for a dynamic variable - also known as a variable variable
preg_split()
$$
foreach
urlencode()
11. Returns a string with backslashes in front of predefined characters
wordwrap()
$array[] = item
isset()
addslashes()
12. bitwise XOR
^
shuffle()
ini_set ('display_errors', 1)
asort()
13. ___________ can be used with substr() to count backward
Object
<<
PHP
negative numbers
14. Used to create a substring (referred to as a token) from a larger string
E_STRICT
SEO
strtok()
curly braces; ${$total}
15. Hyper Text Transfer Protocol
client-side programing
predefined variable
HTTP
number_format()
16. signed floating-point value
float
open source
AJAX
function error_reporting()
17. The output of var_export((float)array());
predefined variable
Warning
0
POST
18. To refer to an item in an array
str_ireplace()
chop()
Notice
$varname[key]
19. bitwise left shift
precedence
<<
Parse error
$_POST[]
20. To set up error reporting
===
function error_reporting()
SEO
XOR
21. Used to convert all HTML tags into their entity versions.
htmlentities()
general
Object
error_reporting (E_ALL & -E_NOTICE)
22. Converts a string of ASCII characters to hexadecimal values
the escape character ''
bin2hex()
float
preg_match()
23. _______ is a comparison operator
!= inequality
foreach
floor()
chop()
24. Used to find the length of a string
strlen()
isset()
rsort()
crypt()
25. The concatenation operator?
the period; .
drop
wordwrap()
function
26. searches the subject for matches to a given pattern replaced with the given replacement text
addcslashes()
list()
preg_replace()
Warning
27. To iterate over the values of an array
for ($i = 0; $i < count($array); $i++) {statement(s);}
superglobal
foreach
strip_tags()
28. Function used to round down to the lowest integer
floor()
!= inequality
substr_count()
html_entity_decode()
29. An array whose keys are numbers.
htmlspecialchars()
HTML
indexed array
mysql_fetch_object()
30. The three types of loops in PHP are: for - while - ____.
for ($i = 0; $i < count($array); $i++) {statement(s);}
superglobal
rand()
foreach
31. To assign array element values to individual variables
array
urlencode()
<?php
list()
32. To get over quotation marks while using arrays
abs()
AJAX
predefined variable
curly braces
33. To check if a constant is already declared
defined()
server-side programing
html_entity_decode()
mysql
34. To iterate over the keys and values of an array
floor()
ini_set ('display_errors', 1)
addslashes()
foreach loop
35. All variables must begin with _________.
number_format()
index
negative numbers
the dollar sign $
36. To find how many substrings are in a string
Parse error
fopen()
$varname[key]
substr_count()
37. EXtensible Markup Language
crypt()
the dollar sign $
XML
negative numbers
38. The seven main SQL (structured query language) functions are alter - create - delete - _______ - insert - select - update
>>
sort()
true
drop
39. Shorthand used to increment and decrement
the escape character ''
$var++ and $var
abs()
chop()
40. equivalence
==
XOR
echo
date()
41. To merge arrays
precedence
==
octal
array_merge()
42. To word wrap after a certain amount of characters.
wordwrap()
strip_tags()
Magic Constant
round() Function
43. identity
===
variable
underscores
!= inequality
44. Uses two arguments: constant name and constant definition
trim()
decimal
floor()
define()
45. function Function used to create a random number
htmlspecialchars()
predefined variable
rand()
trim()
46. does a certain action when called upon
preg_match()
function
wordwrap()
round() Function
47. This fatal error arises from memory allocation problem.
drop
array()
$_SESSION[]
Error
48. Online applications and resources which are available to the general public with very few restrictions
wordwrap()
error_reporting (E_ALL & -E_NOTICE)
open source
0
49. This error arises from misusing a function.
server-side programing
if/elseif/else and switch statements
$$
Warning
50. Used to check if a given variable has an "empty" value - no value or 0 or FALSE.
empty()
Constant
^
+= or -= or *= or /=