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. Function can you use to format a number with commas
strip_tags()
not
number_format()
precedence
2. Function used to round up to the highest integer
decimal
string
HTTP
ceil()
3. The output of var_export((float)array());
server-side programing
Parse error
0
GET
4. bitwise AND
error_reporting (E_ALL & -E_NOTICE)
string
&
Hex
5. The order of operations.
getrandmax()
reassign
precedence
for ($i = 0; $i < count($array); $i++) {statement(s);}
6. _____ is a logical operator
number_format()
$_SESSION[]
XOR
$array[] = item
7. ___________ can be used with substr() to count backward
negative numbers
htmlentities()
$_POST[]
HTML
8. The three types of loops in PHP are: for - while - ____.
switch
indexed array
getrandmax()
foreach
9. This will show all error reporting.
AJAX
+= or -= or *= or /=
error_reporting (E_ALL)
boolean
10. Use ______ when a variable contains any amount of variables; in general.
array()
double quotes
empty()
negative numbers
11. $_SERVER is a ________ variable.
XML
str_ireplace()
decimal
predefined
12. collection of binary data
string
nl2br()
error_reporting (E_ALL | E_STRICT)
addslashes()
13. Function used to convert new lines in a variable from a form to <br /> tags so that the data can be formatted correctly.
isset()
nl2br()
rand()
ceil()
14. Active Server Pages
include() and require()
ASP
strip_tags()
Shebang
15. function Function used to create a random number
fopen()
rand()
<?php
1
16. Control structures that break exit
if/elseif/else and switch statements
reassign
htmlentities()
string
17. An array of variables passed with <input /> data
error_reporting (0)
addcslashes()
$_POST[]
SGML
18. When used the value can be passed safely through the URL (GET).
strtok()
the dollar sign $
urlencode()
AJAX
19. bitwise right shift
urlencode()
>>
predefined variable
error_reporting (E_ALL | E_STRICT)
20. This fatal error arises from memory allocation problem.
reassign
trim()
Error
array
21. 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
22. Shorthand used to increment and decrement
$var++ and $var
arsort()
underscores
superglobal
23. addition
AJAX
Magic Constant
integer
+
24. Used to check if a variable has any value (including 0 or FALSE or an empty string).
single quotes
GET
isset()
ksort()
25. signed integer
the period; .
$var++ and $var
int
wordwrap()
26. a database which is best supported by PHP
mysql
reassign
substr_count()
curly braces; ${$total}
27. Tag to end a php script
?>
list()
bin2hex()
$var++ and $var
28. leading zero: 0100 or 0567
rand()
octal
floor()
predefined
29. Alias of rtrim()
shuffle()
$$
chop()
octal
30. any programing language where the user must support the language the script is written in
true
HTML
include() and require()
client-side programing
31. To reorganise the array randomly
strlen()
int
htmlspecialchars()
shuffle()
32. The seven main error reporting constants are: E_NOTICE - E_WARNING - E_PARSE - E_ERROR - E_ALL - _____ - E_DEPRECATED
statement
double quotes
Hex
E_STRICT
33. Used to find the amount of words in a string.
strip_tags()
str_word_count()
drop
switch
34. Similar to mysql_fetch_array() - but cannot be accessed by integer offset
Notice
if/elseif/else and switch statements
Constant
mysql_fetch_object()
35. This error refers to a variable with no value.
!= inequality
numbers
XML
Notice
36. Tag to begin a php script
ASP
strtok()
<?php
predefined variable
37. searches the subject for matches to a given pattern replaced with the given replacement text
isset()
+
Parse error
preg_replace()
38. The concatenation operator?
general
numbers
AJAX
the period; .
39. a language in which to make querys to a database with
sql
Warning
===
GET
40. container of ordered data elements
AJAX
abs()
Array
^
41. a type with two possible values: true and false
Hex
predefined
boolean
rand()
42. Returns a string with backslashes in front of the specified characters
statement
drop
addcslashes()
str_word_count()
43. 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 __________.
indexed array
>>
curly braces; ${$total}
function error_reporting()
44. Use ______ when there are no variables in the string
array
unset()
single quotes
error_reporting (0)
45. The seven main SQL (structured query language) functions are alter - create - delete - _______ - insert - select - update
XML
XOR
drop
abs()
46. The name of the #! used to designate the location of the PHP binary
ini_set ('display_errors', 1)
define()
SGML
Shebang
47. Use ______ for search engines or catalogued pages or pages that would be bookmarked.
ini_set ('display_errors', 1)
GET
empty()
error_reporting (E_ALL | E_STRICT)
48. 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.
foreach loop
double quotes
error_reporting (E_ALL | E_STRICT)
XML
49. $_POST Data sent using POST found is sent to _______
Hex
count()
predefined variable
mysql_fetch_array()
50. TRUE or FALSE
boolean
empty()
error_reporting (E_ALL | E_STRICT)
0
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