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. A conditional or loop is a ________________.
POST
date()
===
control structure
2. allows you to split strings based on more complex rules
preg_split()
chr()
define()
underscores
3. equivalence
==
$_REQUEST
list()
E_STRICT
4. This will not show error reporting - it will be turned off.
error_reporting (0)
SGML
the escape character ''
octal
5. collection of binary data
if/elseif/else and switch statements
error_reporting (E_ALL & -E_NOTICE)
string
^
6. either hasn't yet been set or is assigned NULL value
ini_set ('display_errors', 1)
!= inequality
null
fopen()
7. This error refers to a variable with no value.
wordwrap()
str_word_count()
Notice
foreach loop
8. Returns a character from a specified ASCII value
str_ireplace()
the period; .
server-side programing
chr()
9. Used to remove any white space - spaces or newlines or tabs - from the beginning and end of a string - not the middle.
string
trim()
function
rand()
10. To append elements to an array - this will assign item to the next available index; associative arrays get messy.
AJAX
number_format()
$array[] = item
chr()
11. a positive or negative number
precedence
define()
defined()
integer
12. the most basic function in PHP used to output information to the page
htmlspecialchars()
variable
echo
>>
13. identity
array
===
loops
number_format()
14. To find how many substrings are in a string
str_word_count()
parentheses
substr_count()
negative numbers
15. Use ________ to have multiple quotations in one string
POST
isset()
the escape character ''
?>
16. Function used to round up to the highest integer
$_POST[]
==
ini_set ('display_errors', 1)
ceil()
17. To counter htmlentities()
ksort()
HTTP
mysql_fetch_object()
html_entity_decode()
18. Active Server Pages
Object
ksort()
curly braces; ${$total}
ASP
19. To assign keys to the values in an array
floor()
Error
array()
HTTP
20. This will show all error reporting.
parentheses
error_reporting (E_ALL)
server-side programing
+
21. Control structures that break exit
htmlentities()
AJAX
if/elseif/else and switch statements
associative array
22. To declare a constant
mysql
numbers
mysql_fetch_object()
define()
23. bitwise left shift
str_word_count()
<<
array
asort()
24. To assign array element values to individual variables
Array
crypt()
list()
SGML
25. To set up error reporting
mysql_fetch_object()
parentheses
arsort()
function error_reporting()
26. searches the subject for matches to a given pattern replaced with the given replacement text
open source
preg_replace()
function
Notice
27. Used to convert all HTML tags into their entity versions.
shuffle()
htmlentities()
defined()
mysql_fetch_array()
28. Operators used to operate and assign
Magic Constant
+= or -= or *= or /=
Object
general
29. Predefined constants such as __LINE__ or __FILE__ or __FUNCTION__ or __CLASS__ and __METHOD__
substr_count()
$dbc = mysql_connect(hostname, username, password)
boolean
Magic Constant
30. $_POST Data sent using POST found is sent to _______
htmlspecialchars()
predefined variable
Notice
strlen()
31. To refer to an element in a multidimensional array list the indices in order of _____ to more precise;
general
the dollar sign $
associative array
null
32. Use _______ for passwords or pages that would not be bookmarked or pages that require security.
curly braces
unset()
the escape character ''
POST
33. The prefix for a dynamic variable - also known as a variable variable
<?php
$$
mysql_fetch_object()
Constant
34. An array of variables passed in the URL
str_ireplace()
rsort()
bin2hex()
$_GET[]
35. _______ is a comparison operator
!= inequality
parentheses
urlencode()
defined()
36. Used to check if a variable has a valid numerical value; strings with numerical values pass.
curly braces
round() Function
is_numeric()
include() and require()
37. The seven main SQL (structured query language) functions are alter - create - delete - _______ - insert - select - update
boolean
define()
include() and require()
drop
38. The name of the #! used to designate the location of the PHP binary
Shebang
chr()
floor()
urlencode()
39. used to round numeric values.
string
nl2br()
round() Function
curly braces; ${$total}
40. $_SERVER - $_POST - $_GET - $_COOKIE - $_SESSION - $_ENV; special arrays.
open source
foreach loop
superglobal
PHP
41. Used to create a substring (referred to as a token) from a larger string
1
numbers
reassign
strtok()
42. $_SERVER is a ________ variable.
.=
server-side programing
predefined
is_numeric()
43. Use ______ for search engines or catalogued pages or pages that would be bookmarked.
WYSIWYG
GET
>>
fopen()
44. To create an array
mysql_close($dbc)
defined()
array()
not
45. The four main error types are:Notice - Warning - ________ and Error.
.=
Parse error
error_reporting (0)
ini_set ('display_errors', 1)
46. To delete a variable or an element of an array
mysql_fetch_array()
addslashes()
unset()
ASP
47. This error arises from misusing a function.
ceil()
Warning
WYSIWYG
mysql_fetch_object()
48. To iterate over the keys and values of an array
index
$dbc = mysql_connect(hostname, username, password)
getrandmax()
foreach loop
49. a database which is best supported by PHP
XML
mysql
WYSIWYG
$_POST[]
50. To sort the values while maintaining the correlation between each value and its key - in reversed order
defined()
arsort()
client-side programing
POST
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