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 that contains the highest value that rand() can have randomly
urlencode()
getrandmax()
$_REQUEST
$_SESSION[]
2. The prefix for a dynamic variable - also known as a variable variable
$$
null
loops
error_reporting (0)
3. $_POST Data sent using POST found is sent to _______
urlencode()
str_word_count()
<<
predefined variable
4. signed integer
mysql_fetch_object()
negative numbers
POST
int
5. The output of var_export((float)array(0));
1
function
error_reporting (E_ALL)
Object
6. To sort the values while maintaining the correlation between each value and its key - in reversed order
define()
octal
abs()
arsort()
7. Returns a string with backslashes in front of predefined characters
mysql_fetch_array()
sort()
error_reporting (0)
addslashes()
8. addition
1
trim()
str_ireplace()
+
9. container of ordered data elements
Array
number_format()
shuffle()
is_numeric()
10. What You See Is What You Get
getrandmax()
Object
WYSIWYG
chr()
11. Tag to begin a php script
<?php
POST
predefined variable
fopen()
12. This fatal error arises from memory allocation problem.
Error
fopen()
HTTP
html_entity_decode()
13. A conditional or loop is a ________________.
GET
control structure
preg_replace()
associative array
14. Used to replace a substring with another string - it is not case-sensitive.
open source
str_ireplace()
strlen()
statement
15. This error refers to a variable with no value.
$varname[key]
null
DTD
Notice
16. Control structures that break exit
if/elseif/else and switch statements
boolean
preg_split()
function
17. bitwise right shift
round() Function
>>
parentheses
bin2hex()
18. Function used to round down to the lowest integer
associative array
negative numbers
include() and require()
floor()
19. To merge arrays
chr()
array_merge()
preg_match()
XML
20. searches the subject for matches to a given pattern replaced with the given replacement text
preg_replace()
foreach
XML
float
21. Predefined constants such as __LINE__ or __FILE__ or __FUNCTION__ or __CLASS__ and __METHOD__
curly braces
include() and require()
Magic Constant
error_reporting (E_ALL | E_STRICT)
22. Define(NAME,value)
urlencode()
$_POST[]
mysql
Constant
23. Use ______ when there are no variables in the string
abs()
switch
mysql_fetch_array()
single quotes
24. Uses two arguments: constant name and constant definition
Magic Constant
define()
associative array
negative numbers
25. Hyper Text Transfer Protocol
the dollar sign $
^
HTTP
the escape character ''
26. The ouput of var_export((bool)"NULL");
POST
double quotes
sort()
true
27. returns the number of matches found by a given search string under this format...
Shebang
preg_match()
predefined
+
28. identity
HTML
===
urlencode()
integer
29. To sort values of an array without regard to the keys
DTD
the dollar sign $
sort()
list()
30. To sort by the keys while maintaining the correlation between the key and its value
error_reporting (E_ALL)
$array[] = item
substr_count()
ksort()
31. Used to check if a variable has any value (including 0 or FALSE or an empty string).
variable
define()
chr()
isset()
32. A data structure that can hold a number of items of data of the same type eg. a list of names
array
SEO
single quotes
Constant
33. Tag to end a php script
>>
$_POST[]
?>
bin2hex()
34. Search Engine Optimization
client-side programing
preg_replace()
SEO
strtok()
35. The four main error types are:Notice - Warning - ________ and Error.
SEO
Parse error
<?php
htmlentities()
36. To assign keys to the values in an array
array()
HTML
not
htmlentities()
37. An array of variables passed in the URL
indexed array
$_GET[]
strlen()
list()
38. This will not show error reporting - it will be turned off.
GET
error_reporting (0)
>>
str_ireplace()
39. any programing language where the user must support the language the script is written in
client-side programing
isset()
associative array
arsort()
40. To close a connection between a database
bin2hex()
$dbc = mysql_connect(hostname, username, password)
Warning
mysql_close($dbc)
41. a line of information that can be stored in a variable or used in a function or statement
string
nl2br()
not
Array
42. Returns an array that corresponds to the fetched row of MySQL data and moves the internal data pointer ahead
reassign
?>
Error
mysql_fetch_array()
43. The syntax for connecting to a database
$dbc = mysql_connect(hostname, username, password)
strip_tags()
error_reporting (E_ALL | E_STRICT)
string
44. any programing language where the script is parsed on the server
server-side programing
Shebang
date()
sql
45. Function used to round up to the highest integer
ceil()
>>
$_SESSION[]
curly braces; ${$total}
46. Asynchronous Javascript And XML
AJAX
foreach loop
not
POST
47. To sort values of an array in reversed order
rsort()
underscores
addslashes()
not
48. To counter htmlentities()
precedence
associative array
true
html_entity_decode()
49. signed floating-point value
float
floor()
array()
octal
50. a database which is best supported by PHP
define()
number_format()
$_REQUEST
mysql
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