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. signed integer
int
$varname[key]
!= inequality
str_word_count()
2. Document Type Definitions
HTTP
Array
DTD
underscores
3. Used to encrypt values - it is a one-way encryption method
crypt()
floor()
$_POST[]
double quotes
4. 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)
GET
underscores
$_POST[]
5. The concatenation operator?
PHP
$dbc = mysql_connect(hostname, username, password)
the period; .
Hex
6. Use ______ when there are no variables in the string
single quotes
index
foreach loop
number_format()
7. To sort values of an array in reversed order
function
rsort()
Shebang
str_word_count()
8. 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 __________.
asort()
$_GET[]
curly braces; ${$total}
unset()
9. The name of the #! used to designate the location of the PHP binary
Shebang
chr()
control structure
$var++ and $var
10. The syntax for connecting to a database
empty()
Hex
$dbc = mysql_connect(hostname, username, password)
>>
11. Hypertext Preprocessor - a server-side programing language used to create webpages
trim()
SEO
PHP
predefined variable
12. Function that contains the highest value that rand() can have randomly
getrandmax()
html_entity_decode()
chr()
include() and require()
13. To counter htmlentities()
predefined
^
html_entity_decode()
function error_reporting()
14. The concatenation assignment operator?
client-side programing
.=
define()
array_merge()
15. says 'if' this then do this 'else' do this or 'while' this do this
Magic Constant
statement
error_reporting (E_ALL | E_STRICT)
strtok()
16. print $_SERVER will _____ work if you use the print function on arrays.
$dbc = mysql_connect(hostname, username, password)
?>
not
>>
17. Control structures that break exit
include() and require()
0
if/elseif/else and switch statements
not
18. used to round numeric values.
==
Magic Constant
round() Function
SEO
19. Used to create a substring (referred to as a token) from a larger string
mysql_close($dbc)
loops
Object
strtok()
20. collection of binary data
chop()
parentheses
Warning
string
21. either hasn't yet been set or is assigned NULL value
nl2br()
null
chop()
wordwrap()
22. To determine the amount of elements in an array
SEO
count()
error_reporting (0)
^
23. Used to convert all HTML tags into their entity versions.
preg_replace()
function error_reporting()
count()
htmlentities()
24. TRUE or FALSE
boolean
fopen()
+
the escape character ''
25. Active Server Pages
predefined variable
ASP
0
GET
26. To reset an array _______ the array() function to the array
$_SESSION[]
reassign
>>
0
27. bitwise AND
DTD
$array[] = item
&
if/elseif/else and switch statements
28. Standard Generalized Markup Language
SGML
0
strip_tags()
$_GET[]
29. Used to check if a variable has any value (including 0 or FALSE or an empty string).
list()
index
associative array
isset()
30. To find how many substrings are in a string
substr_count()
.=
strip_tags()
double quotes
31. function Function used to create a random number
define()
rand()
chr()
strtok()
32. 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
33. To append elements to an array - this will assign item to the next available index; associative arrays get messy.
ceil()
is_numeric()
$array[] = item
1
34. The order of operations.
<?php
precedence
XML
getrandmax()
35. $_SERVER is a ________ variable.
error_reporting (E_ALL)
0
predefined
the period; .
36. a positive or negative number
integer
&
list()
indexed array
37. To delete a variable or an element of an array
foreach loop
unset()
curly braces; ${$total}
array_merge()
38. _________ can be used in conditional statements to set precedence
parentheses
echo
<?php
crypt()
39. EXtensible Markup Language
array()
XML
mysql_fetch_object()
Parse error
40. The three types of loops in PHP are: for - while - ____.
isset()
foreach
foreach loop
string
41. Used to remove any white space - spaces or newlines or tabs - from the beginning and end of a string - not the middle.
drop
preg_split()
nl2br()
trim()
42. equivalence
error_reporting (E_ALL)
==
0
decimal
43. Returns a string with backslashes in front of the specified characters
===
E_STRICT
&
addcslashes()
44. $_SERVER - $_POST - $_GET - $_COOKIE - $_SESSION - $_ENV; special arrays.
mysql_fetch_object()
superglobal
E_STRICT
substr_count()
45. Use ________ to have multiple quotations in one string
$_GET[]
==
crypt()
the escape character ''
46. identity
WYSIWYG
ASP
===
>>
47. container of both data and code
asort()
1
strip_tags()
Object
48. Search Engine Optimization
for ($i = 0; $i < count($array); $i++) {statement(s);}
SEO
Constant
htmlentities()
49. Tag to end a php script
?>
function error_reporting()
open source
htmlspecialchars()
50. Hyper Text Transfer Protocol
HTTP
is_numeric()
Hex
index
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