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. Asynchronous Javascript And XML
AJAX
GET
getrandmax()
numbers
2. Control structures that break exit
double quotes
if/elseif/else and switch statements
DTD
HTML
3. Used to check if a given variable has an "empty" value - no value or 0 or FALSE.
crypt()
$dbc = mysql_connect(hostname, username, password)
statement
empty()
4. Returns an array that corresponds to the fetched row of MySQL data and moves the internal data pointer ahead
+= or -= or *= or /=
shuffle()
mysql_fetch_array()
string
5. An array whose keys are strings; also known as a hash.
preg_split()
Array
nl2br()
associative array
6. signed floating-point value
control structure
HTTP
error_reporting (E_ALL & -E_NOTICE)
float
7. used to round numeric values.
octal
round() Function
decimal
$_GET[]
8. 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 __________.
curly braces; ${$total}
number_format()
bin2hex()
preg_split()
9. Returns a string with backslashes in front of predefined characters
strip_tags()
parentheses
error_reporting (E_ALL | E_STRICT)
addslashes()
10. _________ can be used in conditional statements to set precedence
predefined
preg_match()
parentheses
number_format()
11. Used to check if a variable has any value (including 0 or FALSE or an empty string).
ini_set ('display_errors', 1)
isset()
octal
SEO
12. The name of the #! used to designate the location of the PHP binary
!= inequality
array()
arsort()
Shebang
13. A conditional or loop is a ________________.
negative numbers
preg_split()
control structure
arsort()
14. To iterate over the keys and values of an array
foreach loop
Constant
the dollar sign $
error_reporting (E_ALL & -E_NOTICE)
15. Function can you use to format a number with commas
error_reporting (E_ALL)
general
+
number_format()
16. To sort by the keys while maintaining the correlation between the key and its value
curly braces
ksort()
&
PHP
17. To assign array element values to individual variables
switch
underscores
list()
sql
18. This fatal fatal is caused by a semantic mistake: omission of a semicolon or imbalance of quotations or parentheses or braces.
Parse error
addslashes()
Error
rand()
19. a language in which to make querys to a database with
$_REQUEST
index
curly braces; ${$total}
sql
20. _______ is a comparison operator
!= inequality
$var++ and $var
boolean
>>
21. To include files - _______ will give errors and _________ will terminate execution().
numbers
getrandmax()
chop()
include() and require()
22. says 'if' this then do this 'else' do this or 'while' this do this
statement
predefined variable
htmlentities()
double quotes
23. a line of information that can be stored in a variable or used in a function or statement
round() Function
===
strtok()
string
24. To counter htmlentities()
error_reporting (E_ALL)
Shebang
error_reporting (E_ALL | E_STRICT)
html_entity_decode()
25. The syntax for connecting to a database
control structure
$dbc = mysql_connect(hostname, username, password)
$var++ and $var
?>
26. Besides GET and POST ________ can be used to access data but $_POST and $_GET are more precise and therefore preferable.
precedence
$_REQUEST
date()
?>
27. This will not show error reporting - it will be turned off.
fopen()
strip_tags()
curly braces
error_reporting (0)
28. This fatal error arises from memory allocation problem.
function
numbers
DTD
Error
29. any programing language where the script is parsed on the server
server-side programing
chr()
echo
string
30. To sort the values while maintaining the correlation between each value and its key
htmlspecialchars()
asort()
ini_set ('display_errors', 1)
+= or -= or *= or /=
31. The four main error types are:Notice - Warning - ________ and Error.
integer
error_reporting (0)
Parse error
?>
32. Tag to end a php script
?>
error_reporting (E_ALL)
empty()
&
33. To reset an array _______ the array() function to the array
single quotes
addslashes()
count()
reassign
34. An array whose keys are numbers.
loops
indexed array
array
wordwrap()
35. leading zero: 0100 or 0567
^
Hex
Object
octal
36. EXtensible Markup Language
Parse error
XML
.=
count()
37. To refer to an element in a multidimensional array list the indices in order of _____ to more precise;
predefined
HTML
general
$array[] = item
38. To find how many substrings are in a string
substr_count()
float
Warning
drop
39. An array of variables passed with <input /> data
boolean
<?php
$_POST[]
negative numbers
40. Use _______ for passwords or pages that would not be bookmarked or pages that require security.
error_reporting (E_ALL | E_STRICT)
numbers
Magic Constant
POST
41. To sort values of an array without regard to the keys
associative array
nl2br()
sort()
Magic Constant
42. Returns a string with backslashes in front of the specified characters
+= or -= or *= or /=
addcslashes()
wordwrap()
variable
43. This error refers to a variable with no value.
round() Function
Notice
strlen()
Constant
44. The seven main SQL (structured query language) functions are alter - create - delete - _______ - insert - select - update
GET
drop
Magic Constant
the dollar sign $
45. function Function used to create a random number
rand()
GET
preg_split()
if/elseif/else and switch statements
46. Variable names can begin with __________
underscores
fopen()
define()
PHP
47. An array of variables passed in the URL
indexed array
str_ireplace()
$_GET[]
precedence
48. Document Type Definitions
client-side programing
function
nl2br()
DTD
49. Returns a character from a specified ASCII value
chr()
statement
control structure
if/elseif/else and switch statements
50. equivalence
$_SESSION[]
foreach loop
==
predefined
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