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 reorganise the array randomly
$array[] = item
shuffle()
&
Object
2. To sort values of an array in reversed order
empty()
rsort()
foreach
integer
3. To iterate over the values of an array
for ($i = 0; $i < count($array); $i++) {statement(s);}
strip_tags()
array
bin2hex()
4. used to round numeric values.
round() Function
!= inequality
html_entity_decode()
foreach loop
5. To include files - _______ will give errors and _________ will terminate execution().
error_reporting (0)
sql
include() and require()
drop
6. does a certain action when called upon
&
Hex
function
Shebang
7. print $_SERVER will _____ work if you use the print function on arrays.
not
control structure
mysql_fetch_object()
define()
8. Returns a string with backslashes in front of predefined characters
ksort()
Notice
addslashes()
for ($i = 0; $i < count($array); $i++) {statement(s);}
9. Standard Generalized Markup Language
parentheses
SGML
Shebang
1
10. bitwise XOR
array()
Parse error
>>
^
11. To close a connection between a database
addslashes()
integer
str_word_count()
mysql_close($dbc)
12. To remove all HTML and PHP tags.
true
strip_tags()
predefined variable
define()
13. An array of variables passed with <input /> data
AJAX
strlen()
negative numbers
$_POST[]
14. To iterate over the keys and values of an array
foreach loop
arsort()
&
octal
15. To sort by the keys while maintaining the correlation between the key and its value
single quotes
associative array
ksort()
DTD
16. $_SERVER is a ________ variable.
round() Function
predefined
bin2hex()
true
17. To delete a variable or an element of an array
unset()
null
htmlentities()
precedence
18. $_SERVER - $_POST - $_GET - $_COOKIE - $_SESSION - $_ENV; special arrays.
empty()
floor()
Shebang
superglobal
19. Online applications and resources which are available to the general public with very few restrictions
$_REQUEST
html_entity_decode()
preg_split()
open source
20. Hyper Text Transfer Protocol
HTTP
associative array
true
trim()
21. When used the value can be passed safely through the URL (GET).
Hex
$array[] = item
index
urlencode()
22. Used to create a substring (referred to as a token) from a larger string
string
strtok()
$dbc = mysql_connect(hostname, username, password)
==
23. Similar to mysql_fetch_array() - but cannot be accessed by integer offset
mysql_fetch_object()
for ($i = 0; $i < count($array); $i++) {statement(s);}
html_entity_decode()
$varname[key]
24. This will show all error reporting.
trim()
error_reporting (E_ALL)
define()
0
25. The four main error types are:Notice - Warning - ________ and Error.
boolean
curly braces
Parse error
foreach
26. Use ________ to have multiple quotations in one string
crypt()
superglobal
XOR
the escape character ''
27. Predefined constants such as __LINE__ or __FILE__ or __FUNCTION__ or __CLASS__ and __METHOD__
htmlentities()
defined()
crypt()
Magic Constant
28. signed floating-point value
==
float
boolean
array_merge()
29. Document Type Definitions
urlencode()
DTD
PHP
Parse error
30. To set up error reporting
function error_reporting()
Object
<?php
unset()
31. either hasn't yet been set or is assigned NULL value
strtok()
superglobal
null
mysql_close($dbc)
32. a type with two possible values: true and false
$_GET[]
open source
boolean
XML
33. The syntax for connecting to a database
$dbc = mysql_connect(hostname, username, password)
float
chop()
array()
34. _______ is a comparison operator
1
count()
!= inequality
trim()
35. _____ is a logical operator
general
array
XOR
1
36. Used to convert all HTML tags into their entity versions.
$_SESSION[]
<?php
htmlentities()
E_STRICT
37. searches the subject for matches to a given pattern replaced with the given replacement text
preg_replace()
array
rand()
==
38. Tag to end a php script
loops
$_SESSION[]
indexed array
?>
39. Active Server Pages
curly braces; ${$total}
negative numbers
ASP
null
40. leading zero: 0100 or 0567
mysql_fetch_object()
octal
parentheses
arsort()
41. Used to check if a given variable has an "empty" value - no value or 0 or FALSE.
htmlspecialchars()
empty()
fopen()
include() and require()
42. An array whose keys are strings; also known as a hash.
associative array
$dbc = mysql_connect(hostname, username, password)
preg_split()
loops
43. Use ______ when there are no variables in the string
Constant
Magic Constant
underscores
single quotes
44. 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.
mysql_close($dbc)
function error_reporting()
indexed array
error_reporting (E_ALL | E_STRICT)
45. ___________ can be used with substr() to count backward
function error_reporting()
server-side programing
negative numbers
the dollar sign $
46. This error refers to a variable with no value.
Notice
$_REQUEST
mysql
count()
47. To declare a constant
Parse error
define()
mysql_close($dbc)
shuffle()
48. A data structure that can hold a number of items of data of the same type eg. a list of names
superglobal
array
count()
loops
49. standard notation
decimal
?>
$$
octal
50. Besides GET and POST ________ can be used to access data but $_POST and $_GET are more precise and therefore preferable.
str_word_count()
$_REQUEST
strlen()
Warning
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