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. This will show all error reporting except for notice errors.
error_reporting (E_ALL & -E_NOTICE)
Parse error
error_reporting (0)
HTML
2. What You See Is What You Get
round() Function
str_word_count()
WYSIWYG
trim()
3. Returns an array that corresponds to the fetched row of MySQL data and moves the internal data pointer ahead
Magic Constant
associative array
mysql_fetch_array()
htmlentities()
4. To declare a constant
crypt()
POST
define()
wordwrap()
5. The output of var_export((float)array(0));
1
single quotes
associative array
string
6. 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.
error_reporting (E_ALL | E_STRICT)
^
function error_reporting()
unset()
7. The seven main SQL (structured query language) functions are alter - create - delete - _______ - insert - select - update
+= or -= or *= or /=
drop
urlencode()
str_word_count()
8. any programing language where the user must support the language the script is written in
string
Error
client-side programing
str_ireplace()
9. returns the number of matches found by a given search string under this format...
for ($i = 0; $i < count($array); $i++) {statement(s);}
defined()
preg_match()
variable
10. This error arises from misusing a function.
+
wordwrap()
switch
Warning
11. Returns a string with backslashes in front of predefined characters
Object
addslashes()
addcslashes()
$varname[key]
12. Used to remove any white space - spaces or newlines or tabs - from the beginning and end of a string - not the middle.
DTD
Constant
trim()
Parse error
13. To refer to an item in an array
$varname[key]
nl2br()
error_reporting (E_ALL)
single quotes
14. PHP has two conditional: if and ______.
switch
reassign
0
numbers
15. Used to encrypt values - it is a one-way encryption method
crypt()
echo
Parse error
Error
16. either hasn't yet been set or is assigned NULL value
null
Magic Constant
variable
server-side programing
17. Leading 0x: 0x13F or 0xA23
Hex
===
Error
precedence
18. $_POST Data sent using POST found is sent to _______
predefined variable
null
sql
associative array
19. Function used to round up to the highest integer
fopen()
ceil()
error_reporting (0)
predefined
20. Tag to end a php script
Hex
predefined
error_reporting (E_ALL)
?>
21. To include files - _______ will give errors and _________ will terminate execution().
+
Notice
crypt()
include() and require()
22. The four main error types are:Notice - Warning - ________ and Error.
html_entity_decode()
Parse error
Array
error_reporting (E_ALL)
23. any programing language where the script is parsed on the server
associative array
crypt()
fopen()
server-side programing
24. bitwise right shift
WYSIWYG
substr_count()
>>
PHP
25. bitwise AND
&
str_ireplace()
Parse error
the period; .
26. Use ________ to have multiple quotations in one string
Object
defined()
abs()
the escape character ''
27. ____ or key is referred to for a value within an array.
index
strip_tags()
loops
sort()
28. container of ordered data elements
defined()
Array
!= inequality
preg_split()
29. To determine the amount of elements in an array
ceil()
Parse error
array_merge()
count()
30. To assign array element values to individual variables
the period; .
Error
list()
floor()
31. $_POST and $_GET are ________ variables.
$_SESSION[]
Constant
predefined
statement
32. searches the subject for matches to a given pattern replaced with the given replacement text
underscores
$array[] = item
AJAX
preg_replace()
33. To get time data
date()
true
Warning
strtok()
34. Used to find the length of a string
strlen()
superglobal
$_REQUEST
mysql
35. When used the value can be passed safely through the URL (GET).
count()
urlencode()
integer
preg_match()
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 __________.
addcslashes()
curly braces; ${$total}
count()
+= or -= or *= or /=
37. identity
===
^
index
string
38. To sort the values while maintaining the correlation between each value and its key
asort()
chr()
floor()
ini_set ('display_errors', 1)
39. Asynchronous Javascript And XML
addslashes()
AJAX
empty()
crypt()
40. Operators used to operate and assign
+= or -= or *= or /=
single quotes
chr()
Array
41. a storage location in the computer's memory that has a type & a name and a contents
str_ireplace()
$$
!= inequality
variable
42. To reorganise the array randomly
associative array
echo
$_REQUEST
shuffle()
43. To create an array
$_GET[]
array()
foreach
trim()
44. Shorthand used to increment and decrement
defined()
$var++ and $var
crypt()
control structure
45. Variable names can begin with __________
the dollar sign $
defined()
underscores
urlencode()
46. Hyper Text Markup Language
HTML
mysql_fetch_array()
foreach
client-side programing
47. EXtensible Markup Language
underscores
isset()
XML
variable
48. Use ______ for search engines or catalogued pages or pages that would be bookmarked.
Object
foreach
GET
html_entity_decode()
49. Control structures that break exit
Warning
octal
predefined
if/elseif/else and switch statements
50. To close a connection between a database
POST
$_GET[]
mysql_close($dbc)
mysql_fetch_array()
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