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. Active Server Pages
Parse error
htmlentities()
round() Function
ASP
2. The four main error types are:Notice - Warning - ________ and Error.
Parse error
<<
round() Function
chr()
3. To reorganise the array randomly
shuffle()
fopen()
0
str_word_count()
4. Standard Generalized Markup Language
abs()
SGML
strlen()
statement
5. Returns an array that corresponds to the fetched row of MySQL data and moves the internal data pointer ahead
strlen()
mysql_fetch_array()
not
double quotes
6. The three types of loops in PHP are: for - while - ____.
define()
foreach
string
substr_count()
7. returns the number of matches found by a given search string under this format...
the escape character ''
preg_match()
general
wordwrap()
8. To sort the values while maintaining the correlation between each value and its key
array_merge()
predefined
asort()
underscores
9. To include files - _______ will give errors and _________ will terminate execution().
floor()
preg_split()
decimal
include() and require()
10. bitwise XOR
array()
urlencode()
^
HTML
11. Besides GET and POST ________ can be used to access data but $_POST and $_GET are more precise and therefore preferable.
array()
variable
$_REQUEST
$_POST[]
12. signed floating-point value
negative numbers
curly braces
float
html_entity_decode()
13. A conditional or loop is a ________________.
server-side programing
control structure
include() and require()
mysql_close($dbc)
14. a positive or negative number
Constant
Parse error
crypt()
integer
15. Variable names cannot begin with _______
Hex
XML
numbers
function error_reporting()
16. $_SERVER is a ________ variable.
htmlspecialchars()
mysql_fetch_array()
predefined variable
predefined
17. To get time data
general
wordwrap()
date()
<<
18. _________ can be used in conditional statements to set precedence
foreach loop
reassign
parentheses
function error_reporting()
19. Function used to convert new lines in a variable from a form to <br /> tags so that the data can be formatted correctly.
boolean
$varname[key]
nl2br()
single quotes
20. Function that contains the highest value that rand() can have randomly
getrandmax()
sql
the period; .
error_reporting (E_ALL)
21. Operators used to operate and assign
+= or -= or *= or /=
curly braces; ${$total}
mysql_close($dbc)
Constant
22. To sort the values while maintaining the correlation between each value and its key - in reversed order
arsort()
single quotes
htmlspecialchars()
Object
23. _______ is a comparison operator
statement
Shebang
!= inequality
chr()
24. Asynchronous Javascript And XML
^
for ($i = 0; $i < count($array); $i++) {statement(s);}
AJAX
control structure
25. This will not show error reporting - it will be turned off.
error_reporting (0)
XML
^
loops
26. TRUE or FALSE
the escape character ''
boolean
the dollar sign $
Object
27. When used the value can be passed safely through the URL (GET).
mysql_fetch_object()
urlencode()
PHP
preg_replace()
28. Online applications and resources which are available to the general public with very few restrictions
preg_replace()
open source
octal
drop
29. Use _______ for passwords or pages that would not be bookmarked or pages that require security.
POST
Notice
is_numeric()
empty()
30. A data structure that can hold a number of items of data of the same type eg. a list of names
unset()
array()
array
drop
31. The output of var_export((float)array());
loops
statement
0
array_merge()
32. This will show all error reporting except for notice errors.
error_reporting (E_ALL | E_STRICT)
error_reporting (E_ALL & -E_NOTICE)
curly braces; ${$total}
date()
33. Control structures that break exit
!= inequality
if/elseif/else and switch statements
define()
empty()
34. either hasn't yet been set or is assigned NULL value
open source
drop
null
&
35. Use ______ when a variable contains any amount of variables; in general.
double quotes
drop
$_POST[]
chop()
36. To word wrap after a certain amount of characters.
open source
statement
date()
wordwrap()
37. This fatal error arises from memory allocation problem.
curly braces; ${$total}
Notice
boolean
Error
38. An array of variables passed with <input /> data
isset()
$_POST[]
superglobal
drop
39. searches the subject for matches to a given pattern replaced with the given replacement text
define()
strip_tags()
number_format()
preg_replace()
40. Used to encrypt values - it is a one-way encryption method
string
open source
crypt()
shuffle()
41. Uses two arguments: constant name and constant definition
number_format()
addcslashes()
predefined variable
define()
42. This error arises from misusing a function.
$$
Warning
$array[] = item
list()
43. 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)
<<
mysql_fetch_object()
preg_replace()
44. any programing language where the script is parsed on the server
Magic Constant
drop
floor()
server-side programing
45. Search Engine Optimization
SEO
preg_match()
!= inequality
rand()
46. To merge arrays
array_merge()
asort()
decimal
sql
47. Tag to end a php script
?>
general
XML
open source
48. Use ______ for search engines or catalogued pages or pages that would be bookmarked.
GET
array_merge()
rsort()
chr()
49. To reset an array _______ the array() function to the array
list()
chop()
$_REQUEST
reassign
50. The output of var_export((float)array(0));
ceil()
getrandmax()
1
negative numbers
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