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 reorganise the array randomly
shuffle()
SGML
include() and require()
reassign
2. Control structure that continue exit - they perform specific statements for a determined number of iterations.
$varname[key]
loops
preg_replace()
mysql_close($dbc)
3. Use ______ when there are no variables in the string
single quotes
underscores
rsort()
precedence
4. Search Engine Optimization
SEO
control structure
the dollar sign $
boolean
5. The array that stores variables specific to a user's visit
$dbc = mysql_connect(hostname, username, password)
HTTP
$_SESSION[]
$varname[key]
6. Standard Generalized Markup Language
crypt()
SGML
if/elseif/else and switch statements
asort()
7. Use ______ for search engines or catalogued pages or pages that would be bookmarked.
strtok()
GET
htmlspecialchars()
precedence
8. used to round numeric values.
octal
round() Function
echo
function
9. Creates a pointer to a file with the declared mode (read - write -etc.).
count()
statement
addslashes()
fopen()
10. To sort by the keys while maintaining the correlation between the key and its value
list()
ksort()
htmlentities()
Array
11. a positive or negative number
integer
Array
array
mysql
12. any programing language where the user must support the language the script is written in
abs()
client-side programing
$_GET[]
floor()
13. To declare a constant
HTTP
ini_set ('display_errors', 1)
$_SESSION[]
define()
14. To merge arrays
server-side programing
statement
wordwrap()
array_merge()
15. Converts a string of ASCII characters to hexadecimal values
Parse error
bin2hex()
strtok()
open source
16. To find how many substrings are in a string
reassign
<<
+= or -= or *= or /=
substr_count()
17. signed floating-point value
double quotes
POST
float
asort()
18. To check if a constant is already declared
Hex
array_merge()
loops
defined()
19. To include files - _______ will give errors and _________ will terminate execution().
double quotes
html_entity_decode()
nl2br()
include() and require()
20. An array whose keys are strings; also known as a hash.
str_ireplace()
mysql_fetch_object()
associative array
getrandmax()
21. Control structures that break exit
html_entity_decode()
+
if/elseif/else and switch statements
E_STRICT
22. Use ______ when a variable contains any amount of variables; in general.
+= or -= or *= or /=
preg_replace()
define()
double quotes
23. addition
+
for ($i = 0; $i < count($array); $i++) {statement(s);}
error_reporting (E_ALL & -E_NOTICE)
asort()
24. Use _______ for passwords or pages that would not be bookmarked or pages that require security.
ASP
POST
fopen()
$_SESSION[]
25. To assign keys to the values in an array
echo
numbers
array()
general
26. A data structure that can hold a number of items of data of the same type eg. a list of names
shuffle()
array
&
strtok()
27. The seven main error reporting constants are: E_NOTICE - E_WARNING - E_PARSE - E_ERROR - E_ALL - _____ - E_DEPRECATED
$var++ and $var
the dollar sign $
E_STRICT
htmlspecialchars()
28. Tag to end a php script
count()
number_format()
?>
preg_replace()
29. Used to create a substring (referred to as a token) from a larger string
strtok()
curly braces
general
PHP
30. Used to remove any white space - spaces or newlines or tabs - from the beginning and end of a string - not the middle.
error_reporting (E_ALL)
POST
trim()
DTD
31. Used to convert certain HTML tags into their entity versions.
string
addcslashes()
htmlspecialchars()
SEO
32. Used to check if a variable has any value (including 0 or FALSE or an empty string).
$varname[key]
isset()
curly braces
1
33. Alias of rtrim()
number_format()
foreach
htmlentities()
chop()
34. Document Type Definitions
defined()
DTD
function
index
35. The four main error types are:Notice - Warning - ________ and Error.
Parse error
>>
html_entity_decode()
ini_set ('display_errors', 1)
36. Hypertext Preprocessor - a server-side programing language used to create webpages
statement
<?php
PHP
array()
37. This will show all error reporting.
strlen()
error_reporting (E_ALL)
abs()
SGML
38. This fatal fatal is caused by a semantic mistake: omission of a semicolon or imbalance of quotations or parentheses or braces.
chr()
1
>>
Parse error
39. The order of operations.
precedence
boolean
mysql
abs()
40. To append elements to an array - this will assign item to the next available index; associative arrays get messy.
$array[] = item
bin2hex()
htmlspecialchars()
string
41. This error refers to a variable with no value.
Notice
shuffle()
chr()
abs()
42. equivalence
the period; .
htmlspecialchars()
==
$_POST[]
43. _________ can be used in conditional statements to set precedence
getrandmax()
+
+= or -= or *= or /=
parentheses
44. Function used to round up to the highest integer
array()
the escape character ''
ceil()
DTD
45. Used to convert all HTML tags into their entity versions.
general
htmlentities()
mysql_close($dbc)
is_numeric()
46. $_SERVER - $_POST - $_GET - $_COOKIE - $_SESSION - $_ENV; special arrays.
superglobal
foreach
<<
bin2hex()
47. Shorthand used to increment and decrement
octal
Shebang
$var++ and $var
fopen()
48. The concatenation operator?
the period; .
preg_split()
if/elseif/else and switch statements
.=
49. $_POST and $_GET are ________ variables.
1
predefined
html_entity_decode()
unset()
50. TRUE or FALSE
shuffle()
function
boolean
crypt()
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