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. Control structure that continue exit - they perform specific statements for a determined number of iterations.
html_entity_decode()
.=
date()
loops
2. $_SERVER is a ________ variable.
error_reporting (0)
predefined
!= inequality
rand()
3. Tag to begin a php script
error_reporting (E_ALL)
<?php
trim()
strip_tags()
4. Converts a string of ASCII characters to hexadecimal values
bin2hex()
WYSIWYG
negative numbers
htmlspecialchars()
5. Function used to convert new lines in a variable from a form to <br /> tags so that the data can be formatted correctly.
nl2br()
string
substr_count()
float
6. Returns a string with backslashes in front of the specified characters
$dbc = mysql_connect(hostname, username, password)
addcslashes()
<<
<?php
7. Function used to find the absolute value of a number or numeric variable
mysql_fetch_object()
html_entity_decode()
indexed array
abs()
8. Active Server Pages
ASP
<<
ceil()
control structure
9. Used to find the length of a string
HTML
strlen()
control structure
preg_match()
10. To sort by the keys while maintaining the correlation between the key and its value
array()
rsort()
ksort()
numbers
11. signed floating-point value
error_reporting (E_ALL & -E_NOTICE)
float
if/elseif/else and switch statements
!= inequality
12. Besides GET and POST ________ can be used to access data but $_POST and $_GET are more precise and therefore preferable.
$_REQUEST
1
string
array()
13. When used the value can be passed safely through the URL (GET).
string
urlencode()
Shebang
echo
14. To sort the values while maintaining the correlation between each value and its key
parentheses
not
ini_set ('display_errors', 1)
asort()
15. Function used to round down to the lowest integer
variable
floor()
predefined
<?php
16. equivalence
client-side programing
==
?>
octal
17. does a certain action when called upon
sort()
function
$$
Constant
18. Returns a character from a specified ASCII value
$_SESSION[]
parentheses
chr()
rsort()
19. The ouput of var_export((bool)"NULL");
true
function error_reporting()
function
wordwrap()
20. To get over quotation marks while using arrays
str_ireplace()
curly braces
drop
Notice
21. container of ordered data elements
include() and require()
preg_split()
Array
addcslashes()
22. An array of variables passed in the URL
empty()
$_GET[]
nl2br()
$dbc = mysql_connect(hostname, username, password)
23. Hyper Text Markup Language
HTML
asort()
XML
GET
24. The array that stores variables specific to a user's visit
true
mysql_fetch_object()
$_SESSION[]
addcslashes()
25. This fatal fatal is caused by a semantic mistake: omission of a semicolon or imbalance of quotations or parentheses or braces.
single quotes
$_GET[]
curly braces; ${$total}
Parse error
26. A data structure that can hold a number of items of data of the same type eg. a list of names
!= inequality
Hex
array
.=
27. Online applications and resources which are available to the general public with very few restrictions
open source
superglobal
float
SEO
28. This error refers to a variable with no value.
Notice
?>
strlen()
unset()
29. To sort values of an array without regard to the keys
negative numbers
strtok()
sort()
error_reporting (E_ALL)
30. An array whose keys are numbers.
error_reporting (E_ALL)
>>
parentheses
indexed array
31. Used to convert all HTML tags into their entity versions.
substr_count()
predefined
$varname[key]
htmlentities()
32. To iterate over the keys and values of an array
fopen()
foreach loop
$varname[key]
string
33. The output of var_export((float)array(0));
1
$_POST[]
chr()
control structure
34. Search Engine Optimization
.=
indexed array
SEO
<?php
35. To assign array element values to individual variables
list()
mysql_close($dbc)
error_reporting (0)
$_REQUEST
36. To get time data
error_reporting (E_ALL | E_STRICT)
date()
unset()
superglobal
37. To find how many substrings are in a string
general
substr_count()
strlen()
crypt()
38. To set up error reporting
urlencode()
HTTP
function error_reporting()
E_STRICT
39. The three types of loops in PHP are: for - while - ____.
foreach
sort()
strlen()
abs()
40. To sort values of an array in reversed order
predefined
curly braces
mysql
rsort()
41. Leading 0x: 0x13F or 0xA23
statement
parentheses
===
Hex
42. $_POST Data sent using POST found is sent to _______
null
predefined variable
&
getrandmax()
43. bitwise AND
control structure
&
!= inequality
ASP
44. Returns a string with backslashes in front of predefined characters
drop
addslashes()
$_SESSION[]
server-side programing
45. This will show all error reporting except for notice errors.
$_REQUEST
the period; .
error_reporting (E_ALL & -E_NOTICE)
single quotes
46. any programing language where the script is parsed on the server
&
control structure
server-side programing
SGML
47. All variables must begin with _________.
the dollar sign $
GET
round() Function
$dbc = mysql_connect(hostname, username, password)
48. Used to replace a substring with another string - it is not case-sensitive.
sql
str_ireplace()
fopen()
isset()
49. The four main error types are:Notice - Warning - ________ and Error.
Parse error
!= inequality
strip_tags()
array()
50. Use ______ for search engines or catalogued pages or pages that would be bookmarked.
loops
GET
HTML
$_POST[]
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