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 find the length of a string
strip_tags()
strlen()
array()
^
2. This will show all error reporting except for notice errors.
decimal
error_reporting (E_ALL & -E_NOTICE)
predefined
XOR
3. Uses two arguments: constant name and constant definition
define()
Parse error
html_entity_decode()
AJAX
4. identity
define()
float
unset()
===
5. This will show all error reporting.
trim()
XOR
HTTP
error_reporting (E_ALL)
6. collection of binary data
string
^
error_reporting (E_ALL | E_STRICT)
.=
7. signed integer
strlen()
str_word_count()
int
PHP
8. Use ______ for search engines or catalogued pages or pages that would be bookmarked.
GET
==
unset()
the dollar sign $
9. EXtensible Markup Language
rsort()
XML
string
getrandmax()
10. Returns a string with backslashes in front of predefined characters
SEO
unset()
mysql_close($dbc)
addslashes()
11. Tag to end a php script
&
foreach loop
?>
list()
12. The output of var_export((float)array());
Constant
function error_reporting()
function
0
13. Define(NAME,value)
floor()
nl2br()
int
Constant
14. Besides GET and POST ________ can be used to access data but $_POST and $_GET are more precise and therefore preferable.
Parse error
$_REQUEST
octal
array
15. The seven main SQL (structured query language) functions are alter - create - delete - _______ - insert - select - update
index
drop
chr()
$varname[key]
16. To refer to an element in a multidimensional array list the indices in order of _____ to more precise;
mysql_close($dbc)
general
strip_tags()
switch
17. To assign array element values to individual variables
client-side programing
variable
nl2br()
list()
18. Hypertext Preprocessor - a server-side programing language used to create webpages
Parse error
PHP
round() Function
variable
19. To include files - _______ will give errors and _________ will terminate execution().
for ($i = 0; $i < count($array); $i++) {statement(s);}
include() and require()
negative numbers
parentheses
20. Used to check if a given variable has an "empty" value - no value or 0 or FALSE.
ASP
html_entity_decode()
empty()
nl2br()
21. Active Server Pages
round() Function
ASP
float
ksort()
22. The ouput of var_export((bool)"NULL");
XOR
single quotes
substr_count()
true
23. bitwise AND
nl2br()
==
GET
&
24. PHP has two conditional: if and ______.
switch
function
open source
1
25. All variables must begin with _________.
nl2br()
Error
Hex
the dollar sign $
26. This error arises from misusing a function.
strip_tags()
Warning
==
include() and require()
27. To check if a constant is already declared
<?php
single quotes
defined()
Magic Constant
28. ___________ can be used with substr() to count backward
Parse error
integer
+= or -= or *= or /=
negative numbers
29. any programing language where the script is parsed on the server
server-side programing
array
switch
error_reporting (0)
30. container of both data and code
XOR
ASP
Object
POST
31. To find how many substrings are in a string
substr_count()
for ($i = 0; $i < count($array); $i++) {statement(s);}
preg_match()
str_word_count()
32. equivalence
server-side programing
html_entity_decode()
array_merge()
==
33. Leading 0x: 0x13F or 0xA23
html_entity_decode()
string
Hex
Parse error
34. function Function used to create a random number
string
XML
error_reporting (0)
rand()
35. The seven main error reporting constants are: E_NOTICE - E_WARNING - E_PARSE - E_ERROR - E_ALL - _____ - E_DEPRECATED
predefined
boolean
E_STRICT
mysql_close($dbc)
36. Document Type Definitions
strtok()
associative array
DTD
Magic Constant
37. The four main error types are:Notice - Warning - ________ and Error.
urlencode()
array
isset()
Parse error
38. Used to check if a variable has any value (including 0 or FALSE or an empty string).
if/elseif/else and switch statements
chr()
isset()
foreach
39. Online applications and resources which are available to the general public with very few restrictions
server-side programing
$_POST[]
predefined variable
open source
40. Search Engine Optimization
SEO
switch
+= or -= or *= or /=
asort()
41. Returns an array that corresponds to the fetched row of MySQL data and moves the internal data pointer ahead
server-side programing
foreach
&
mysql_fetch_array()
42. Used to replace a substring with another string - it is not case-sensitive.
str_ireplace()
variable
$varname[key]
array_merge()
43. _______ is a comparison operator
associative array
mysql_close($dbc)
!= inequality
htmlspecialchars()
44. any programing language where the user must support the language the script is written in
HTTP
array_merge()
Magic Constant
client-side programing
45. To append elements to an array - this will assign item to the next available index; associative arrays get messy.
!= inequality
$array[] = item
index
echo
46. either hasn't yet been set or is assigned NULL value
SEO
null
associative array
empty()
47. To sort the values while maintaining the correlation between each value and its key - in reversed order
round() Function
$_REQUEST
arsort()
number_format()
48. the most basic function in PHP used to output information to the page
===
$_POST[]
GET
echo
49. Hyper Text Transfer Protocol
HTTP
foreach loop
foreach
mysql
50. Used to create a substring (referred to as a token) from a larger string
htmlspecialchars()
isset()
strtok()
HTTP
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