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 convert all HTML tags into their entity versions.
html_entity_decode()
AJAX
htmlentities()
sql
2. An array of variables passed with <input /> data
if/elseif/else and switch statements
trim()
switch
$_POST[]
3. Used to replace a substring with another string - it is not case-sensitive.
error_reporting (E_ALL)
index
str_ireplace()
asort()
4. This error arises from misusing a function.
foreach loop
floor()
Warning
error_reporting (E_ALL & -E_NOTICE)
5. Tag to end a php script
boolean
shuffle()
Hex
?>
6. Besides GET and POST ________ can be used to access data but $_POST and $_GET are more precise and therefore preferable.
the dollar sign $
$_REQUEST
strlen()
HTTP
7. Used to find the amount of words in a string.
drop
str_word_count()
mysql_fetch_object()
ini_set ('display_errors', 1)
8. Document Type Definitions
addslashes()
addcslashes()
$var++ and $var
DTD
9. To sort values of an array in reversed order
count()
float
shuffle()
rsort()
10. Function that contains the highest value that rand() can have randomly
index
Hex
getrandmax()
true
11. container of both data and code
switch
0
rand()
Object
12. any programing language where the script is parsed on the server
true
predefined
server-side programing
preg_replace()
13. To set up error reporting
boolean
function error_reporting()
htmlspecialchars()
sql
14. Hyper Text Transfer Protocol
nl2br()
$_SESSION[]
preg_split()
HTTP
15. equivalence
<?php
abs()
if/elseif/else and switch statements
==
16. To reset an array _______ the array() function to the array
mysql_fetch_object()
reassign
ASP
control structure
17. container of ordered data elements
Array
for ($i = 0; $i < count($array); $i++) {statement(s);}
str_ireplace()
server-side programing
18. The syntax for connecting to a database
AJAX
==
urlencode()
$dbc = mysql_connect(hostname, username, password)
19. leading zero: 0100 or 0567
trim()
date()
error_reporting (0)
octal
20. any programing language where the user must support the language the script is written in
client-side programing
Hex
>>
mysql_fetch_array()
21. _____ is a logical operator
Constant
+= or -= or *= or /=
index
XOR
22. PHP has two conditional: if and ______.
switch
foreach
define()
===
23. Returns an array that corresponds to the fetched row of MySQL data and moves the internal data pointer ahead
mysql_fetch_array()
preg_match()
is_numeric()
strlen()
24. Hypertext Preprocessor - a server-side programing language used to create webpages
htmlentities()
index
$$
PHP
25. signed floating-point value
XML
XOR
rand()
float
26. Predefined constants such as __LINE__ or __FILE__ or __FUNCTION__ or __CLASS__ and __METHOD__
switch
XML
foreach
Magic Constant
27. The name of the #! used to designate the location of the PHP binary
Shebang
XOR
strip_tags()
preg_split()
28. To remove all HTML and PHP tags.
function error_reporting()
empty()
Constant
strip_tags()
29. Variable names cannot begin with _______
numbers
the dollar sign $
addcslashes()
Parse error
30. TRUE or FALSE
if/elseif/else and switch statements
int
boolean
string
31. To sort by the keys while maintaining the correlation between the key and its value
control structure
reassign
ksort()
define()
32. Used to check if a given variable has an "empty" value - no value or 0 or FALSE.
empty()
echo
mysql_close($dbc)
ksort()
33. Use ______ when a variable contains any amount of variables; in general.
POST
decimal
double quotes
PHP
34. Control structure that continue exit - they perform specific statements for a determined number of iterations.
.=
mysql
loops
<<
35. The four main error types are:Notice - Warning - ________ and Error.
Parse error
int
wordwrap()
POST
36. An array whose keys are numbers.
preg_split()
statement
indexed array
+= or -= or *= or /=
37. Variable names can begin with __________
underscores
preg_replace()
foreach loop
predefined variable
38. used to round numeric values.
round() Function
AJAX
DTD
$array[] = item
39. a line of information that can be stored in a variable or used in a function or statement
str_word_count()
asort()
curly braces
string
40. This fatal fatal is caused by a semantic mistake: omission of a semicolon or imbalance of quotations or parentheses or braces.
Constant
+
Parse error
date()
41. $_SERVER - $_POST - $_GET - $_COOKIE - $_SESSION - $_ENV; special arrays.
double quotes
+
superglobal
<?php
42. bitwise left shift
decimal
<<
list()
boolean
43. Use ______ when there are no variables in the string
error_reporting (E_ALL)
shuffle()
single quotes
array()
44. Used to convert certain HTML tags into their entity versions.
general
SEO
htmlspecialchars()
sort()
45. Use _______ for passwords or pages that would not be bookmarked or pages that require security.
floor()
count()
POST
the period; .
46. returns the number of matches found by a given search string under this format...
integer
urlencode()
preg_match()
$_POST[]
47. To get time data
date()
$_SESSION[]
array()
predefined
48. To delete a variable or an element of an array
asort()
for ($i = 0; $i < count($array); $i++) {statement(s);}
sort()
unset()
49. Search Engine Optimization
SEO
chr()
index
>>
50. Function can you use to format a number with commas
XML
number_format()
error_reporting (0)
function
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