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. collection of binary data
string
empty()
addslashes()
$dbc = mysql_connect(hostname, username, password)
2. Used to check if a given variable has an "empty" value - no value or 0 or FALSE.
not
str_ireplace()
floor()
empty()
3. either hasn't yet been set or is assigned NULL value
null
addcslashes()
wordwrap()
Shebang
4. To merge arrays
is_numeric()
^
array_merge()
boolean
5. The four main error types are:Notice - Warning - ________ and Error.
Magic Constant
predefined variable
is_numeric()
Parse error
6. Besides GET and POST ________ can be used to access data but $_POST and $_GET are more precise and therefore preferable.
the dollar sign $
1
$_REQUEST
Array
7. standard notation
decimal
arsort()
the period; .
server-side programing
8. Tag to end a php script
string
octal
>>
?>
9. The output of var_export((float)array(0));
boolean
1
array()
variable
10. TRUE or FALSE
$_REQUEST
shuffle()
boolean
XML
11. What You See Is What You Get
loops
indexed array
Array
WYSIWYG
12. Control structure that continue exit - they perform specific statements for a determined number of iterations.
loops
true
empty()
str_word_count()
13. Hypertext Preprocessor - a server-side programing language used to create webpages
define()
asort()
PHP
chop()
14. Uses two arguments: constant name and constant definition
define()
Error
<<
$dbc = mysql_connect(hostname, username, password)
15. a language in which to make querys to a database with
str_word_count()
drop
HTTP
sql
16. EXtensible Markup Language
null
?>
XML
==
17. To determine the amount of elements in an array
str_ireplace()
count()
bin2hex()
0
18. This fatal fatal is caused by a semantic mistake: omission of a semicolon or imbalance of quotations or parentheses or braces.
string
chr()
Parse error
mysql
19. a type with two possible values: true and false
isset()
Parse error
the escape character ''
boolean
20. The concatenation assignment operator?
+
.=
$_REQUEST
decimal
21. a line of information that can be stored in a variable or used in a function or statement
not
ini_set ('display_errors', 1)
index
string
22. This fatal error arises from memory allocation problem.
Error
?>
$_GET[]
$dbc = mysql_connect(hostname, username, password)
23. This error arises from misusing a function.
Warning
function error_reporting()
PHP
associative array
24. Used to check if a variable has any value (including 0 or FALSE or an empty string).
isset()
variable
&
$dbc = mysql_connect(hostname, username, password)
25. identity
the dollar sign $
WYSIWYG
===
ceil()
26. Predefined constants such as __LINE__ or __FILE__ or __FUNCTION__ or __CLASS__ and __METHOD__
open source
chr()
if/elseif/else and switch statements
Magic Constant
27. To sort the values while maintaining the correlation between each value and its key
SGML
switch
asort()
define()
28. This will show all error reporting except for notice errors.
list()
shuffle()
PHP
error_reporting (E_ALL & -E_NOTICE)
29. To get time data
date()
<<
chop()
getrandmax()
30. Returns a character from a specified ASCII value
chr()
$varname[key]
XML
indexed array
31. Search Engine Optimization
Hex
SEO
error_reporting (E_ALL)
null
32. An array of variables passed in the URL
$_GET[]
error_reporting (E_ALL & -E_NOTICE)
<<
echo
33. Alias of rtrim()
<?php
XML
chop()
array_merge()
34. This will not show error reporting - it will be turned off.
===
error_reporting (0)
sql
$dbc = mysql_connect(hostname, username, password)
35. The three types of loops in PHP are: for - while - ____.
mysql
PHP
foreach
list()
36. The seven main SQL (structured query language) functions are alter - create - delete - _______ - insert - select - update
include() and require()
crypt()
drop
the escape character ''
37. To delete a variable or an element of an array
function error_reporting()
echo
$var++ and $var
unset()
38. leading zero: 0100 or 0567
function
error_reporting (0)
octal
error_reporting (E_ALL | E_STRICT)
39. Operators used to operate and assign
count()
strlen()
SEO
+= or -= or *= or /=
40. An array whose keys are strings; also known as a hash.
define()
associative array
function
===
41. a positive or negative number
superglobal
variable
integer
getrandmax()
42. To assign array element values to individual variables
rand()
list()
unset()
define()
43. To sort the values while maintaining the correlation between each value and its key - in reversed order
bin2hex()
count()
+= or -= or *= or /=
arsort()
44. Function used to convert new lines in a variable from a form to <br /> tags so that the data can be formatted correctly.
error_reporting (E_ALL & -E_NOTICE)
predefined
unset()
nl2br()
45. _______ is a comparison operator
crypt()
predefined variable
Notice
!= inequality
46. Used to encrypt values - it is a one-way encryption method
$_POST[]
HTTP
statement
crypt()
47. The order of operations.
precedence
associative array
asort()
echo
48. function Function used to create a random number
rand()
Warning
strlen()
date()
49. ____ or key is referred to for a value within an array.
index
crypt()
Constant
control structure
50. 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 __________.
curly braces; ${$total}
associative array
open source
nl2br()
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