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. $_SERVER - $_POST - $_GET - $_COOKIE - $_SESSION - $_ENV; special arrays.
superglobal
htmlentities()
chop()
getrandmax()
2. To refer to an item in an array
asort()
crypt()
str_ireplace()
$varname[key]
3. Used to find the length of a string
strlen()
curly braces; ${$total}
parentheses
boolean
4. To create an array
empty()
array()
error_reporting (0)
count()
5. Document Type Definitions
DTD
string
loops
underscores
6. Used to remove any white space - spaces or newlines or tabs - from the beginning and end of a string - not the middle.
trim()
server-side programing
XOR
SEO
7. signed floating-point value
$varname[key]
crypt()
float
index
8. Converts a string of ASCII characters to hexadecimal values
double quotes
$_REQUEST
Hex
bin2hex()
9. Function used to round up to the highest integer
ASP
ceil()
>>
mysql
10. The output of var_export((float)array(0));
POST
predefined variable
1
GET
11. To assign array element values to individual variables
reassign
drop
list()
$$
12. Used to create a substring (referred to as a token) from a larger string
octal
mysql
chr()
strtok()
13. To assign keys to the values in an array
1
$array[] = item
underscores
array()
14. container of both data and code
Object
control structure
Hex
0
15. The order of operations.
$_POST[]
error_reporting (E_ALL)
precedence
$_SESSION[]
16. A data structure that can hold a number of items of data of the same type eg. a list of names
reassign
asort()
array
integer
17. Use ______ when there are no variables in the string
single quotes
SEO
variable
function
18. Used to check if a given variable has an "empty" value - no value or 0 or FALSE.
$$
empty()
curly braces
include() and require()
19. The syntax for connecting to a database
curly braces
getrandmax()
$dbc = mysql_connect(hostname, username, password)
$_GET[]
20. 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 __________.
+= or -= or *= or /=
curly braces; ${$total}
HTML
loops
21. An array whose keys are strings; also known as a hash.
DTD
$var++ and $var
associative array
index
22. a database which is best supported by PHP
array
mysql
include() and require()
parentheses
23. $_POST Data sent using POST found is sent to _______
predefined variable
foreach
Warning
predefined
24. searches the subject for matches to a given pattern replaced with the given replacement text
preg_replace()
addslashes()
associative array
GET
25. To refer to an element in a multidimensional array list the indices in order of _____ to more precise;
ASP
boolean
general
Magic Constant
26. a type with two possible values: true and false
boolean
GET
ksort()
null
27. To determine the amount of elements in an array
superglobal
strtok()
chr()
count()
28. Shorthand used to increment and decrement
$_GET[]
$var++ and $var
mysql_fetch_array()
index
29. Used to check if a variable has any value (including 0 or FALSE or an empty string).
htmlspecialchars()
not
isset()
POST
30. Predefined constants such as __LINE__ or __FILE__ or __FUNCTION__ or __CLASS__ and __METHOD__
Magic Constant
addcslashes()
nl2br()
predefined
31. says 'if' this then do this 'else' do this or 'while' this do this
statement
Object
POST
single quotes
32. Hypertext Preprocessor - a server-side programing language used to create webpages
PHP
boolean
wordwrap()
function
33. To set up error reporting
negative numbers
function error_reporting()
substr_count()
the period; .
34. An array of variables passed with <input /> data
SEO
.=
getrandmax()
$_POST[]
35. Function used to round down to the lowest integer
if/elseif/else and switch statements
htmlentities()
unset()
floor()
36. used to round numeric values.
round() Function
array
WYSIWYG
$_SESSION[]
37. To declare a constant
boolean
substr_count()
define()
statement
38. Use ______ when a variable contains any amount of variables; in general.
statement
parentheses
double quotes
!= inequality
39. Similar to mysql_fetch_array() - but cannot be accessed by integer offset
negative numbers
error_reporting (0)
echo
mysql_fetch_object()
40. An array whose keys are numbers.
boolean
define()
indexed array
<<
41. Active Server Pages
SGML
E_STRICT
ASP
superglobal
42. To merge arrays
function
array_merge()
the period; .
ASP
43. To find how many substrings are in a string
null
string
substr_count()
precedence
44. This will show all error reporting except for notice errors.
GET
null
error_reporting (E_ALL & -E_NOTICE)
array
45. To word wrap after a certain amount of characters.
drop
chop()
wordwrap()
predefined
46. $_POST and $_GET are ________ variables.
predefined
POST
$array[] = item
str_word_count()
47. Used to convert all HTML tags into their entity versions.
strtok()
drop
number_format()
htmlentities()
48. _________ can be used in conditional statements to set precedence
general
underscores
precedence
parentheses
49. The three types of loops in PHP are: for - while - ____.
foreach
not
ceil()
POST
50. The concatenation operator?
the period; .
null
$_SESSION[]
date()
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