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. Tag to end a php script
?>
single quotes
double quotes
$var++ and $var
2. Alias of rtrim()
chop()
array_merge()
arsort()
htmlentities()
3. The syntax for connecting to a database
$dbc = mysql_connect(hostname, username, password)
SEO
bin2hex()
E_STRICT
4. 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}
Magic Constant
the period; .
html_entity_decode()
5. Variable names can begin with __________
^
underscores
boolean
octal
6. Used to replace a substring with another string - it is not case-sensitive.
str_ireplace()
array()
general
HTTP
7. either hasn't yet been set or is assigned NULL value
count()
null
str_word_count()
bin2hex()
8. PHP has two conditional: if and ______.
switch
Notice
loops
Error
9. Active Server Pages
POST
ASP
array
octal
10. Document Type Definitions
Error
strip_tags()
DTD
string
11. Use ______ when a variable contains any amount of variables; in general.
double quotes
$_GET[]
for ($i = 0; $i < count($array); $i++) {statement(s);}
chr()
12. Used to display errors in a particular script - should be placed at top of script.
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
13. allows you to split strings based on more complex rules
list()
preg_split()
nl2br()
switch
14. $_POST Data sent using POST found is sent to _______
predefined variable
error_reporting (E_ALL)
.=
negative numbers
15. Hyper Text Markup Language
associative array
crypt()
HTML
Object
16. Standard Generalized Markup Language
mysql
PHP
SGML
foreach
17. Function that contains the highest value that rand() can have randomly
indexed array
index
strlen()
getrandmax()
18. TRUE or FALSE
htmlspecialchars()
chop()
mysql_fetch_array()
boolean
19. ____ or key is referred to for a value within an array.
index
preg_replace()
underscores
date()
20. Use ______ when there are no variables in the string
single quotes
octal
true
not
21. An array whose keys are numbers.
date()
true
indexed array
sort()
22. any programing language where the script is parsed on the server
true
ksort()
isset()
server-side programing
23. Besides GET and POST ________ can be used to access data but $_POST and $_GET are more precise and therefore preferable.
precedence
mysql
$_REQUEST
reassign
24. _______ is a comparison operator
array()
rsort()
WYSIWYG
!= inequality
25. To declare a constant
Hex
unset()
int
define()
26. All variables must begin with _________.
round() Function
the dollar sign $
strtok()
preg_split()
27. the most basic function in PHP used to output information to the page
Array
echo
Shebang
predefined
28. $_SERVER is a ________ variable.
array()
chop()
predefined
string
29. To sort values of an array in reversed order
unset()
the period; .
rsort()
addcslashes()
30. Operators used to operate and assign
>>
+= or -= or *= or /=
function error_reporting()
superglobal
31. The four main error types are:Notice - Warning - ________ and Error.
chr()
Parse error
parentheses
the period; .
32. The concatenation assignment operator?
.=
include() and require()
string
array
33. a positive or negative number
^
general
chr()
integer
34. To sort the values while maintaining the correlation between each value and its key
asort()
shuffle()
Magic Constant
1
35. The ouput of var_export((bool)"NULL");
wordwrap()
predefined
Parse error
true
36. This will not show error reporting - it will be turned off.
!= inequality
$_POST[]
$$
error_reporting (0)
37. Asynchronous Javascript And XML
variable
trim()
AJAX
getrandmax()
38. returns the number of matches found by a given search string under this format...
addcslashes()
ASP
GET
preg_match()
39. Used to check if a variable has any value (including 0 or FALSE or an empty string).
array()
<<
isset()
statement
40. Hyper Text Transfer Protocol
HTTP
error_reporting (E_ALL)
ini_set ('display_errors', 1)
$$
41. Control structure that continue exit - they perform specific statements for a determined number of iterations.
general
Constant
loops
.=
42. To set up error reporting
ASP
error_reporting (E_ALL | E_STRICT)
function error_reporting()
mysql_fetch_object()
43. This will show all error reporting.
foreach
str_word_count()
error_reporting (E_ALL)
error_reporting (0)
44. To refer to an item in an array
indexed array
crypt()
array()
$varname[key]
45. This error arises from misusing a function.
server-side programing
the dollar sign $
Warning
rsort()
46. To assign keys to the values in an array
str_word_count()
index
date()
array()
47. EXtensible Markup Language
foreach loop
$$
if/elseif/else and switch statements
XML
48. Hypertext Preprocessor - a server-side programing language used to create webpages
Warning
PHP
negative numbers
sql
49. What You See Is What You Get
isset()
decimal
WYSIWYG
$dbc = mysql_connect(hostname, username, password)
50. To include files - _______ will give errors and _________ will terminate execution().
substr_count()
==
abs()
include() and require()
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