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. does a certain action when called upon
function
the period; .
SGML
&
2. either hasn't yet been set or is assigned NULL value
string
mysql
null
$array[] = item
3. To check if a constant is already declared
variable
foreach
$var++ and $var
defined()
4. Document Type Definitions
defined()
strip_tags()
decimal
DTD
5. Function used to round down to the lowest integer
+= or -= or *= or /=
floor()
error_reporting (0)
boolean
6. Function used to round up to the highest integer
function
DTD
ceil()
function error_reporting()
7. function Function used to create a random number
numbers
&
rand()
date()
8. a language in which to make querys to a database with
sql
addslashes()
mysql_close($dbc)
<<
9. bitwise right shift
>>
wordwrap()
int
$dbc = mysql_connect(hostname, username, password)
10. Use ______ for search engines or catalogued pages or pages that would be bookmarked.
preg_replace()
GET
<<
$_REQUEST
11. Besides GET and POST ________ can be used to access data but $_POST and $_GET are more precise and therefore preferable.
$_REQUEST
trim()
+= or -= or *= or /=
urlencode()
12. Tag to end a php script
asort()
?>
parentheses
abs()
13. Function used to find the absolute value of a number or numeric variable
Magic Constant
parentheses
abs()
Array
14. Uses two arguments: constant name and constant definition
===
HTML
rand()
define()
15. Asynchronous Javascript And XML
function error_reporting()
ksort()
AJAX
^
16. To include files - _______ will give errors and _________ will terminate execution().
?>
include() and require()
true
boolean
17. To refer to an element in a multidimensional array list the indices in order of _____ to more precise;
general
?>
html_entity_decode()
server-side programing
18. _____ is a logical operator
preg_replace()
floor()
XOR
foreach
19. a positive or negative number
preg_replace()
float
==
integer
20. bitwise left shift
<<
Error
predefined
ksort()
21. $_POST and $_GET are ________ variables.
==
error_reporting (E_ALL | E_STRICT)
$_SESSION[]
predefined
22. To sort the values while maintaining the correlation between each value and its key
+
asort()
the dollar sign $
curly braces
23. Used to convert all HTML tags into their entity versions.
htmlentities()
client-side programing
define()
array()
24. Predefined constants such as __LINE__ or __FILE__ or __FUNCTION__ or __CLASS__ and __METHOD__
array
Magic Constant
ASP
the escape character ''
25. Function that contains the highest value that rand() can have randomly
^
getrandmax()
0
sort()
26. allows you to split strings based on more complex rules
preg_split()
true
1
echo
27. bitwise XOR
error_reporting (0)
if/elseif/else and switch statements
strlen()
^
28. To sort by the keys while maintaining the correlation between the key and its value
predefined variable
ksort()
array()
mysql_fetch_array()
29. The order of operations.
$_SESSION[]
precedence
^
the dollar sign $
30. The three types of loops in PHP are: for - while - ____.
foreach
reassign
$_POST[]
mysql_fetch_array()
31. To merge arrays
Shebang
superglobal
array_merge()
SEO
32. The seven main error reporting constants are: E_NOTICE - E_WARNING - E_PARSE - E_ERROR - E_ALL - _____ - E_DEPRECATED
>>
E_STRICT
single quotes
<<
33. Use _______ for passwords or pages that would not be bookmarked or pages that require security.
rand()
addslashes()
arsort()
POST
34. Returns a character from a specified ASCII value
SGML
chr()
Parse error
XML
35. Use ______ when a variable contains any amount of variables; in general.
DTD
ksort()
foreach loop
double quotes
36. To create an array
AJAX
array()
strtok()
precedence
37. Variable names cannot begin with _______
Parse error
for ($i = 0; $i < count($array); $i++) {statement(s);}
numbers
general
38. The output of var_export((float)array(0));
echo
1
AJAX
the period; .
39. $_SERVER - $_POST - $_GET - $_COOKIE - $_SESSION - $_ENV; special arrays.
underscores
for ($i = 0; $i < count($array); $i++) {statement(s);}
superglobal
preg_split()
40. Control structure that continue exit - they perform specific statements for a determined number of iterations.
predefined
loops
round() Function
octal
41. TRUE or FALSE
POST
statement
sql
boolean
42. This will not show error reporting - it will be turned off.
Array
fopen()
foreach
error_reporting (0)
43. print $_SERVER will _____ work if you use the print function on arrays.
?>
===
not
Error
44. The array that stores variables specific to a user's visit
error_reporting (E_ALL & -E_NOTICE)
decimal
$_SESSION[]
$array[] = item
45. PHP has two conditional: if and ______.
HTTP
Constant
for ($i = 0; $i < count($array); $i++) {statement(s);}
switch
46. Use ______ when there are no variables in the string
reassign
PHP
single quotes
$varname[key]
47. a type with two possible values: true and false
mysql_close($dbc)
boolean
superglobal
nl2br()
48. Converts a string of ASCII characters to hexadecimal values
foreach loop
urlencode()
bin2hex()
strtok()
49. a storage location in the computer's memory that has a type & a name and a contents
open source
nl2br()
$_REQUEST
variable
50. To set up error reporting
index
function error_reporting()
mysql_fetch_object()
GET
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