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 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
2. This error arises from misusing a function.
Magic Constant
preg_match()
SEO
Warning
3. An array of variables passed in the URL
nl2br()
curly braces; ${$total}
$_GET[]
urlencode()
4. What You See Is What You Get
nl2br()
Object
?>
WYSIWYG
5. Use ______ for search engines or catalogued pages or pages that would be bookmarked.
Error
curly braces; ${$total}
rsort()
GET
6. Function used to round up to the highest integer
floor()
loops
ceil()
$varname[key]
7. Hyper Text Markup Language
HTML
isset()
&
foreach
8. signed floating-point value
$var++ and $var
html_entity_decode()
float
wordwrap()
9. $_POST and $_GET are ________ variables.
asort()
ceil()
underscores
predefined
10. does a certain action when called upon
preg_match()
function
Shebang
preg_split()
11. To find how many substrings are in a string
0
Object
substr_count()
control structure
12. Used to remove any white space - spaces or newlines or tabs - from the beginning and end of a string - not the middle.
numbers
shuffle()
HTML
trim()
13. Shorthand used to increment and decrement
statement
SEO
$var++ and $var
Warning
14. Used to encrypt values - it is a one-way encryption method
!= inequality
strlen()
E_STRICT
crypt()
15. a line of information that can be stored in a variable or used in a function or statement
string
foreach loop
client-side programing
htmlentities()
16. Asynchronous Javascript And XML
switch
htmlspecialchars()
AJAX
foreach loop
17. any programing language where the user must support the language the script is written in
statement
client-side programing
is_numeric()
rand()
18. any programing language where the script is parsed on the server
curly braces
AJAX
Shebang
server-side programing
19. Used to find the length of a string
int
addslashes()
strlen()
!= inequality
20. To get time data
<<
date()
PHP
reassign
21. _______ is a comparison operator
addcslashes()
<?php
server-side programing
!= inequality
22. Use ______ when there are no variables in the string
single quotes
nl2br()
ksort()
control structure
23. To remove all HTML and PHP tags.
array()
0
strip_tags()
bin2hex()
24. To refer to an item in an array
$varname[key]
unset()
getrandmax()
POST
25. Online applications and resources which are available to the general public with very few restrictions
error_reporting (E_ALL & -E_NOTICE)
define()
open source
error_reporting (E_ALL)
26. Uses two arguments: constant name and constant definition
control structure
define()
str_ireplace()
preg_match()
27. TRUE or FALSE
htmlspecialchars()
boolean
ceil()
PHP
28. PHP has two conditional: if and ______.
for ($i = 0; $i < count($array); $i++) {statement(s);}
switch
defined()
$_GET[]
29. The name of the #! used to designate the location of the PHP binary
WYSIWYG
Shebang
Parse error
array()
30. a type with two possible values: true and false
boolean
underscores
+
array_merge()
31. To assign keys to the values in an array
XOR
error_reporting (E_ALL)
array()
bin2hex()
32. The array that stores variables specific to a user's visit
mysql_close($dbc)
$_SESSION[]
>>
strtok()
33. EXtensible Markup Language
ASP
error_reporting (E_ALL | E_STRICT)
XML
getrandmax()
34. Operators used to operate and assign
statement
crypt()
+= or -= or *= or /=
error_reporting (E_ALL & -E_NOTICE)
35. When used the value can be passed safely through the URL (GET).
float
the period; .
<?php
urlencode()
36. a database which is best supported by PHP
$array[] = item
DTD
mysql
addslashes()
37. All variables must begin with _________.
the dollar sign $
addcslashes()
PHP
shuffle()
38. either hasn't yet been set or is assigned NULL value
null
?>
POST
indexed array
39. _________ can be used in conditional statements to set precedence
error_reporting (E_ALL & -E_NOTICE)
general
Hex
parentheses
40. To refer to an element in a multidimensional array list the indices in order of _____ to more precise;
HTML
reassign
trim()
general
41. used to round numeric values.
nl2br()
round() Function
<?php
E_STRICT
42. Active Server Pages
$_GET[]
preg_replace()
ASP
$$
43. addition
string
sort()
+
Parse error
44. $_POST Data sent using POST found is sent to _______
htmlspecialchars()
boolean
$_REQUEST
predefined variable
45. signed integer
preg_split()
+= or -= or *= or /=
int
sql
46. Function that contains the highest value that rand() can have randomly
unset()
nl2br()
addslashes()
getrandmax()
47. bitwise XOR
strlen()
Error
client-side programing
^
48. The ouput of var_export((bool)"NULL");
Magic Constant
true
floor()
HTML
49. container of both data and code
Object
str_ireplace()
PHP
precedence
50. collection of binary data
bin2hex()
<?php
single quotes
string
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