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. print $_SERVER will _____ work if you use the print function on arrays.
not
define()
single quotes
str_word_count()
2. The concatenation assignment operator?
+
.=
sql
ini_set ('display_errors', 1)
3. Used to create a substring (referred to as a token) from a larger string
getrandmax()
$var++ and $var
strtok()
function error_reporting()
4. Returns an array that corresponds to the fetched row of MySQL data and moves the internal data pointer ahead
array()
mysql_fetch_array()
for ($i = 0; $i < count($array); $i++) {statement(s);}
POST
5. equivalence
Constant
predefined variable
==
ceil()
6. The four main error types are:Notice - Warning - ________ and Error.
Parse error
error_reporting (E_ALL)
strtok()
open source
7. Shorthand used to increment and decrement
precedence
function error_reporting()
$var++ and $var
&
8. PHP has two conditional: if and ______.
E_STRICT
switch
preg_replace()
superglobal
9. To iterate over the keys and values of an array
$array[] = item
foreach loop
crypt()
htmlentities()
10. 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 __________.
preg_split()
int
curly braces; ${$total}
include() and require()
11. Used to check if a given variable has an "empty" value - no value or 0 or FALSE.
preg_split()
precedence
reassign
empty()
12. To sort values of an array in reversed order
$var++ and $var
rsort()
trim()
nl2br()
13. container of ordered data elements
Array
string
ASP
$_POST[]
14. Used to find the length of a string
client-side programing
array()
strlen()
boolean
15. A data structure that can hold a number of items of data of the same type eg. a list of names
array
variable
define()
the dollar sign $
16. EXtensible Markup Language
echo
sort()
XML
str_ireplace()
17. bitwise left shift
<<
boolean
negative numbers
DTD
18. The three types of loops in PHP are: for - while - ____.
$_GET[]
foreach
HTTP
list()
19. Use ________ to have multiple quotations in one string
preg_replace()
GET
the escape character ''
$_REQUEST
20. searches the subject for matches to a given pattern replaced with the given replacement text
DTD
preg_replace()
numbers
^
21. To reorganise the array randomly
HTTP
function
shuffle()
E_STRICT
22. To merge arrays
decimal
define()
array_merge()
str_ireplace()
23. Used to convert certain HTML tags into their entity versions.
SEO
predefined
htmlspecialchars()
arsort()
24. $_SERVER - $_POST - $_GET - $_COOKIE - $_SESSION - $_ENV; special arrays.
mysql_fetch_object()
str_word_count()
>>
superglobal
25. To set up error reporting
ASP
function
preg_replace()
function error_reporting()
26. Creates a pointer to a file with the declared mode (read - write -etc.).
shuffle()
fopen()
chr()
str_ireplace()
27. The concatenation operator?
$varname[key]
chr()
the period; .
Notice
28. To assign keys to the values in an array
superglobal
array()
mysql_fetch_object()
shuffle()
29. Used to encrypt values - it is a one-way encryption method
curly braces; ${$total}
ini_set ('display_errors', 1)
substr_count()
crypt()
30. does a certain action when called upon
the dollar sign $
underscores
superglobal
function
31. Online applications and resources which are available to the general public with very few restrictions
open source
statement
the escape character ''
indexed array
32. This fatal error arises from memory allocation problem.
chop()
Error
+
0
33. _________ can be used in conditional statements to set precedence
parentheses
double quotes
?>
sql
34. Similar to mysql_fetch_array() - but cannot be accessed by integer offset
str_ireplace()
null
WYSIWYG
mysql_fetch_object()
35. Used to check if a variable has any value (including 0 or FALSE or an empty string).
precedence
decimal
array()
isset()
36. Leading 0x: 0x13F or 0xA23
empty()
Hex
!= inequality
decimal
37. Returns a character from a specified ASCII value
chr()
Hex
server-side programing
E_STRICT
38. Predefined constants such as __LINE__ or __FILE__ or __FUNCTION__ or __CLASS__ and __METHOD__
Magic Constant
asort()
str_ireplace()
empty()
39. To append elements to an array - this will assign item to the next available index; associative arrays get messy.
empty()
array()
urlencode()
$array[] = item
40. Variable names can begin with __________
underscores
<<
the dollar sign $
HTML
41. the most basic function in PHP used to output information to the page
$_POST[]
negative numbers
echo
$array[] = item
42. To sort the values while maintaining the correlation between each value and its key
preg_replace()
asort()
&
number_format()
43. Besides GET and POST ________ can be used to access data but $_POST and $_GET are more precise and therefore preferable.
array_merge()
variable
$_REQUEST
$array[] = item
44. either hasn't yet been set or is assigned NULL value
AJAX
Warning
1
null
45. Hyper Text Markup Language
HTML
$var++ and $var
htmlentities()
error_reporting (E_ALL & -E_NOTICE)
46. Tag to end a php script
$var++ and $var
Notice
error_reporting (0)
?>
47. Hyper Text Transfer Protocol
Constant
if/elseif/else and switch statements
HTTP
the period; .
48. To find how many substrings are in a string
error_reporting (E_ALL & -E_NOTICE)
preg_match()
substr_count()
POST
49. any programing language where the user must support the language the script is written in
preg_split()
client-side programing
Shebang
&
50. bitwise right shift
>>
foreach loop
rand()
$varname[key]
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