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. Used to encrypt values - it is a one-way encryption method
strtok()
crypt()
array()
Hex
2. To counter htmlentities()
html_entity_decode()
double quotes
$$
control structure
3. says 'if' this then do this 'else' do this or 'while' this do this
curly braces
statement
Shebang
array_merge()
4. What You See Is What You Get
associative array
reassign
function
WYSIWYG
5. Shorthand used to increment and decrement
HTTP
$var++ and $var
for ($i = 0; $i < count($array); $i++) {statement(s);}
sort()
6. To include files - _______ will give errors and _________ will terminate execution().
include() and require()
getrandmax()
loops
+= or -= or *= or /=
7. ___________ can be used with substr() to count backward
negative numbers
sql
floor()
chr()
8. To sort values of an array without regard to the keys
htmlentities()
sort()
unset()
strtok()
9. $_SERVER - $_POST - $_GET - $_COOKIE - $_SESSION - $_ENV; special arrays.
index
indexed array
superglobal
unset()
10. Used to check if a given variable has an "empty" value - no value or 0 or FALSE.
strlen()
unset()
empty()
mysql_close($dbc)
11. To declare a constant
<?php
defined()
control structure
define()
12. Returns a character from a specified ASCII value
strip_tags()
error_reporting (E_ALL)
chr()
POST
13. Operators used to operate and assign
+= or -= or *= or /=
WYSIWYG
SEO
define()
14. print $_SERVER will _____ work if you use the print function on arrays.
array
not
?>
list()
15. To assign keys to the values in an array
array()
curly braces
Array
parentheses
16. To reorganise the array randomly
Constant
array()
shuffle()
control structure
17. When used the value can be passed safely through the URL (GET).
urlencode()
double quotes
abs()
$_GET[]
18. An array whose keys are strings; also known as a hash.
number_format()
associative array
precedence
define()
19. identity
===
E_STRICT
list()
unset()
20. Function used to round up to the highest integer
round() Function
ceil()
<?php
control structure
21. 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 __________.
+= or -= or *= or /=
curly braces; ${$total}
number_format()
<<
22. _______ is a comparison operator
the escape character ''
Parse error
!= inequality
urlencode()
23. Used to check if a variable has any value (including 0 or FALSE or an empty string).
addcslashes()
ini_set ('display_errors', 1)
switch
isset()
24. allows you to split strings based on more complex rules
htmlentities()
preg_split()
not
strip_tags()
25. Use ________ to have multiple quotations in one string
boolean
asort()
WYSIWYG
the escape character ''
26. Use ______ when there are no variables in the string
single quotes
$_SESSION[]
html_entity_decode()
function
27. Leading 0x: 0x13F or 0xA23
1
Hex
Shebang
ceil()
28. Hyper Text Transfer Protocol
HTTP
sort()
>>
rand()
29. standard notation
HTTP
Error
decimal
DTD
30. used to round numeric values.
round() Function
DTD
is_numeric()
curly braces; ${$total}
31. The syntax for connecting to a database
$dbc = mysql_connect(hostname, username, password)
the dollar sign $
sort()
Object
32. 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.
AJAX
&
numbers
error_reporting (E_ALL | E_STRICT)
33. Uses two arguments: constant name and constant definition
curly braces; ${$total}
array_merge()
define()
preg_replace()
34. 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
35. To word wrap after a certain amount of characters.
chop()
wordwrap()
reassign
ksort()
36. Active Server Pages
floor()
ASP
octal
double quotes
37. The seven main error reporting constants are: E_NOTICE - E_WARNING - E_PARSE - E_ERROR - E_ALL - _____ - E_DEPRECATED
HTTP
E_STRICT
wordwrap()
html_entity_decode()
38. Online applications and resources which are available to the general public with very few restrictions
Shebang
single quotes
open source
string
39. returns the number of matches found by a given search string under this format...
unset()
not
echo
preg_match()
40. The concatenation operator?
function
is_numeric()
the period; .
index
41. Function used to round down to the lowest integer
client-side programing
>>
floor()
mysql_fetch_object()
42. Define(NAME,value)
define()
arsort()
SEO
Constant
43. The array that stores variables specific to a user's visit
octal
Shebang
$var++ and $var
$_SESSION[]
44. $_POST and $_GET are ________ variables.
predefined
Object
getrandmax()
$$
45. Creates a pointer to a file with the declared mode (read - write -etc.).
fopen()
asort()
urlencode()
decimal
46. To sort by the keys while maintaining the correlation between the key and its value
.=
ksort()
getrandmax()
preg_split()
47. The three types of loops in PHP are: for - while - ____.
variable
list()
switch
foreach
48. Used to find the length of a string
mysql_fetch_object()
strlen()
date()
include() and require()
49. EXtensible Markup Language
array
htmlspecialchars()
addslashes()
XML
50. To iterate over the values of an array
for ($i = 0; $i < count($array); $i++) {statement(s);}
underscores
predefined
mysql_fetch_array()
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