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. To close a connection between a database
if/elseif/else and switch statements
server-side programing
the period; .
mysql_close($dbc)
2. _____ is a logical operator
XOR
preg_split()
$array[] = item
curly braces
3. To get over quotation marks while using arrays
the dollar sign $
Warning
curly braces
$$
4. The seven main SQL (structured query language) functions are alter - create - delete - _______ - insert - select - update
if/elseif/else and switch statements
strlen()
drop
addcslashes()
5. To reorganise the array randomly
foreach loop
the escape character ''
shuffle()
double quotes
6. A data structure that can hold a number of items of data of the same type eg. a list of names
double quotes
AJAX
array
ini_set ('display_errors', 1)
7. The three types of loops in PHP are: for - while - ____.
addcslashes()
foreach
ksort()
wordwrap()
8. An array of variables passed in the URL
general
$_GET[]
AJAX
bin2hex()
9. All variables must begin with _________.
nl2br()
the dollar sign $
ksort()
?>
10. Besides GET and POST ________ can be used to access data but $_POST and $_GET are more precise and therefore preferable.
$_REQUEST
Constant
decimal
float
11. To iterate over the values of an array
AJAX
open source
for ($i = 0; $i < count($array); $i++) {statement(s);}
$var++ and $var
12. Search Engine Optimization
error_reporting (E_ALL)
shuffle()
SEO
isset()
13. signed floating-point value
<<
ASP
float
predefined
14. To reset an array _______ the array() function to the array
reassign
float
true
strip_tags()
15. This error arises from misusing a function.
Warning
unset()
0
index
16. a storage location in the computer's memory that has a type & a name and a contents
include() and require()
variable
$dbc = mysql_connect(hostname, username, password)
echo
17. bitwise AND
DTD
&
XOR
$_GET[]
18. the most basic function in PHP used to output information to the page
echo
client-side programing
$_GET[]
SEO
19. Tag to begin a php script
str_word_count()
<?php
reassign
unset()
20. To iterate over the keys and values of an array
foreach loop
urlencode()
HTTP
Object
21. This will show all error reporting.
$array[] = item
+= or -= or *= or /=
general
error_reporting (E_ALL)
22. searches the subject for matches to a given pattern replaced with the given replacement text
<<
preg_replace()
array()
===
23. Similar to mysql_fetch_array() - but cannot be accessed by integer offset
mysql_fetch_object()
arsort()
HTTP
statement
24. $_SERVER - $_POST - $_GET - $_COOKIE - $_SESSION - $_ENV; special arrays.
foreach loop
superglobal
associative array
preg_replace()
25. To sort by the keys while maintaining the correlation between the key and its value
strlen()
predefined
$dbc = mysql_connect(hostname, username, password)
ksort()
26. To sort values of an array in reversed order
XML
rsort()
error_reporting (0)
Constant
27. Standard Generalized Markup Language
str_word_count()
predefined
SGML
boolean
28. Active Server Pages
define()
ASP
fopen()
index
29. $_POST and $_GET are ________ variables.
function
array_merge()
predefined
strtok()
30. Returns a character from a specified ASCII value
chr()
<<
+
addcslashes()
31. print $_SERVER will _____ work if you use the print function on arrays.
int
Notice
not
chop()
32. a positive or negative number
foreach loop
predefined variable
error_reporting (E_ALL & -E_NOTICE)
integer
33. signed integer
DTD
ksort()
rsort()
int
34. bitwise left shift
curly braces
client-side programing
<<
str_word_count()
35. To word wrap after a certain amount of characters.
round() Function
preg_match()
GET
wordwrap()
36. $_SERVER is a ________ variable.
array
error_reporting (0)
empty()
predefined
37. To check if a constant is already declared
rsort()
not
defined()
htmlentities()
38. The name of the #! used to designate the location of the PHP binary
Error
urlencode()
Shebang
arsort()
39. Variable names can begin with __________
single quotes
array_merge()
underscores
define()
40. Use _______ for passwords or pages that would not be bookmarked or pages that require security.
E_STRICT
^
POST
client-side programing
41. PHP has two conditional: if and ______.
Parse error
switch
XOR
number_format()
42. TRUE or FALSE
string
mysql_fetch_object()
the period; .
boolean
43. This error refers to a variable with no value.
foreach
reassign
htmlspecialchars()
Notice
44. Used to check if a variable has a valid numerical value; strings with numerical values pass.
<?php
loops
index
is_numeric()
45. An array of variables passed with <input /> data
$_POST[]
negative numbers
count()
the dollar sign $
46. a database which is best supported by PHP
mysql_fetch_object()
array_merge()
mysql
abs()
47. does a certain action when called upon
function
Parse error
client-side programing
foreach
48. Control structures that break exit
<<
decimal
WYSIWYG
if/elseif/else and switch statements
49. bitwise right shift
chr()
>>
single quotes
HTML
50. standard notation
decimal
mysql_fetch_array()
error_reporting (E_ALL)
the escape character ''
Sorry!:) No result found.
Can you answer 50 questions in 15 minutes?
Let me suggest you:
Browse all subjects
Browse all tests
Most popular tests
Major Subjects
Tests & Exams
AP
CLEP
DSST
GRE
SAT
GMAT
Certifications
CISSP go to https://www.isc2.org/
PMP
ITIL
RHCE
MCTS
More...
IT Skills
Android Programming
Data Modeling
Objective C Programming
Basic Python Programming
Adobe Illustrator
More...
Business Skills
Advertising Techniques
Business Accounting Basics
Business Strategy
Human Resource Management
Marketing Basics
More...
Soft Skills
Body Language
People Skills
Public Speaking
Persuasion
Job Hunting And Resumes
More...
Vocabulary
GRE Vocab
SAT Vocab
TOEFL Essential Vocab
Basic English Words For All
Global Words You Should Know
Business English
More...
Languages
AP German Vocab
AP Latin Vocab
SAT Subject Test: French
Italian Survival
Norwegian Survival
More...
Engineering
Audio Engineering
Computer Science Engineering
Aerospace Engineering
Chemical Engineering
Structural Engineering
More...
Health Sciences
Basic Nursing Skills
Health Science Language Fundamentals
Veterinary Technology Medical Language
Cardiology
Clinical Surgery
More...
English
Grammar Fundamentals
Literary And Rhetorical Vocab
Elements Of Style Vocab
Introduction To English Major
Complete Advanced Sentences
Literature
Homonyms
More...
Math
Algebra Formulas
Basic Arithmetic: Measurements
Metric Conversions
Geometric Properties
Important Math Facts
Number Sense Vocab
Business Math
More...
Other Major Subjects
Science
Economics
History
Law
Performing-arts
Cooking
Logic & Reasoning
Trivia
Browse all subjects
Browse all tests
Most popular tests