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. Function used to round up to the highest integer
$_REQUEST
is_numeric()
ceil()
for ($i = 0; $i < count($array); $i++) {statement(s);}
2. a database which is best supported by PHP
mysql
curly braces
str_ireplace()
Magic Constant
3. To reset an array _______ the array() function to the array
single quotes
$$
reassign
the period; .
4. _____ is a logical operator
the period; .
date()
server-side programing
XOR
5. Predefined constants such as __LINE__ or __FILE__ or __FUNCTION__ or __CLASS__ and __METHOD__
underscores
str_word_count()
Magic Constant
mysql_fetch_object()
6. 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.
unset()
error_reporting (E_ALL | E_STRICT)
rsort()
Magic Constant
7. addition
int
+
$_GET[]
include() and require()
8. When used the value can be passed safely through the URL (GET).
urlencode()
Parse error
ceil()
if/elseif/else and switch statements
9. This will show all error reporting.
server-side programing
error_reporting (E_ALL)
rsort()
addcslashes()
10. Used to create a substring (referred to as a token) from a larger string
strtok()
array()
>>
asort()
11. To reorganise the array randomly
loops
shuffle()
html_entity_decode()
Object
12. All variables must begin with _________.
define()
the dollar sign $
indexed array
open source
13. An array of variables passed with <input /> data
getrandmax()
string
$_POST[]
superglobal
14. used to round numeric values.
drop
$_SESSION[]
round() Function
Magic Constant
15. a storage location in the computer's memory that has a type & a name and a contents
variable
rsort()
urlencode()
number_format()
16. container of both data and code
>>
Object
integer
abs()
17. returns the number of matches found by a given search string under this format...
$$
preg_match()
fopen()
==
18. To declare a constant
htmlspecialchars()
$var++ and $var
define()
list()
19. ____ or key is referred to for a value within an array.
nl2br()
index
array()
strlen()
20. Converts a string of ASCII characters to hexadecimal values
AJAX
Parse error
bin2hex()
indexed array
21. The seven main SQL (structured query language) functions are alter - create - delete - _______ - insert - select - update
drop
Object
<<
strtok()
22. To sort values of an array in reversed order
ksort()
array_merge()
rsort()
!= inequality
23. A data structure that can hold a number of items of data of the same type eg. a list of names
ceil()
ASP
AJAX
array
24. The output of var_export((float)array(0));
1
defined()
chr()
rsort()
25. To delete a variable or an element of an array
unset()
foreach loop
mysql_fetch_object()
HTML
26. says 'if' this then do this 'else' do this or 'while' this do this
wordwrap()
statement
mysql
function error_reporting()
27. The prefix for a dynamic variable - also known as a variable variable
control structure
$$
$_SESSION[]
if/elseif/else and switch statements
28. Use ______ when there are no variables in the string
ini_set ('display_errors', 1)
single quotes
1
mysql_fetch_object()
29. Variable names can begin with __________
statement
POST
underscores
decimal
30. To assign array element values to individual variables
substr_count()
boolean
ceil()
list()
31. Creates a pointer to a file with the declared mode (read - write -etc.).
fopen()
foreach
curly braces
error_reporting (E_ALL | E_STRICT)
32. Used to check if a given variable has an "empty" value - no value or 0 or FALSE.
addslashes()
array
predefined
empty()
33. $_POST Data sent using POST found is sent to _______
define()
reassign
predefined variable
client-side programing
34. a type with two possible values: true and false
number_format()
POST
$var++ and $var
boolean
35. Used to convert all HTML tags into their entity versions.
+= or -= or *= or /=
GET
htmlentities()
int
36. Used to remove any white space - spaces or newlines or tabs - from the beginning and end of a string - not the middle.
trim()
precedence
array_merge()
round() Function
37. Function used to find the absolute value of a number or numeric variable
chop()
getrandmax()
ceil()
abs()
38. Function used to round down to the lowest integer
POST
floor()
chop()
^
39. The four main error types are:Notice - Warning - ________ and Error.
SGML
Parse error
abs()
null
40. Use ______ when a variable contains any amount of variables; in general.
POST
preg_replace()
double quotes
int
41. An array whose keys are strings; also known as a hash.
numbers
===
associative array
+
42. either hasn't yet been set or is assigned NULL value
str_word_count()
$dbc = mysql_connect(hostname, username, password)
list()
null
43. collection of binary data
the escape character ''
POST
wordwrap()
string
44. Online applications and resources which are available to the general public with very few restrictions
open source
curly braces; ${$total}
Notice
addcslashes()
45. Search Engine Optimization
SEO
.=
octal
crypt()
46. To sort the values while maintaining the correlation between each value and its key - in reversed order
mysql_fetch_array()
arsort()
htmlentities()
parentheses
47. Returns a string with backslashes in front of predefined characters
Error
addslashes()
integer
numbers
48. The order of operations.
error_reporting (0)
array_merge()
XOR
precedence
49. bitwise right shift
>>
float
strtok()
==
50. This fatal fatal is caused by a semantic mistake: omission of a semicolon or imbalance of quotations or parentheses or braces.
function
empty()
Parse error
WYSIWYG
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