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. This will show all error reporting.
Constant
error_reporting (E_ALL)
chop()
boolean
2. _________ can be used in conditional statements to set precedence
+= or -= or *= or /=
POST
parentheses
nl2br()
3. To create an array
number_format()
str_word_count()
array()
open source
4. To get time data
predefined
date()
Warning
control structure
5. To sort by the keys while maintaining the correlation between the key and its value
ksort()
defined()
mysql_close($dbc)
floor()
6. The four main error types are:Notice - Warning - ________ and Error.
the escape character ''
Parse error
predefined
mysql
7. The ouput of var_export((bool)"NULL");
true
curly braces
crypt()
str_ireplace()
8. Use ______ for search engines or catalogued pages or pages that would be bookmarked.
+= or -= or *= or /=
Magic Constant
GET
is_numeric()
9. Predefined constants such as __LINE__ or __FILE__ or __FUNCTION__ or __CLASS__ and __METHOD__
bin2hex()
Array
Magic Constant
curly braces
10. a positive or negative number
sql
float
integer
include() and require()
11. Used to check if a variable has a valid numerical value; strings with numerical values pass.
crypt()
count()
str_word_count()
is_numeric()
12. 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.
parentheses
wordwrap()
error_reporting (E_ALL | E_STRICT)
SEO
13. To reset an array _______ the array() function to the array
preg_split()
reassign
html_entity_decode()
int
14. Besides GET and POST ________ can be used to access data but $_POST and $_GET are more precise and therefore preferable.
$_REQUEST
count()
HTML
drop
15. To include files - _______ will give errors and _________ will terminate execution().
SGML
include() and require()
strtok()
unset()
16. does a certain action when called upon
HTTP
for ($i = 0; $i < count($array); $i++) {statement(s);}
function
switch
17. identity
predefined
negative numbers
integer
===
18. To assign array element values to individual variables
list()
Constant
include() and require()
count()
19. Operators used to operate and assign
+= or -= or *= or /=
general
array_merge()
precedence
20. Function that contains the highest value that rand() can have randomly
array
getrandmax()
htmlentities()
HTML
21. The concatenation assignment operator?
isset()
curly braces
str_word_count()
.=
22. Returns a character from a specified ASCII value
strip_tags()
PHP
chr()
SGML
23. To declare a constant
define()
chr()
ASP
general
24. Use ________ to have multiple quotations in one string
getrandmax()
date()
the escape character ''
float
25. Tag to begin a php script
<?php
POST
sql
error_reporting (E_ALL | E_STRICT)
26. To iterate over the keys and values of an array
ini_set ('display_errors', 1)
foreach loop
function
DTD
27. leading zero: 0100 or 0567
HTML
preg_match()
octal
+= or -= or *= or /=
28. This error refers to a variable with no value.
single quotes
Notice
defined()
ceil()
29. function Function used to create a random number
XOR
round() Function
rand()
HTML
30. Function used to find the absolute value of a number or numeric variable
integer
decimal
abs()
$$
31. _______ is a comparison operator
mysql_close($dbc)
open source
!= inequality
foreach loop
32. This will show all error reporting except for notice errors.
error_reporting (E_ALL & -E_NOTICE)
?>
predefined
GET
33. A data structure that can hold a number of items of data of the same type eg. a list of names
ini_set ('display_errors', 1)
DTD
$_POST[]
array
34. The syntax for connecting to a database
array()
str_ireplace()
$dbc = mysql_connect(hostname, username, password)
XOR
35. An array of variables passed with <input /> data
$_POST[]
===
$varname[key]
float
36. Creates a pointer to a file with the declared mode (read - write -etc.).
ASP
fopen()
mysql_fetch_array()
negative numbers
37. signed integer
$dbc = mysql_connect(hostname, username, password)
int
reassign
open source
38. To remove all HTML and PHP tags.
nl2br()
str_ireplace()
strip_tags()
preg_replace()
39. The seven main SQL (structured query language) functions are alter - create - delete - _______ - insert - select - update
single quotes
strlen()
Array
drop
40. The name of the #! used to designate the location of the PHP binary
.=
Shebang
the period; .
ASP
41. Used to check if a variable has any value (including 0 or FALSE or an empty string).
isset()
htmlentities()
ceil()
HTML
42. Asynchronous Javascript And XML
AJAX
XOR
preg_split()
function
43. Hypertext Preprocessor - a server-side programing language used to create webpages
PHP
substr_count()
control structure
E_STRICT
44. Similar to mysql_fetch_array() - but cannot be accessed by integer offset
abs()
mysql_fetch_object()
XML
mysql
45. To word wrap after a certain amount of characters.
<<
wordwrap()
count()
mysql_fetch_array()
46. container of ordered data elements
loops
Array
$_GET[]
curly braces
47. $_SERVER is a ________ variable.
predefined
Parse error
asort()
int
48. says 'if' this then do this 'else' do this or 'while' this do this
str_ireplace()
octal
statement
numbers
49. ____ or key is referred to for a value within an array.
single quotes
index
POST
general
50. any programing language where the user must support the language the script is written in
client-side programing
Constant
boolean
double quotes
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