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. Returns a character from a specified ASCII value
?>
asort()
+= or -= or *= or /=
chr()
2. collection of binary data
Array
==
string
curly braces; ${$total}
3. leading zero: 0100 or 0567
preg_match()
function error_reporting()
PHP
octal
4. To sort the values while maintaining the correlation between each value and its key - in reversed order
rsort()
int
arsort()
array()
5. searches the subject for matches to a given pattern replaced with the given replacement text
mysql
preg_replace()
html_entity_decode()
preg_split()
6. To include files - _______ will give errors and _________ will terminate execution().
WYSIWYG
string
Parse error
include() and require()
7. The three types of loops in PHP are: for - while - ____.
rsort()
+= or -= or *= or /=
foreach
Warning
8. bitwise right shift
boolean
abs()
>>
float
9. To find how many substrings are in a string
substr_count()
index
Hex
preg_match()
10. To counter htmlentities()
general
predefined variable
chr()
html_entity_decode()
11. The array that stores variables specific to a user's visit
precedence
preg_split()
$_SESSION[]
Parse error
12. To sort values of an array in reversed order
rsort()
nl2br()
isset()
rand()
13. 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.
isset()
$_REQUEST
error_reporting (E_ALL | E_STRICT)
mysql
14. An array of variables passed in the URL
+
$_GET[]
parentheses
drop
15. An array of variables passed with <input /> data
<?php
reassign
$_POST[]
empty()
16. PHP has two conditional: if and ______.
switch
associative array
PHP
Shebang
17. Define(NAME,value)
Constant
>>
server-side programing
addcslashes()
18. Asynchronous Javascript And XML
isset()
open source
AJAX
curly braces; ${$total}
19. The syntax for connecting to a database
$dbc = mysql_connect(hostname, username, password)
decimal
Array
int
20. All variables must begin with _________.
==
XML
rsort()
the dollar sign $
21. This error arises from misusing a function.
addcslashes()
strtok()
$_SESSION[]
Warning
22. The seven main SQL (structured query language) functions are alter - create - delete - _______ - insert - select - update
defined()
Shebang
include() and require()
drop
23. TRUE or FALSE
double quotes
boolean
mysql_close($dbc)
echo
24. bitwise left shift
$varname[key]
include() and require()
boolean
<<
25. identity
<?php
Array
===
$_GET[]
26. Predefined constants such as __LINE__ or __FILE__ or __FUNCTION__ or __CLASS__ and __METHOD__
mysql
Magic Constant
nl2br()
SEO
27. signed floating-point value
numbers
$varname[key]
float
htmlspecialchars()
28. says 'if' this then do this 'else' do this or 'while' this do this
chop()
statement
general
function
29. To create an array
array()
index
indexed array
ceil()
30. Used to display errors in a particular script - should be placed at top of script.
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
31. The concatenation assignment operator?
loops
boolean
HTTP
.=
32. 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 __________.
curly braces; ${$total}
<<
&
ini_set ('display_errors', 1)
33. To iterate over the values of an array
nl2br()
Error
for ($i = 0; $i < count($array); $i++) {statement(s);}
Hex
34. To declare a constant
HTTP
define()
preg_split()
boolean
35. Used to find the amount of words in a string.
fopen()
str_word_count()
HTTP
POST
36. Control structures that break exit
$var++ and $var
$_SESSION[]
Magic Constant
if/elseif/else and switch statements
37. print $_SERVER will _____ work if you use the print function on arrays.
$_POST[]
preg_match()
0
not
38. Used to encrypt values - it is a one-way encryption method
HTML
double quotes
crypt()
ASP
39. container of ordered data elements
Array
preg_split()
&
$_SESSION[]
40. The name of the #! used to designate the location of the PHP binary
ceil()
Shebang
string
array()
41. Similar to mysql_fetch_array() - but cannot be accessed by integer offset
echo
mysql_fetch_object()
not
$$
42. a database which is best supported by PHP
shuffle()
?>
general
mysql
43. To get over quotation marks while using arrays
$array[] = item
curly braces
array_merge()
count()
44. Search Engine Optimization
SEO
number_format()
defined()
===
45. Active Server Pages
SEO
ASP
preg_split()
Constant
46. a type with two possible values: true and false
ASP
floor()
boolean
>>
47. This fatal fatal is caused by a semantic mistake: omission of a semicolon or imbalance of quotations or parentheses or braces.
mysql_fetch_array()
Parse error
WYSIWYG
Hex
48. Leading 0x: 0x13F or 0xA23
0
==
.=
Hex
49. To sort the values while maintaining the correlation between each value and its key
indexed array
predefined variable
asort()
string
50. Hyper Text Transfer Protocol
<<
HTTP
unset()
trim()
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