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. says 'if' this then do this 'else' do this or 'while' this do this
parentheses
statement
function
the escape character ''
2. The concatenation operator?
the period; .
abs()
the escape character ''
<<
3. To refer to an item in an array
Parse error
array
mysql_fetch_array()
$varname[key]
4. Define(NAME,value)
define()
$_SESSION[]
Constant
Shebang
5. a line of information that can be stored in a variable or used in a function or statement
string
floor()
GET
HTML
6. Leading 0x: 0x13F or 0xA23
array()
Hex
indexed array
if/elseif/else and switch statements
7. To sort values of an array without regard to the keys
sort()
statement
$varname[key]
number_format()
8. bitwise right shift
>>
rsort()
$_REQUEST
echo
9. Variable names cannot begin with _______
statement
$varname[key]
numbers
Array
10. Function used to convert new lines in a variable from a form to <br /> tags so that the data can be formatted correctly.
nl2br()
double quotes
HTTP
urlencode()
11. signed integer
asort()
crypt()
int
ASP
12. To reset an array _______ the array() function to the array
XML
$array[] = item
Notice
reassign
13. does a certain action when called upon
unset()
define()
function
rand()
14. To get over quotation marks while using arrays
PHP
parentheses
curly braces
floor()
15. any programing language where the user must support the language the script is written in
client-side programing
foreach
rand()
include() and require()
16. To check if a constant is already declared
statement
defined()
integer
rand()
17. An array whose keys are strings; also known as a hash.
chr()
predefined
associative array
boolean
18. collection of binary data
html_entity_decode()
$_POST[]
curly braces
string
19. Standard Generalized Markup Language
error_reporting (0)
SGML
mysql_close($dbc)
preg_split()
20. function Function used to create a random number
rsort()
array()
rand()
int
21. a type with two possible values: true and false
htmlspecialchars()
boolean
ini_set ('display_errors', 1)
AJAX
22. Used to check if a variable has any value (including 0 or FALSE or an empty string).
is_numeric()
isset()
open source
the dollar sign $
23. The output of var_export((float)array());
array()
0
preg_match()
bin2hex()
24. Converts a string of ASCII characters to hexadecimal values
bin2hex()
drop
mysql_fetch_array()
$_SESSION[]
25. To sort values of an array in reversed order
mysql
switch
rsort()
define()
26. Used to replace a substring with another string - it is not case-sensitive.
string
&
str_ireplace()
asort()
27. The concatenation assignment operator?
<<
if/elseif/else and switch statements
general
.=
28. standard notation
ASP
mysql_fetch_array()
!= inequality
decimal
29. Use _______ for passwords or pages that would not be bookmarked or pages that require security.
array
function error_reporting()
POST
GET
30. To declare a constant
define()
ini_set ('display_errors', 1)
predefined
parentheses
31. _____ is a logical operator
double quotes
switch
drop
XOR
32. This will show all error reporting.
abs()
E_STRICT
error_reporting (E_ALL)
+
33. Returns a character from a specified ASCII value
numbers
curly braces
negative numbers
chr()
34. To sort by the keys while maintaining the correlation between the key and its value
WYSIWYG
ksort()
XML
bin2hex()
35. A conditional or loop is a ________________.
Parse error
error_reporting (0)
ASP
control structure
36. Used to find the length of a string
negative numbers
strlen()
ini_set ('display_errors', 1)
Parse error
37. searches the subject for matches to a given pattern replaced with the given replacement text
array()
Magic Constant
parentheses
preg_replace()
38. An array whose keys are numbers.
indexed array
substr_count()
associative array
list()
39. To close a connection between a database
numbers
list()
mysql_close($dbc)
string
40. The syntax for connecting to a database
$dbc = mysql_connect(hostname, username, password)
negative numbers
mysql_fetch_object()
+= or -= or *= or /=
41. To set up error reporting
SGML
array()
function error_reporting()
server-side programing
42. Operators used to operate and assign
define()
str_ireplace()
+= or -= or *= or /=
Array
43. Uses two arguments: constant name and constant definition
drop
empty()
bin2hex()
define()
44. Control structure that continue exit - they perform specific statements for a determined number of iterations.
arsort()
Array
loops
WYSIWYG
45. The seven main error reporting constants are: E_NOTICE - E_WARNING - E_PARSE - E_ERROR - E_ALL - _____ - E_DEPRECATED
client-side programing
E_STRICT
index
substr_count()
46. The three types of loops in PHP are: for - while - ____.
unset()
foreach
chr()
int
47. The name of the #! used to designate the location of the PHP binary
===
single quotes
Shebang
array_merge()
48. bitwise AND
!= inequality
&
octal
mysql_close($dbc)
49. To determine the amount of elements in an array
==
count()
precedence
chop()
50. Function used to round down to the lowest integer
floor()
single quotes
echo
mysql_close($dbc)
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