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. Used to create a substring (referred to as a token) from a larger string
unset()
if/elseif/else and switch statements
!= inequality
strtok()
2. 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.
underscores
mysql_close($dbc)
error_reporting (E_ALL | E_STRICT)
drop
3. To refer to an element in a multidimensional array list the indices in order of _____ to more precise;
double quotes
general
Error
isset()
4. Use ______ when there are no variables in the string
0
single quotes
chop()
+= or -= or *= or /=
5. To close a connection between a database
chr()
>>
decimal
mysql_close($dbc)
6. The concatenation assignment operator?
XOR
0
array
.=
7. This will not show error reporting - it will be turned off.
curly braces; ${$total}
error_reporting (0)
ASP
array()
8. To delete a variable or an element of an array
WYSIWYG
shuffle()
unset()
mysql_fetch_array()
9. Online applications and resources which are available to the general public with very few restrictions
control structure
array_merge()
open source
foreach
10. An array whose keys are numbers.
indexed array
ini_set ('display_errors', 1)
nl2br()
preg_match()
11. The seven main error reporting constants are: E_NOTICE - E_WARNING - E_PARSE - E_ERROR - E_ALL - _____ - E_DEPRECATED
strlen()
not
preg_match()
E_STRICT
12. Shorthand used to increment and decrement
$array[] = item
strtok()
$var++ and $var
null
13. This fatal error arises from memory allocation problem.
+
Error
open source
client-side programing
14. This will show all error reporting.
not
integer
$var++ and $var
error_reporting (E_ALL)
15. Control structure that continue exit - they perform specific statements for a determined number of iterations.
mysql_fetch_array()
precedence
loops
$array[] = item
16. Use ______ when a variable contains any amount of variables; in general.
<<
double quotes
sql
string
17. searches the subject for matches to a given pattern replaced with the given replacement text
preg_replace()
crypt()
chop()
if/elseif/else and switch statements
18. bitwise left shift
sql
<<
Magic Constant
nl2br()
19. function Function used to create a random number
true
rand()
boolean
empty()
20. To counter htmlentities()
for ($i = 0; $i < count($array); $i++) {statement(s);}
html_entity_decode()
superglobal
the period; .
21. bitwise AND
open source
array_merge()
&
int
22. An array of variables passed in the URL
$_GET[]
round() Function
error_reporting (E_ALL | E_STRICT)
ini_set ('display_errors', 1)
23. allows you to split strings based on more complex rules
preg_split()
single quotes
Hex
Warning
24. $_SERVER is a ________ variable.
htmlspecialchars()
predefined
integer
Magic Constant
25. Use ______ for search engines or catalogued pages or pages that would be bookmarked.
predefined
$_REQUEST
defined()
GET
26. When used the value can be passed safely through the URL (GET).
str_ireplace()
urlencode()
E_STRICT
variable
27. Function used to round down to the lowest integer
function
sort()
floor()
sql
28. Asynchronous Javascript And XML
.=
array
SGML
AJAX
29. _______ is a comparison operator
AJAX
chr()
!= inequality
floor()
30. To iterate over the keys and values of an array
$_GET[]
the escape character ''
foreach loop
mysql
31. To declare a constant
server-side programing
define()
empty()
==
32. PHP has two conditional: if and ______.
switch
DTD
$array[] = item
round() Function
33. This will show all error reporting except for notice errors.
error_reporting (E_ALL & -E_NOTICE)
rsort()
date()
negative numbers
34. Define(NAME,value)
mysql
Constant
+= or -= or *= or /=
string
35. the most basic function in PHP used to output information to the page
Object
addslashes()
echo
unset()
36. 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 __________.
mysql_close($dbc)
shuffle()
error_reporting (E_ALL | E_STRICT)
curly braces; ${$total}
37. To remove all HTML and PHP tags.
indexed array
define()
strip_tags()
is_numeric()
38. A data structure that can hold a number of items of data of the same type eg. a list of names
ceil()
array
curly braces; ${$total}
statement
39. To get time data
date()
$varname[key]
associative array
error_reporting (E_ALL)
40. Predefined constants such as __LINE__ or __FILE__ or __FUNCTION__ or __CLASS__ and __METHOD__
SEO
switch
drop
Magic Constant
41. Used to find the amount of words in a string.
Object
chop()
str_word_count()
unset()
42. To find how many substrings are in a string
substr_count()
abs()
mysql_fetch_object()
addcslashes()
43. Besides GET and POST ________ can be used to access data but $_POST and $_GET are more precise and therefore preferable.
POST
variable
$_REQUEST
SEO
44. Used to check if a variable has any value (including 0 or FALSE or an empty string).
isset()
shuffle()
htmlentities()
$var++ and $var
45. a database which is best supported by PHP
mysql
ksort()
htmlspecialchars()
predefined
46. To reset an array _______ the array() function to the array
addcslashes()
client-side programing
error_reporting (E_ALL)
reassign
47. To reorganise the array randomly
$_REQUEST
shuffle()
boolean
0
48. Hypertext Preprocessor - a server-side programing language used to create webpages
predefined
PHP
GET
switch
49. Function that contains the highest value that rand() can have randomly
XOR
open source
Notice
getrandmax()
50. used to round numeric values.
switch
round() Function
predefined variable
$varname[key]
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