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. does a certain action when called upon
if/elseif/else and switch statements
XML
&
function
2. Hyper Text Transfer Protocol
switch
HTTP
loops
strlen()
3. This fatal error arises from memory allocation problem.
html_entity_decode()
Array
Error
is_numeric()
4. Used to create a substring (referred to as a token) from a larger string
the period; .
strtok()
HTML
chop()
5. either hasn't yet been set or is assigned NULL value
float
curly braces
null
html_entity_decode()
6. Function can you use to format a number with commas
<<
$_GET[]
str_ireplace()
number_format()
7. function Function used to create a random number
the dollar sign $
mysql_close($dbc)
rand()
general
8. To sort values of an array without regard to the keys
$_GET[]
sort()
round() Function
null
9. $_SERVER - $_POST - $_GET - $_COOKIE - $_SESSION - $_ENV; special arrays.
superglobal
error_reporting (E_ALL)
floor()
htmlspecialchars()
10. bitwise right shift
>>
precedence
control structure
getrandmax()
11. Returns a character from a specified ASCII value
substr_count()
$_REQUEST
chr()
$varname[key]
12. Used to replace a substring with another string - it is not case-sensitive.
str_ireplace()
HTML
isset()
===
13. print $_SERVER will _____ work if you use the print function on arrays.
not
Parse error
substr_count()
rsort()
14. Tag to begin a php script
error_reporting (0)
htmlentities()
<?php
str_word_count()
15. any programing language where the user must support the language the script is written in
<?php
round() Function
trim()
client-side programing
16. Variable names cannot begin with _______
octal
numbers
preg_match()
curly braces; ${$total}
17. 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 __________.
curly braces; ${$total}
switch
htmlentities()
ASP
18. Used to check if a variable has a valid numerical value; strings with numerical values pass.
chop()
is_numeric()
XOR
0
19. a database which is best supported by PHP
htmlentities()
predefined variable
mysql
$_REQUEST
20. The four main error types are:Notice - Warning - ________ and Error.
&
Parse error
strlen()
client-side programing
21. any programing language where the script is parsed on the server
fopen()
is_numeric()
server-side programing
echo
22. Function used to round up to the highest integer
mysql_fetch_array()
preg_split()
associative array
ceil()
23. To create an array
date()
switch
array()
Magic Constant
24. To iterate over the keys and values of an array
echo
$_SESSION[]
foreach loop
mysql
25. The name of the #! used to designate the location of the PHP binary
error_reporting (E_ALL)
null
Shebang
addcslashes()
26. Converts a string of ASCII characters to hexadecimal values
null
is_numeric()
error_reporting (E_ALL | E_STRICT)
bin2hex()
27. To determine the amount of elements in an array
Hex
Parse error
not
count()
28. To remove all HTML and PHP tags.
strip_tags()
POST
sort()
switch
29. bitwise left shift
double quotes
<<
wordwrap()
null
30. Used to encrypt values - it is a one-way encryption method
crypt()
error_reporting (E_ALL | E_STRICT)
!= inequality
asort()
31. $_POST Data sent using POST found is sent to _______
Magic Constant
ceil()
int
predefined variable
32. _____ is a logical operator
client-side programing
AJAX
XOR
the escape character ''
33. a language in which to make querys to a database with
mysql_fetch_array()
html_entity_decode()
parentheses
sql
34. The seven main SQL (structured query language) functions are alter - create - delete - _______ - insert - select - update
SGML
$dbc = mysql_connect(hostname, username, password)
drop
$var++ and $var
35. Standard Generalized Markup Language
addslashes()
string
SGML
int
36. bitwise XOR
DTD
floor()
^
$$
37. An array whose keys are strings; also known as a hash.
str_word_count()
associative array
strtok()
nl2br()
38. Similar to mysql_fetch_array() - but cannot be accessed by integer offset
wordwrap()
number_format()
+
mysql_fetch_object()
39. To assign array element values to individual variables
Warning
list()
client-side programing
$dbc = mysql_connect(hostname, username, password)
40. Predefined constants such as __LINE__ or __FILE__ or __FUNCTION__ or __CLASS__ and __METHOD__
Magic Constant
the period; .
control structure
curly braces; ${$total}
41. An array of variables passed in the URL
echo
$_GET[]
curly braces
superglobal
42. To refer to an item in an array
not
$varname[key]
substr_count()
precedence
43. used to round numeric values.
0
strip_tags()
round() Function
date()
44. When used the value can be passed safely through the URL (GET).
urlencode()
variable
error_reporting (E_ALL & -E_NOTICE)
GET
45. To merge arrays
<<
<?php
array_merge()
ceil()
46. To sort by the keys while maintaining the correlation between the key and its value
ksort()
Shebang
$_SESSION[]
numbers
47. The syntax for connecting to a database
array_merge()
$dbc = mysql_connect(hostname, username, password)
Constant
AJAX
48. The concatenation operator?
SGML
the period; .
numbers
html_entity_decode()
49. Returns a string with backslashes in front of the specified characters
nl2br()
integer
Notice
addcslashes()
50. Use ______ when a variable contains any amount of variables; in general.
double quotes
unset()
str_word_count()
floor()
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