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. $_POST and $_GET are ________ variables.
predefined
htmlspecialchars()
mysql_fetch_object()
numbers
2. $_POST Data sent using POST found is sent to _______
loops
predefined variable
+= or -= or *= or /=
ASP
3. To find how many substrings are in a string
ksort()
substr_count()
DTD
empty()
4. The output of var_export((float)array(0));
numbers
foreach loop
1
Hex
5. The output of var_export((float)array());
Hex
predefined variable
mysql
0
6. Asynchronous Javascript And XML
error_reporting (E_ALL)
AJAX
variable
unset()
7. The ouput of var_export((bool)"NULL");
abs()
true
string
include() and require()
8. To word wrap after a certain amount of characters.
Parse error
<?php
.=
wordwrap()
9. A conditional or loop is a ________________.
$_REQUEST
Error
control structure
indexed array
10. To include files - _______ will give errors and _________ will terminate execution().
error_reporting (E_ALL)
include() and require()
string
decimal
11. The concatenation operator?
+
string
foreach
the period; .
12. Similar to mysql_fetch_array() - but cannot be accessed by integer offset
Constant
mysql_fetch_object()
preg_split()
server-side programing
13. When used the value can be passed safely through the URL (GET).
urlencode()
array_merge()
<?php
nl2br()
14. The syntax for connecting to a database
$dbc = mysql_connect(hostname, username, password)
htmlspecialchars()
statement
array()
15. To iterate over the values of an array
general
SEO
str_ireplace()
for ($i = 0; $i < count($array); $i++) {statement(s);}
16. Use ______ when there are no variables in the string
preg_replace()
predefined
single quotes
^
17. Use ________ to have multiple quotations in one string
Warning
function
the escape character ''
predefined
18. Function used to round down to the lowest integer
floor()
GET
not
ksort()
19. Search Engine Optimization
WYSIWYG
fopen()
SEO
POST
20. Besides GET and POST ________ can be used to access data but $_POST and $_GET are more precise and therefore preferable.
0
AJAX
$_REQUEST
not
21. The prefix for a dynamic variable - also known as a variable variable
index
$$
PHP
addslashes()
22. Used to create a substring (referred to as a token) from a larger string
true
addslashes()
strtok()
number_format()
23. identity
error_reporting (E_ALL)
===
null
Warning
24. To sort the values while maintaining the correlation between each value and its key
$_SESSION[]
client-side programing
general
asort()
25. This error arises from misusing a function.
E_STRICT
superglobal
Magic Constant
Warning
26. To reset an array _______ the array() function to the array
defined()
reassign
define()
boolean
27. Alias of rtrim()
true
abs()
mysql_fetch_object()
chop()
28. ____ or key is referred to for a value within an array.
list()
index
the escape character ''
curly braces
29. To remove all HTML and PHP tags.
abs()
$varname[key]
strip_tags()
variable
30. container of both data and code
E_STRICT
Object
negative numbers
numbers
31. The concatenation assignment operator?
ceil()
.=
predefined variable
open source
32. signed floating-point value
GET
float
AJAX
parentheses
33. Returns a string with backslashes in front of the specified characters
date()
addcslashes()
Object
DTD
34. Used to check if a variable has any value (including 0 or FALSE or an empty string).
predefined
date()
isset()
Error
35. does a certain action when called upon
chop()
numbers
function
ini_set ('display_errors', 1)
36. This will not show error reporting - it will be turned off.
list()
$dbc = mysql_connect(hostname, username, password)
error_reporting (0)
!= inequality
37. To determine the amount of elements in an array
WYSIWYG
count()
$array[] = item
mysql_fetch_array()
38. Used to encrypt values - it is a one-way encryption method
function error_reporting()
crypt()
underscores
octal
39. A data structure that can hold a number of items of data of the same type eg. a list of names
strip_tags()
^
date()
array
40. Active Server Pages
superglobal
ASP
general
true
41. PHP has two conditional: if and ______.
mysql
switch
integer
foreach
42. searches the subject for matches to a given pattern replaced with the given replacement text
curly braces; ${$total}
preg_replace()
nl2br()
function error_reporting()
43. 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 __________.
0
curly braces; ${$total}
+= or -= or *= or /=
superglobal
44. This will show all error reporting.
strtok()
preg_match()
error_reporting (E_ALL)
if/elseif/else and switch statements
45. Used to remove any white space - spaces or newlines or tabs - from the beginning and end of a string - not the middle.
predefined
include() and require()
control structure
trim()
46. To close a connection between a database
indexed array
array()
function
mysql_close($dbc)
47. Hypertext Preprocessor - a server-side programing language used to create webpages
PHP
server-side programing
Hex
urlencode()
48. Creates a pointer to a file with the declared mode (read - write -etc.).
error_reporting (E_ALL | E_STRICT)
str_word_count()
fopen()
==
49. This fatal error arises from memory allocation problem.
$var++ and $var
Error
function error_reporting()
server-side programing
50. Shorthand used to increment and decrement
<<
str_ireplace()
substr_count()
$var++ and $var
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