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. To counter htmlentities()
htmlentities()
ini_set ('display_errors', 1)
null
html_entity_decode()
2. To set up error reporting
general
if/elseif/else and switch statements
$$
function error_reporting()
3. Document Type Definitions
error_reporting (0)
preg_match()
DTD
PHP
4. Variable names can begin with __________
mysql_fetch_object()
underscores
empty()
array_merge()
5. allows you to split strings based on more complex rules
boolean
sql
boolean
preg_split()
6. To word wrap after a certain amount of characters.
wordwrap()
$_SESSION[]
Parse error
echo
7. To reorganise the array randomly
HTTP
wordwrap()
shuffle()
SGML
8. addition
strtok()
chr()
+
mysql
9. any programing language where the script is parsed on the server
server-side programing
loops
null
AJAX
10. To find how many substrings are in a string
substr_count()
PHP
Error
WYSIWYG
11. function Function used to create a random number
floor()
rand()
sql
mysql_fetch_object()
12. An array whose keys are numbers.
variable
indexed array
curly braces; ${$total}
the period; .
13. searches the subject for matches to a given pattern replaced with the given replacement text
preg_replace()
^
numbers
the dollar sign $
14. Control structure that continue exit - they perform specific statements for a determined number of iterations.
double quotes
loops
rsort()
$dbc = mysql_connect(hostname, username, password)
15. Uses two arguments: constant name and constant definition
echo
the escape character ''
$_REQUEST
define()
16. $_POST and $_GET are ________ variables.
foreach loop
superglobal
nl2br()
predefined
17. any programing language where the user must support the language the script is written in
XML
XOR
client-side programing
$_GET[]
18. To sort values of an array in reversed order
rsort()
Parse error
sql
shuffle()
19. An array whose keys are strings; also known as a hash.
associative array
<<
chop()
parentheses
20. Define(NAME,value)
HTML
str_word_count()
Constant
int
21. returns the number of matches found by a given search string under this format...
WYSIWYG
function
HTML
preg_match()
22. To get time data
strtok()
SEO
date()
boolean
23. To sort the values while maintaining the correlation between each value and its key
chop()
not
asort()
nl2br()
24. EXtensible Markup Language
HTML
XML
empty()
negative numbers
25. To sort values of an array without regard to the keys
boolean
int
Parse error
sort()
26. Function used to round up to the highest integer
!= inequality
associative array
for ($i = 0; $i < count($array); $i++) {statement(s);}
ceil()
27. To get over quotation marks while using arrays
Warning
strtok()
fopen()
curly braces
28. When used the value can be passed safely through the URL (GET).
preg_match()
urlencode()
$$
array()
29. To sort by the keys while maintaining the correlation between the key and its value
ASP
ksort()
0
chr()
30. This will not show error reporting - it will be turned off.
count()
error_reporting (0)
.=
boolean
31. does a certain action when called upon
Constant
include() and require()
superglobal
function
32. The concatenation assignment operator?
&
crypt()
include() and require()
.=
33. The concatenation operator?
the period; .
$array[] = item
HTTP
urlencode()
34. To create an array
curly braces
general
array()
numbers
35. Leading 0x: 0x13F or 0xA23
Hex
<<
nl2br()
variable
36. ___________ can be used with substr() to count backward
==
negative numbers
mysql_fetch_object()
integer
37. This fatal error arises from memory allocation problem.
function
wordwrap()
===
Error
38. Use ______ when there are no variables in the string
Hex
ini_set ('display_errors', 1)
$_GET[]
single quotes
39. $_SERVER - $_POST - $_GET - $_COOKIE - $_SESSION - $_ENV; special arrays.
XOR
define()
strlen()
superglobal
40. $_POST Data sent using POST found is sent to _______
$_GET[]
defined()
error_reporting (E_ALL | E_STRICT)
predefined variable
41. Hyper Text Markup Language
predefined
HTML
for ($i = 0; $i < count($array); $i++) {statement(s);}
is_numeric()
42. TRUE or FALSE
associative array
boolean
1
server-side programing
43. What You See Is What You Get
the escape character ''
function error_reporting()
WYSIWYG
predefined
44. This fatal fatal is caused by a semantic mistake: omission of a semicolon or imbalance of quotations or parentheses or braces.
crypt()
HTML
chr()
Parse error
45. _______ is a comparison operator
for ($i = 0; $i < count($array); $i++) {statement(s);}
!= inequality
define()
str_word_count()
46. Use ______ when a variable contains any amount of variables; in general.
chop()
string
double quotes
Hex
47. Used to convert all HTML tags into their entity versions.
crypt()
$_POST[]
htmlentities()
predefined
48. To sort the values while maintaining the correlation between each value and its key - in reversed order
arsort()
htmlspecialchars()
array
if/elseif/else and switch statements
49. To close a connection between a database
mysql_close($dbc)
preg_replace()
mysql_fetch_array()
precedence
50. The output of var_export((float)array());
Parse error
single quotes
empty()
0
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