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. Document Type Definitions
define()
chop()
is_numeric()
DTD
2. To find how many substrings are in a string
define()
count()
substr_count()
int
3. $_POST Data sent using POST found is sent to _______
html_entity_decode()
associative array
predefined variable
numbers
4. used to round numeric values.
XOR
sort()
associative array
round() Function
5. When used the value can be passed safely through the URL (GET).
control structure
urlencode()
trim()
0
6. To sort values of an array without regard to the keys
AJAX
sort()
decimal
mysql
7. identity
$var++ and $var
===
Array
<<
8. To create an array
&
ksort()
server-side programing
array()
9. To declare a constant
count()
define()
getrandmax()
numbers
10. An array of variables passed with <input /> data
$_POST[]
predefined
+= or -= or *= or /=
curly braces
11. This will show all errors that fall under E_ALL or E_STRICT - the pipe | is used for 'or' so that errors that fall under either will be shown.
array
crypt()
include() and require()
error_reporting (E_ALL | E_STRICT)
12. collection of binary data
DTD
string
asort()
date()
13. Use _______ for passwords or pages that would not be bookmarked or pages that require security.
empty()
define()
list()
POST
14. Predefined constants such as __LINE__ or __FILE__ or __FUNCTION__ or __CLASS__ and __METHOD__
defined()
mysql_close($dbc)
Magic Constant
error_reporting (E_ALL | E_STRICT)
15. To refer to an item in an array
single quotes
$var++ and $var
strip_tags()
$varname[key]
16. To sort the values while maintaining the correlation between each value and its key
WYSIWYG
asort()
switch
substr_count()
17. leading zero: 0100 or 0567
predefined
octal
curly braces
strip_tags()
18. Used to find the length of a string
strlen()
array
==
mysql_fetch_object()
19. The name of the #! used to designate the location of the PHP binary
define()
Shebang
$varname[key]
predefined variable
20. Use ______ for search engines or catalogued pages or pages that would be bookmarked.
negative numbers
Shebang
GET
bin2hex()
21. Leading 0x: 0x13F or 0xA23
Hex
variable
mysql_close($dbc)
$$
22. To counter htmlentities()
for ($i = 0; $i < count($array); $i++) {statement(s);}
html_entity_decode()
$$
>>
23. a database which is best supported by PHP
mysql
switch
round() Function
SGML
24. To iterate over the keys and values of an array
foreach loop
decimal
error_reporting (0)
count()
25. An array whose keys are strings; also known as a hash.
XOR
associative array
<?php
curly braces; ${$total}
26. Use ________ to have multiple quotations in one string
arsort()
int
error_reporting (E_ALL & -E_NOTICE)
the escape character ''
27. To set up error reporting
asort()
$dbc = mysql_connect(hostname, username, password)
function error_reporting()
octal
28. Define(NAME,value)
indexed array
is_numeric()
control structure
Constant
29. Used to check if a variable has a valid numerical value; strings with numerical values pass.
$varname[key]
is_numeric()
control structure
===
30. Active Server Pages
ASP
superglobal
Constant
>>
31. Online applications and resources which are available to the general public with very few restrictions
strlen()
open source
$_GET[]
ASP
32. To sort the values while maintaining the correlation between each value and its key - in reversed order
!= inequality
arsort()
Object
predefined variable
33. The output of var_export((float)array(0));
predefined
$_POST[]
1
htmlspecialchars()
34. either hasn't yet been set or is assigned NULL value
null
loops
number_format()
$_POST[]
35. Hyper Text Transfer Protocol
switch
1
HTTP
reassign
36. Alias of rtrim()
html_entity_decode()
function error_reporting()
chop()
$_POST[]
37. does a certain action when called upon
true
function
HTML
empty()
38. To determine the amount of elements in an array
underscores
foreach loop
count()
foreach
39. _____ is a logical operator
WYSIWYG
error_reporting (0)
XOR
array()
40. The output of var_export((float)array());
curly braces
asort()
predefined
0
41. Converts a string of ASCII characters to hexadecimal values
is_numeric()
bin2hex()
GET
sql
42. the most basic function in PHP used to output information to the page
Parse error
echo
$varname[key]
predefined
43. To assign array element values to individual variables
urlencode()
sort()
list()
POST
44. allows you to split strings based on more complex rules
date()
preg_split()
preg_replace()
define()
45. The ouput of var_export((bool)"NULL");
index
?>
string
true
46. any programing language where the script is parsed on the server
server-side programing
HTML
underscores
fopen()
47. Use ______ when a variable contains any amount of variables; in general.
XML
fopen()
getrandmax()
double quotes
48. To close a connection between a database
mysql_close($dbc)
preg_split()
HTTP
Magic Constant
49. a positive or negative number
the escape character ''
integer
<<
$varname[key]
50. returns the number of matches found by a given search string under this format...
preg_replace()
Shebang
preg_match()
error_reporting (E_ALL)
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