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. This will show all error reporting except for notice errors.
Hex
error_reporting (E_ALL & -E_NOTICE)
control structure
null
2. The output of var_export((float)array(0));
1
strip_tags()
HTML
client-side programing
3. Tag to begin a php script
variable
<?php
HTML
function
4. Variable names can begin with __________
DTD
string
underscores
XML
5. The output of var_export((float)array());
not
Error
.=
0
6. PHP has two conditional: if and ______.
boolean
function error_reporting()
switch
isset()
7. _______ is a comparison operator
foreach
!= inequality
string
abs()
8. $_POST and $_GET are ________ variables.
variable
array()
list()
predefined
9. Online applications and resources which are available to the general public with very few restrictions
empty()
open source
predefined
<?php
10. Active Server Pages
curly braces; ${$total}
trim()
ASP
curly braces
11. To assign array element values to individual variables
!= inequality
list()
drop
==
12. To set up error reporting
+= or -= or *= or /=
predefined variable
$_SESSION[]
function error_reporting()
13. To remove all HTML and PHP tags.
for ($i = 0; $i < count($array); $i++) {statement(s);}
general
XOR
strip_tags()
14. The four main error types are:Notice - Warning - ________ and Error.
+
int
Parse error
define()
15. equivalence
==
crypt()
control structure
XML
16. Hyper Text Transfer Protocol
HTTP
.=
the dollar sign $
double quotes
17. Used to check if a variable has any value (including 0 or FALSE or an empty string).
isset()
&
string
Parse error
18. This will show all error reporting.
not
$_POST[]
function
error_reporting (E_ALL)
19. Use ______ when there are no variables in the string
!= inequality
underscores
single quotes
arsort()
20. Use ________ to have multiple quotations in one string
Notice
chr()
the escape character ''
mysql
21. Predefined constants such as __LINE__ or __FILE__ or __FUNCTION__ or __CLASS__ and __METHOD__
mysql_fetch_object()
mysql
function
Magic Constant
22. The name of the #! used to designate the location of the PHP binary
sql
number_format()
array
Shebang
23. used to round numeric values.
round() Function
chr()
array
Notice
24. Function can you use to format a number with commas
nl2br()
drop
number_format()
the escape character ''
25. To iterate over the values of an array
list()
for ($i = 0; $i < count($array); $i++) {statement(s);}
urlencode()
rsort()
26. Shorthand used to increment and decrement
function error_reporting()
negative numbers
$var++ and $var
ceil()
27. Function used to find the absolute value of a number or numeric variable
round() Function
predefined variable
numbers
abs()
28. This error refers to a variable with no value.
Notice
round() Function
chop()
control structure
29. An array whose keys are numbers.
SGML
array()
Shebang
indexed array
30. This will not show error reporting - it will be turned off.
&
rand()
error_reporting (0)
strip_tags()
31. Define(NAME,value)
Constant
fopen()
addcslashes()
htmlentities()
32. $_SERVER - $_POST - $_GET - $_COOKIE - $_SESSION - $_ENV; special arrays.
wordwrap()
loops
fopen()
superglobal
33. To include files - _______ will give errors and _________ will terminate execution().
predefined variable
include() and require()
double quotes
urlencode()
34. searches the subject for matches to a given pattern replaced with the given replacement text
chop()
preg_replace()
array()
$dbc = mysql_connect(hostname, username, password)
35. 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 __________.
sort()
list()
curly braces; ${$total}
mysql_close($dbc)
36. Returns a string with backslashes in front of the specified characters
function error_reporting()
addcslashes()
arsort()
+
37. addition
+
rand()
predefined
Magic Constant
38. 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
39. $_POST Data sent using POST found is sent to _______
getrandmax()
predefined variable
preg_split()
the escape character ''
40. To sort values of an array in reversed order
rsort()
sort()
shuffle()
mysql_fetch_object()
41. To determine the amount of elements in an array
precedence
$$
statement
count()
42. Used to convert all HTML tags into their entity versions.
htmlentities()
ASP
Parse error
wordwrap()
43. Function used to convert new lines in a variable from a form to <br /> tags so that the data can be formatted correctly.
mysql_fetch_object()
array()
DTD
nl2br()
44. Leading 0x: 0x13F or 0xA23
curly braces; ${$total}
addcslashes()
^
Hex
45. any programing language where the user must support the language the script is written in
isset()
HTTP
float
client-side programing
46. Converts a string of ASCII characters to hexadecimal values
.=
bin2hex()
mysql
XML
47. To sort the values while maintaining the correlation between each value and its key
asort()
strtok()
shuffle()
foreach loop
48. This fatal error arises from memory allocation problem.
Error
negative numbers
underscores
$$
49. To sort values of an array without regard to the keys
$varname[key]
reassign
sort()
round() Function
50. signed floating-point value
HTTP
predefined
number_format()
float
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