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. the most basic function in PHP used to output information to the page
ASP
echo
$dbc = mysql_connect(hostname, username, password)
if/elseif/else and switch statements
2. bitwise AND
&
mysql_close($dbc)
strtok()
define()
3. The name of the #! used to designate the location of the PHP binary
integer
decimal
Shebang
&
4. Used to find the amount of words in a string.
htmlspecialchars()
shuffle()
str_ireplace()
str_word_count()
5. This will not show error reporting - it will be turned off.
$_GET[]
+
curly braces
error_reporting (0)
6. To delete a variable or an element of an array
Shebang
$_POST[]
>>
unset()
7. Hyper Text Transfer Protocol
array()
WYSIWYG
HTTP
html_entity_decode()
8. To append elements to an array - this will assign item to the next available index; associative arrays get messy.
negative numbers
$var++ and $var
$array[] = item
floor()
9. $_POST and $_GET are ________ variables.
foreach loop
E_STRICT
predefined
$varname[key]
10. says 'if' this then do this 'else' do this or 'while' this do this
negative numbers
statement
trim()
control structure
11. Active Server Pages
mysql_fetch_object()
ASP
true
?>
12. What You See Is What You Get
error_reporting (0)
array_merge()
ASP
WYSIWYG
13. The four main error types are:Notice - Warning - ________ and Error.
!= inequality
Object
echo
Parse error
14. The three types of loops in PHP are: for - while - ____.
foreach
error_reporting (E_ALL | E_STRICT)
str_word_count()
switch
15. a positive or negative number
Hex
integer
function
open source
16. This will show all error reporting.
HTTP
define()
include() and require()
error_reporting (E_ALL)
17. To iterate over the values of an array
for ($i = 0; $i < count($array); $i++) {statement(s);}
Parse error
predefined
GET
18. A data structure that can hold a number of items of data of the same type eg. a list of names
chr()
E_STRICT
array
nl2br()
19. To include files - _______ will give errors and _________ will terminate execution().
<<
Array
include() and require()
$_SESSION[]
20. Variable names cannot begin with _______
ASP
Parse error
numbers
POST
21. a type with two possible values: true and false
curly braces; ${$total}
boolean
integer
asort()
22. Control structures that break exit
octal
Notice
loops
if/elseif/else and switch statements
23. a language in which to make querys to a database with
sql
mysql
echo
floor()
24. a storage location in the computer's memory that has a type & a name and a contents
variable
E_STRICT
round() Function
ceil()
25. Uses two arguments: constant name and constant definition
define()
count()
null
ceil()
26. To get time data
array
str_ireplace()
+= or -= or *= or /=
date()
27. To close a connection between a database
Object
mysql_close($dbc)
true
ksort()
28. _____ is a logical operator
echo
XOR
the escape character ''
SGML
29. Used to replace a substring with another string - it is not case-sensitive.
str_ireplace()
===
ceil()
<<
30. equivalence
urlencode()
==
preg_split()
XML
31. Predefined constants such as __LINE__ or __FILE__ or __FUNCTION__ or __CLASS__ and __METHOD__
Parse error
html_entity_decode()
Magic Constant
preg_match()
32. $_POST Data sent using POST found is sent to _______
preg_match()
curly braces
predefined variable
==
33. Use ______ for search engines or catalogued pages or pages that would be bookmarked.
chr()
single quotes
GET
Shebang
34. Used to check if a variable has any value (including 0 or FALSE or an empty string).
isset()
decimal
is_numeric()
negative numbers
35. any programing language where the script is parsed on the server
XOR
<<
Error
server-side programing
36. To refer to an element in a multidimensional array list the indices in order of _____ to more precise;
rsort()
bin2hex()
single quotes
general
37. TRUE or FALSE
Parse error
boolean
integer
strip_tags()
38. The order of operations.
str_word_count()
precedence
string
shuffle()
39. any programing language where the user must support the language the script is written in
!= inequality
client-side programing
true
count()
40. bitwise XOR
Error
the dollar sign $
^
mysql_fetch_array()
41. The output of var_export((float)array(0));
1
wordwrap()
POST
include() and require()
42. function Function used to create a random number
Constant
rand()
octal
HTTP
43. Function that contains the highest value that rand() can have randomly
getrandmax()
foreach loop
Magic Constant
arsort()
44. This fatal fatal is caused by a semantic mistake: omission of a semicolon or imbalance of quotations or parentheses or braces.
underscores
Parse error
for ($i = 0; $i < count($array); $i++) {statement(s);}
isset()
45. 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.
array()
$_SESSION[]
superglobal
error_reporting (E_ALL | E_STRICT)
46. The seven main SQL (structured query language) functions are alter - create - delete - _______ - insert - select - update
drop
list()
Hex
+= or -= or *= or /=
47. Online applications and resources which are available to the general public with very few restrictions
list()
sql
open source
str_word_count()
48. To determine the amount of elements in an array
count()
Constant
<<
GET
49. This will show all error reporting except for notice errors.
strtok()
is_numeric()
numbers
error_reporting (E_ALL & -E_NOTICE)
50. To refer to an item in an array
parentheses
strip_tags()
array_merge()
$varname[key]
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