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 iterate over the values of an array
===
$array[] = item
boolean
for ($i = 0; $i < count($array); $i++) {statement(s);}
2. standard notation
decimal
precedence
>>
AJAX
3. The output of var_export((float)array());
0
foreach loop
+= or -= or *= or /=
curly braces; ${$total}
4. bitwise left shift
date()
<<
shuffle()
switch
5. does a certain action when called upon
error_reporting (E_ALL & -E_NOTICE)
function
wordwrap()
addslashes()
6. To set up error reporting
index
function error_reporting()
function
<<
7. Standard Generalized Markup Language
empty()
SGML
$_POST[]
client-side programing
8. collection of binary data
string
addcslashes()
wordwrap()
addslashes()
9. An array whose keys are strings; also known as a hash.
list()
associative array
XOR
error_reporting (0)
10. Use ______ for search engines or catalogued pages or pages that would be bookmarked.
array
==
GET
fopen()
11. 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 __________.
variable
curly braces; ${$total}
XML
predefined variable
12. To delete a variable or an element of an array
unset()
WYSIWYG
foreach loop
error_reporting (E_ALL)
13. any programing language where the user must support the language the script is written in
client-side programing
&
sort()
define()
14. The four main error types are:Notice - Warning - ________ and Error.
$dbc = mysql_connect(hostname, username, password)
decimal
drop
Parse error
15. signed floating-point value
error_reporting (E_ALL | E_STRICT)
htmlentities()
float
nl2br()
16. Active Server Pages
XML
switch
ASP
$$
17. To create an array
Shebang
array()
mysql
not
18. Used to check if a variable has a valid numerical value; strings with numerical values pass.
index
superglobal
is_numeric()
predefined
19. Control structure that continue exit - they perform specific statements for a determined number of iterations.
loops
html_entity_decode()
double quotes
preg_replace()
20. allows you to split strings based on more complex rules
preg_split()
array_merge()
general
error_reporting (E_ALL & -E_NOTICE)
21. signed integer
Magic Constant
int
array_merge()
&
22. Tag to end a php script
===
?>
chr()
mysql_fetch_object()
23. _______ is a comparison operator
$array[] = item
Notice
!= inequality
reassign
24. The name of the #! used to designate the location of the PHP binary
Constant
Shebang
preg_replace()
GET
25. This will show all error reporting except for notice errors.
crypt()
unset()
$var++ and $var
error_reporting (E_ALL & -E_NOTICE)
26. This error arises from misusing a function.
general
Warning
$var++ and $var
error_reporting (E_ALL)
27. To find how many substrings are in a string
abs()
str_ireplace()
substr_count()
fopen()
28. To reset an array _______ the array() function to the array
reassign
strip_tags()
.=
int
29. Used to find the amount of words in a string.
HTTP
asort()
Parse error
str_word_count()
30. Uses two arguments: constant name and constant definition
underscores
define()
Parse error
$_GET[]
31. $_POST Data sent using POST found is sent to _______
!= inequality
function
function error_reporting()
predefined variable
32. To assign keys to the values in an array
array()
getrandmax()
client-side programing
asort()
33. To reorganise the array randomly
number_format()
wordwrap()
shuffle()
<<
34. Returns a string with backslashes in front of predefined characters
boolean
client-side programing
<<
addslashes()
35. Function used to convert new lines in a variable from a form to <br /> tags so that the data can be formatted correctly.
substr_count()
nl2br()
open source
mysql_fetch_object()
36. Used to encrypt values - it is a one-way encryption method
mysql_fetch_object()
precedence
crypt()
AJAX
37. Used to create a substring (referred to as a token) from a larger string
substr_count()
strtok()
round() Function
the period; .
38. bitwise XOR
$var++ and $var
array()
HTML
^
39. The order of operations.
precedence
associative array
sql
numbers
40. Use ________ to have multiple quotations in one string
the escape character ''
curly braces
E_STRICT
$var++ and $var
41. An array of variables passed with <input /> data
chop()
Array
$_POST[]
single quotes
42. Hypertext Preprocessor - a server-side programing language used to create webpages
list()
GET
PHP
error_reporting (E_ALL)
43. _________ can be used in conditional statements to set precedence
number_format()
SGML
Shebang
parentheses
44. The three types of loops in PHP are: for - while - ____.
single quotes
+= or -= or *= or /=
Error
foreach
45. the most basic function in PHP used to output information to the page
echo
preg_replace()
mysql_fetch_array()
nl2br()
46. The seven main SQL (structured query language) functions are alter - create - delete - _______ - insert - select - update
ksort()
preg_replace()
drop
int
47. To assign array element values to individual variables
the period; .
E_STRICT
rand()
list()
48. This error refers to a variable with no value.
===
ASP
Notice
unset()
49. To remove all HTML and PHP tags.
Parse error
echo
client-side programing
strip_tags()
50. identity
<?php
predefined
===
defined()
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