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 merge arrays
array_merge()
statement
echo
empty()
2. container of both data and code
drop
Object
chop()
boolean
3. used to round numeric values.
preg_split()
str_ireplace()
predefined
round() Function
4. Used to find the length of a string
string
strlen()
octal
the dollar sign $
5. To refer to an item in an array
htmlspecialchars()
$varname[key]
null
$$
6. Use ______ when a variable contains any amount of variables; in general.
+= or -= or *= or /=
str_word_count()
double quotes
int
7. To get over quotation marks while using arrays
$_SESSION[]
Parse error
curly braces
not
8. This error refers to a variable with no value.
boolean
mysql_fetch_array()
echo
Notice
9. Alias of rtrim()
the period; .
is_numeric()
boolean
chop()
10. $_SERVER is a ________ variable.
double quotes
predefined
foreach loop
+= or -= or *= or /=
11. either hasn't yet been set or is assigned NULL value
array()
integer
null
control structure
12. _________ can be used in conditional statements to set precedence
E_STRICT
the dollar sign $
parentheses
Notice
13. To close a connection between a database
mysql_close($dbc)
floor()
html_entity_decode()
?>
14. To sort values of an array in reversed order
count()
strip_tags()
HTTP
rsort()
15. To reset an array _______ the array() function to the array
Magic Constant
Object
reassign
E_STRICT
16. A conditional or loop is a ________________.
control structure
single quotes
the dollar sign $
WYSIWYG
17. Returns a string with backslashes in front of predefined characters
htmlentities()
addslashes()
single quotes
$var++ and $var
18. identity
==
number_format()
===
addcslashes()
19. PHP has two conditional: if and ______.
str_word_count()
underscores
strtok()
switch
20. The ouput of var_export((bool)"NULL");
true
mysql_fetch_object()
superglobal
empty()
21. The concatenation assignment operator?
.=
array()
ASP
include() and require()
22. leading zero: 0100 or 0567
octal
single quotes
str_ireplace()
define()
23. Used to check if a variable has any value (including 0 or FALSE or an empty string).
PHP
isset()
preg_match()
E_STRICT
24. To assign array element values to individual variables
===
list()
general
$_REQUEST
25. Use ________ to have multiple quotations in one string
array()
PHP
the escape character ''
fopen()
26. bitwise XOR
variable
arsort()
WYSIWYG
^
27. bitwise left shift
round() Function
float
<<
1
28. Function used to round up to the highest integer
associative array
urlencode()
ceil()
loops
29. To sort by the keys while maintaining the correlation between the key and its value
foreach
statement
predefined
ksort()
30. This error arises from misusing a function.
ini_set ('display_errors', 1)
&
Warning
.=
31. Used to display errors in a particular script - should be placed at top of script.
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
32. An array of variables passed in the URL
substr_count()
define()
PHP
$_GET[]
33. bitwise AND
if/elseif/else and switch statements
preg_split()
sort()
&
34. Used to encrypt values - it is a one-way encryption method
not
crypt()
control structure
single quotes
35. TRUE or FALSE
boolean
HTML
predefined
drop
36. The output of var_export((float)array(0));
1
define()
error_reporting (E_ALL & -E_NOTICE)
double quotes
37. any programing language where the user must support the language the script is written in
client-side programing
octal
count()
mysql
38. To append elements to an array - this will assign item to the next available index; associative arrays get messy.
isset()
addcslashes()
parentheses
$array[] = item
39. This will show all error reporting except for notice errors.
single quotes
date()
chop()
error_reporting (E_ALL & -E_NOTICE)
40. Function used to find the absolute value of a number or numeric variable
function error_reporting()
client-side programing
abs()
if/elseif/else and switch statements
41. Function used to convert new lines in a variable from a form to <br /> tags so that the data can be formatted correctly.
nl2br()
str_word_count()
SGML
mysql
42. To counter htmlentities()
html_entity_decode()
numbers
bin2hex()
arsort()
43. An array whose keys are strings; also known as a hash.
associative array
decimal
fopen()
$$
44. addition
+= or -= or *= or /=
index
not
+
45. Converts a string of ASCII characters to hexadecimal values
fopen()
bin2hex()
include() and require()
int
46. Used to replace a substring with another string - it is not case-sensitive.
round() Function
+
str_ireplace()
$var++ and $var
47. Define(NAME,value)
arsort()
Constant
integer
include() and require()
48. Function that contains the highest value that rand() can have randomly
SEO
getrandmax()
float
rsort()
49. Active Server Pages
single quotes
parentheses
ASP
rand()
50. Used to check if a given variable has an "empty" value - no value or 0 or FALSE.
chr()
str_word_count()
array()
empty()
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