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. _____ is a logical operator
Constant
XOR
chop()
$$
2. This will show all error reporting.
error_reporting (E_ALL)
server-side programing
error_reporting (E_ALL & -E_NOTICE)
the escape character ''
3. The name of the #! used to designate the location of the PHP binary
array()
Shebang
arsort()
$_POST[]
4. any programing language where the script is parsed on the server
server-side programing
GET
index
Shebang
5. To find how many substrings are in a string
arsort()
substr_count()
SGML
error_reporting (E_ALL | E_STRICT)
6. The four main error types are:Notice - Warning - ________ and Error.
wordwrap()
Parse error
getrandmax()
function
7. To sort the values while maintaining the correlation between each value and its key - in reversed order
0
preg_split()
str_word_count()
arsort()
8. The seven main SQL (structured query language) functions are alter - create - delete - _______ - insert - select - update
DTD
octal
.=
drop
9. any programing language where the user must support the language the script is written in
Error
Shebang
$$
client-side programing
10. An array whose keys are strings; also known as a hash.
associative array
sort()
HTML
$_GET[]
11. Use _______ for passwords or pages that would not be bookmarked or pages that require security.
addcslashes()
POST
.=
superglobal
12. Used to find the amount of words in a string.
abs()
boolean
double quotes
str_word_count()
13. Creates a pointer to a file with the declared mode (read - write -etc.).
fopen()
function error_reporting()
mysql_fetch_object()
===
14. Define(NAME,value)
array()
Constant
strtok()
general
15. This error refers to a variable with no value.
Notice
getrandmax()
addcslashes()
decimal
16. Used to check if a given variable has an "empty" value - no value or 0 or FALSE.
floor()
sort()
str_ireplace()
empty()
17. To sort by the keys while maintaining the correlation between the key and its value
not
$_POST[]
ksort()
XML
18. When used the value can be passed safely through the URL (GET).
isset()
mysql_fetch_array()
urlencode()
getrandmax()
19. To iterate over the keys and values of an array
getrandmax()
==
the period; .
foreach loop
20. signed integer
define()
Parse error
int
addcslashes()
21. Use ______ when there are no variables in the string
single quotes
.=
Constant
preg_replace()
22. a database which is best supported by PHP
mysql
0
AJAX
string
23. To get over quotation marks while using arrays
curly braces
predefined
nl2br()
$$
24. The concatenation assignment operator?
?>
shuffle()
negative numbers
.=
25. Function used to round up to the highest integer
unset()
ceil()
decimal
fopen()
26. To merge arrays
Magic Constant
empty()
array_merge()
numbers
27. the most basic function in PHP used to output information to the page
array()
predefined
$var++ and $var
echo
28. Use ________ to have multiple quotations in one string
the escape character ''
===
round() Function
<<
29. $_POST Data sent using POST found is sent to _______
PHP
predefined variable
date()
curly braces; ${$total}
30. Used to check if a variable has a valid numerical value; strings with numerical values pass.
numbers
is_numeric()
sort()
urlencode()
31. Asynchronous Javascript And XML
count()
AJAX
$dbc = mysql_connect(hostname, username, password)
$varname[key]
32. This will not show error reporting - it will be turned off.
$var++ and $var
error_reporting (0)
chr()
$_GET[]
33. 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
34. The output of var_export((float)array(0));
shuffle()
sql
1
mysql_fetch_array()
35. To refer to an item in an array
strlen()
number_format()
mysql_close($dbc)
$varname[key]
36. Alias of rtrim()
Parse error
round() Function
chop()
HTML
37. Search Engine Optimization
SEO
Hex
<<
ksort()
38. An array of variables passed with <input /> data
$_POST[]
?>
variable
WYSIWYG
39. Similar to mysql_fetch_array() - but cannot be accessed by integer offset
mysql_fetch_object()
Notice
abs()
GET
40. function Function used to create a random number
control structure
preg_split()
Hex
rand()
41. a line of information that can be stored in a variable or used in a function or statement
string
variable
index
arsort()
42. To close a connection between a database
mysql_close($dbc)
foreach loop
array()
unset()
43. Tag to begin a php script
<?php
the dollar sign $
HTML
statement
44. To determine the amount of elements in an array
Shebang
Error
mysql
count()
45. Function that contains the highest value that rand() can have randomly
getrandmax()
Error
the escape character ''
mysql
46. Used to create a substring (referred to as a token) from a larger string
general
define()
strtok()
array()
47. Used to find the length of a string
error_reporting (E_ALL & -E_NOTICE)
strlen()
XML
predefined variable
48. To set up error reporting
function error_reporting()
superglobal
for ($i = 0; $i < count($array); $i++) {statement(s);}
underscores
49. Used to replace a substring with another string - it is not case-sensitive.
XML
POST
shuffle()
str_ireplace()
50. Predefined constants such as __LINE__ or __FILE__ or __FUNCTION__ or __CLASS__ and __METHOD__
str_ireplace()
indexed array
Magic Constant
the dollar sign $
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