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. leading zero: 0100 or 0567
strlen()
boolean
precedence
octal
2. $_SERVER is a ________ variable.
^
statement
substr_count()
predefined
3. This error arises from misusing a function.
Warning
mysql
ini_set ('display_errors', 1)
associative array
4. Used to convert all HTML tags into their entity versions.
indexed array
htmlentities()
predefined
control structure
5. To refer to an element in a multidimensional array list the indices in order of _____ to more precise;
error_reporting (0)
octal
float
general
6. To word wrap after a certain amount of characters.
wordwrap()
predefined variable
HTML
floor()
7. a language in which to make querys to a database with
Shebang
strip_tags()
sql
round() Function
8. All variables must begin with _________.
addcslashes()
the dollar sign $
mysql
strip_tags()
9. To reorganise the array randomly
shuffle()
+= or -= or *= or /=
date()
index
10. a storage location in the computer's memory that has a type & a name and a contents
variable
superglobal
abs()
function error_reporting()
11. a line of information that can be stored in a variable or used in a function or statement
ksort()
string
str_ireplace()
Parse error
12. does a certain action when called upon
$dbc = mysql_connect(hostname, username, password)
for ($i = 0; $i < count($array); $i++) {statement(s);}
function
HTTP
13. Use _______ for passwords or pages that would not be bookmarked or pages that require security.
$_GET[]
Constant
decimal
POST
14. PHP has two conditional: if and ______.
list()
switch
htmlentities()
Error
15. $_POST and $_GET are ________ variables.
variable
predefined
trim()
chr()
16. To find how many substrings are in a string
substr_count()
integer
htmlentities()
null
17. function Function used to create a random number
rand()
.=
Notice
Error
18. To sort the values while maintaining the correlation between each value and its key - in reversed order
sql
$array[] = item
nl2br()
arsort()
19. To close a connection between a database
boolean
mysql_close($dbc)
boolean
number_format()
20. Search Engine Optimization
rand()
trim()
SEO
Constant
21. _______ is a comparison operator
include() and require()
>>
!= inequality
crypt()
22. Document Type Definitions
round() Function
DTD
empty()
str_ireplace()
23. addition
sql
+
curly braces; ${$total}
E_STRICT
24. An array of variables passed in the URL
HTTP
$_GET[]
foreach
strtok()
25. _________ can be used in conditional statements to set precedence
server-side programing
parentheses
ini_set ('display_errors', 1)
decimal
26. _____ is a logical operator
XOR
Array
general
mysql_fetch_object()
27. To check if a constant is already declared
decimal
defined()
indexed array
$var++ and $var
28. Used to find the length of a string
array_merge()
strlen()
predefined
^
29. a type with two possible values: true and false
boolean
chr()
numbers
chop()
30. This will show all error reporting.
ksort()
error_reporting (E_ALL)
$_SESSION[]
chop()
31. The three types of loops in PHP are: for - while - ____.
preg_replace()
!= inequality
control structure
foreach
32. To create an array
double quotes
array()
number_format()
<?php
33. Used to check if a variable has a valid numerical value; strings with numerical values pass.
SEO
str_word_count()
loops
is_numeric()
34. To include files - _______ will give errors and _________ will terminate execution().
^
$_GET[]
XOR
include() and require()
35. Tag to end a php script
if/elseif/else and switch statements
?>
defined()
.=
36. To sort the values while maintaining the correlation between each value and its key
ini_set ('display_errors', 1)
chr()
predefined
asort()
37. The seven main error reporting constants are: E_NOTICE - E_WARNING - E_PARSE - E_ERROR - E_ALL - _____ - E_DEPRECATED
Constant
curly braces; ${$total}
$_POST[]
E_STRICT
38. To sort values of an array without regard to the keys
sort()
null
include() and require()
>>
39. Hyper Text Transfer Protocol
html_entity_decode()
HTTP
the period; .
1
40. This will show all errors that fall under E_ALL or E_STRICT - the pipe | is used for 'or' so that errors that fall under either will be shown.
preg_replace()
date()
error_reporting (E_ALL | E_STRICT)
mysql_close($dbc)
41. Function used to round down to the lowest integer
floor()
AJAX
the dollar sign $
empty()
42. Function used to convert new lines in a variable from a form to <br /> tags so that the data can be formatted correctly.
htmlspecialchars()
defined()
predefined
nl2br()
43. $_SERVER - $_POST - $_GET - $_COOKIE - $_SESSION - $_ENV; special arrays.
superglobal
$_REQUEST
SGML
error_reporting (E_ALL | E_STRICT)
44. Control structure that continue exit - they perform specific statements for a determined number of iterations.
1
Array
loops
htmlentities()
45. To assign keys to the values in an array
array()
string
?>
statement
46. Creates a pointer to a file with the declared mode (read - write -etc.).
&
if/elseif/else and switch statements
fopen()
associative array
47. any programing language where the user must support the language the script is written in
ini_set ('display_errors', 1)
string
client-side programing
&
48. Use ______ for search engines or catalogued pages or pages that would be bookmarked.
urlencode()
client-side programing
GET
+= or -= or *= or /=
49. An array whose keys are strings; also known as a hash.
define()
^
true
associative array
50. bitwise AND
general
rand()
&
underscores
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