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. Use ______ when a variable contains any amount of variables; in general.
array_merge()
<<
<?php
double quotes
2. This will show all error reporting.
$_POST[]
double quotes
function
error_reporting (E_ALL)
3. Besides GET and POST ________ can be used to access data but $_POST and $_GET are more precise and therefore preferable.
$_REQUEST
$varname[key]
statement
Notice
4. Shorthand used to increment and decrement
true
$var++ and $var
$_POST[]
preg_replace()
5. An array whose keys are numbers.
>>
ksort()
Array
indexed array
6. To sort values of an array in reversed order
rsort()
float
str_word_count()
>>
7. Returns a string with backslashes in front of predefined characters
addslashes()
abs()
Array
asort()
8. print $_SERVER will _____ work if you use the print function on arrays.
Notice
unset()
curly braces
not
9. To declare a constant
Magic Constant
curly braces
define()
defined()
10. Control structures that break exit
function error_reporting()
curly braces; ${$total}
XOR
if/elseif/else and switch statements
11. Converts a string of ASCII characters to hexadecimal values
bin2hex()
asort()
addcslashes()
$dbc = mysql_connect(hostname, username, password)
12. Search Engine Optimization
substr_count()
statement
error_reporting (0)
SEO
13. function Function used to create a random number
AJAX
<<
$_SESSION[]
rand()
14. bitwise right shift
control structure
parentheses
bin2hex()
>>
15. When used the value can be passed safely through the URL (GET).
urlencode()
abs()
server-side programing
SEO
16. either hasn't yet been set or is assigned NULL value
&
parentheses
<<
null
17. Used to convert all HTML tags into their entity versions.
<?php
htmlentities()
nl2br()
function error_reporting()
18. The three types of loops in PHP are: for - while - ____.
str_word_count()
array()
foreach
function
19. The array that stores variables specific to a user's visit
Magic Constant
$_SESSION[]
server-side programing
statement
20. Use ______ when there are no variables in the string
define()
arsort()
urlencode()
single quotes
21. signed integer
int
XML
bin2hex()
numbers
22. All variables must begin with _________.
drop
the dollar sign $
Parse error
AJAX
23. Predefined constants such as __LINE__ or __FILE__ or __FUNCTION__ or __CLASS__ and __METHOD__
htmlspecialchars()
Magic Constant
the dollar sign $
define()
24. bitwise left shift
the escape character ''
$_POST[]
strlen()
<<
25. Similar to mysql_fetch_array() - but cannot be accessed by integer offset
statement
nl2br()
mysql_fetch_object()
substr_count()
26. To refer to an item in an array
$varname[key]
^
+= or -= or *= or /=
the period; .
27. searches the subject for matches to a given pattern replaced with the given replacement text
isset()
preg_replace()
$array[] = item
number_format()
28. Use ______ for search engines or catalogued pages or pages that would be bookmarked.
$_GET[]
ceil()
str_word_count()
GET
29. a type with two possible values: true and false
$_GET[]
ksort()
boolean
<?php
30. Returns an array that corresponds to the fetched row of MySQL data and moves the internal data pointer ahead
$$
mysql_fetch_array()
list()
negative numbers
31. Used to find the length of a string
ini_set ('display_errors', 1)
rsort()
strlen()
empty()
32. Alias of rtrim()
strlen()
chop()
curly braces; ${$total}
1
33. a storage location in the computer's memory that has a type & a name and a contents
SEO
date()
number_format()
variable
34. To counter htmlentities()
null
crypt()
predefined
html_entity_decode()
35. bitwise AND
trim()
&
client-side programing
associative array
36. To assign keys to the values in an array
mysql_fetch_object()
POST
array()
date()
37. The four main error types are:Notice - Warning - ________ and Error.
Parse error
unset()
+= or -= or *= or /=
control structure
38. Standard Generalized Markup Language
^
SGML
<?php
===
39. _______ is a comparison operator
reassign
substr_count()
!= inequality
control structure
40. Function that contains the highest value that rand() can have randomly
sql
getrandmax()
asort()
superglobal
41. Operators used to operate and assign
count()
POST
+= or -= or *= or /=
foreach
42. any programing language where the user must support the language the script is written in
loops
function error_reporting()
client-side programing
count()
43. To iterate over the keys and values of an array
foreach loop
1
substr_count()
client-side programing
44. Used to convert certain HTML tags into their entity versions.
$dbc = mysql_connect(hostname, username, password)
^
htmlspecialchars()
Object
45. To get over quotation marks while using arrays
1
isset()
curly braces
server-side programing
46. $_POST and $_GET are ________ variables.
predefined
mysql
echo
+= or -= or *= or /=
47. used to round numeric values.
HTML
wordwrap()
$varname[key]
round() Function
48. TRUE or FALSE
XOR
Magic Constant
boolean
Notice
49. To refer to an element in a multidimensional array list the indices in order of _____ to more precise;
indexed array
curly braces; ${$total}
general
Parse error
50. Leading 0x: 0x13F or 0xA23
predefined
statement
negative numbers
Hex
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