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. To sort values of an array without regard to the keys
array_merge()
sort()
foreach
statement
2. All variables must begin with _________.
open source
the dollar sign $
ini_set ('display_errors', 1)
crypt()
3. TRUE or FALSE
error_reporting (E_ALL | E_STRICT)
curly braces; ${$total}
^
boolean
4. print $_SERVER will _____ work if you use the print function on arrays.
arsort()
sort()
open source
not
5. To refer to an element in a multidimensional array list the indices in order of _____ to more precise;
chop()
&
foreach loop
general
6. The seven main error reporting constants are: E_NOTICE - E_WARNING - E_PARSE - E_ERROR - E_ALL - _____ - E_DEPRECATED
E_STRICT
error_reporting (0)
defined()
null
7. Function that contains the highest value that rand() can have randomly
getrandmax()
number_format()
the period; .
.=
8. Uses two arguments: constant name and constant definition
parentheses
define()
float
floor()
9. Use _______ for passwords or pages that would not be bookmarked or pages that require security.
substr_count()
POST
mysql_fetch_array()
wordwrap()
10. To get over quotation marks while using arrays
nl2br()
curly braces
not
+
11. To include files - _______ will give errors and _________ will terminate execution().
$var++ and $var
Magic Constant
null
include() and require()
12. Operators used to operate and assign
POST
Array
client-side programing
+= or -= or *= or /=
13. To iterate over the values of an array
crypt()
for ($i = 0; $i < count($array); $i++) {statement(s);}
statement
$$
14. The three types of loops in PHP are: for - while - ____.
count()
foreach
the period; .
>>
15. Search Engine Optimization
include() and require()
predefined
addcslashes()
SEO
16. Hyper Text Markup Language
curly braces; ${$total}
HTML
Shebang
preg_replace()
17. The four main error types are:Notice - Warning - ________ and Error.
negative numbers
Parse error
predefined
Shebang
18. identity
the period; .
htmlentities()
===
empty()
19. Hypertext Preprocessor - a server-side programing language used to create webpages
precedence
PHP
Parse error
numbers
20. Used to create a substring (referred to as a token) from a larger string
wordwrap()
$_POST[]
Parse error
strtok()
21. To reset an array _______ the array() function to the array
reassign
chop()
the dollar sign $
predefined
22. To reorganise the array randomly
shuffle()
ini_set ('display_errors', 1)
?>
octal
23. Variable names cannot begin with _______
open source
string
numbers
string
24. container of ordered data elements
chr()
.=
Array
addcslashes()
25. Function used to find the absolute value of a number or numeric variable
XML
mysql_fetch_object()
abs()
Object
26. says 'if' this then do this 'else' do this or 'while' this do this
defined()
statement
DTD
mysql_fetch_array()
27. To sort the values while maintaining the correlation between each value and its key - in reversed order
arsort()
XML
Parse error
string
28. Variable names can begin with __________
string
underscores
parentheses
true
29. To check if a constant is already declared
empty()
drop
defined()
string
30. standard notation
if/elseif/else and switch statements
mysql_fetch_object()
decimal
sql
31. Returns a string with backslashes in front of predefined characters
addslashes()
$_GET[]
defined()
Object
32. A data structure that can hold a number of items of data of the same type eg. a list of names
negative numbers
count()
array
index
33. container of both data and code
html_entity_decode()
GET
preg_replace()
Object
34. What You See Is What You Get
WYSIWYG
rand()
precedence
Warning
35. When used the value can be passed safely through the URL (GET).
numbers
urlencode()
sql
int
36. Besides GET and POST ________ can be used to access data but $_POST and $_GET are more precise and therefore preferable.
addslashes()
$_REQUEST
predefined variable
ASP
37. Function used to round down to the lowest integer
floor()
Hex
boolean
ceil()
38. Function can you use to format a number with commas
number_format()
general
strlen()
$array[] = item
39. Returns a character from a specified ASCII value
string
associative array
chr()
define()
40. Used to check if a given variable has an "empty" value - no value or 0 or FALSE.
+= or -= or *= or /=
$dbc = mysql_connect(hostname, username, password)
mysql_fetch_array()
empty()
41. Use ______ for search engines or catalogued pages or pages that would be bookmarked.
GET
client-side programing
nl2br()
substr_count()
42. 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 __________.
$var++ and $var
int
curly braces; ${$total}
mysql_fetch_array()
43. To create an array
error_reporting (E_ALL | E_STRICT)
array()
htmlentities()
array_merge()
44. Returns an array that corresponds to the fetched row of MySQL data and moves the internal data pointer ahead
mysql_fetch_array()
fopen()
error_reporting (0)
AJAX
45. To counter htmlentities()
html_entity_decode()
control structure
Magic Constant
Array
46. allows you to split strings based on more complex rules
mysql
date()
preg_split()
the dollar sign $
47. Used to convert all HTML tags into their entity versions.
variable
htmlentities()
Hex
===
48. To refer to an item in an array
string
define()
$varname[key]
HTML
49. Tag to end a php script
&
Magic Constant
?>
the period; .
50. Used to remove any white space - spaces or newlines or tabs - from the beginning and end of a string - not the middle.
is_numeric()
echo
underscores
trim()
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