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. Uses two arguments: constant name and constant definition
general
define()
index
sort()
2. TRUE or FALSE
ASP
switch
arsort()
boolean
3. EXtensible Markup Language
wordwrap()
echo
list()
XML
4. Use ______ when a variable contains any amount of variables; in general.
if/elseif/else and switch statements
double quotes
sql
open source
5. _____ is a logical operator
chr()
XOR
nl2br()
str_ireplace()
6. Hyper Text Markup Language
HTML
htmlspecialchars()
curly braces; ${$total}
error_reporting (0)
7. All variables must begin with _________.
string
?>
preg_split()
the dollar sign $
8. leading zero: 0100 or 0567
chop()
octal
Parse error
getrandmax()
9. The ouput of var_export((bool)"NULL");
Array
Error
true
error_reporting (E_ALL)
10. standard notation
decimal
<<
single quotes
trim()
11. An array whose keys are strings; also known as a hash.
wordwrap()
associative array
^
Shebang
12. allows you to split strings based on more complex rules
preg_split()
E_STRICT
superglobal
foreach loop
13. To close a connection between a database
array()
$$
GET
mysql_close($dbc)
14. To reorganise the array randomly
shuffle()
htmlentities()
precedence
function
15. Leading 0x: 0x13F or 0xA23
Hex
boolean
general
indexed array
16. A conditional or loop is a ________________.
control structure
client-side programing
nl2br()
single quotes
17. searches the subject for matches to a given pattern replaced with the given replacement text
is_numeric()
Notice
define()
preg_replace()
18. The seven main SQL (structured query language) functions are alter - create - delete - _______ - insert - select - update
if/elseif/else and switch statements
preg_replace()
drop
for ($i = 0; $i < count($array); $i++) {statement(s);}
19. The output of var_export((float)array(0));
reassign
$_SESSION[]
arsort()
1
20. Tag to begin a php script
<?php
SGML
<<
reassign
21. Control structures that break exit
if/elseif/else and switch statements
getrandmax()
str_word_count()
list()
22. Function that contains the highest value that rand() can have randomly
==
getrandmax()
defined()
switch
23. Standard Generalized Markup Language
define()
is_numeric()
SGML
htmlspecialchars()
24. To word wrap after a certain amount of characters.
strlen()
switch
wordwrap()
HTTP
25. Used to encrypt values - it is a one-way encryption method
sort()
Parse error
$_GET[]
crypt()
26. Used to convert all HTML tags into their entity versions.
string
curly braces
htmlentities()
float
27. To remove all HTML and PHP tags.
shuffle()
strip_tags()
<?php
HTTP
28. To reset an array _______ the array() function to the array
reassign
double quotes
switch
not
29. a type with two possible values: true and false
reassign
boolean
Error
strip_tags()
30. a database which is best supported by PHP
strtok()
mysql
list()
$_GET[]
31. To sort by the keys while maintaining the correlation between the key and its value
==
Hex
ksort()
foreach loop
32. equivalence
curly braces
==
substr_count()
shuffle()
33. To sort values of an array without regard to the keys
array()
single quotes
str_word_count()
sort()
34. To sort the values while maintaining the correlation between each value and its key
Array
reassign
asort()
drop
35. Similar to mysql_fetch_array() - but cannot be accessed by integer offset
mysql_fetch_object()
variable
arsort()
===
36. _______ is a comparison operator
Shebang
predefined variable
null
!= inequality
37. This will not show error reporting - it will be turned off.
server-side programing
single quotes
strlen()
error_reporting (0)
38. PHP has two conditional: if and ______.
Shebang
addcslashes()
switch
array()
39. Document Type Definitions
+
DTD
the period; .
predefined
40. Tag to end a php script
server-side programing
error_reporting (E_ALL | E_STRICT)
string
?>
41. The order of operations.
precedence
predefined variable
+
SEO
42. container of both data and code
abs()
error_reporting (E_ALL)
Object
predefined
43. Used to find the amount of words in a string.
sort()
Parse error
curly braces
str_word_count()
44. $_POST Data sent using POST found is sent to _______
foreach loop
boolean
predefined variable
$_POST[]
45. Alias of rtrim()
Object
chop()
preg_split()
substr_count()
46. To create an array
shuffle()
array()
isset()
string
47. Creates a pointer to a file with the declared mode (read - write -etc.).
POST
predefined
fopen()
for ($i = 0; $i < count($array); $i++) {statement(s);}
48. Active Server Pages
ASP
>>
precedence
error_reporting (E_ALL & -E_NOTICE)
49. The syntax for connecting to a database
$dbc = mysql_connect(hostname, username, password)
list()
general
strtok()
50. either hasn't yet been set or is assigned NULL value
null
not
ASP
unset()
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