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 word wrap after a certain amount of characters.
variable
wordwrap()
string
SGML
2. Leading 0x: 0x13F or 0xA23
===
$array[] = item
define()
Hex
3. any programing language where the script is parsed on the server
defined()
XML
superglobal
server-side programing
4. Similar to mysql_fetch_array() - but cannot be accessed by integer offset
mysql_fetch_object()
XOR
htmlentities()
foreach
5. Control structure that continue exit - they perform specific statements for a determined number of iterations.
predefined
loops
>>
Warning
6. Hyper Text Transfer Protocol
>>
empty()
HTTP
addslashes()
7. To include files - _______ will give errors and _________ will terminate execution().
general
$_REQUEST
Error
include() and require()
8. To iterate over the keys and values of an array
nl2br()
mysql_fetch_object()
foreach loop
define()
9. a positive or negative number
count()
integer
single quotes
statement
10. standard notation
decimal
$array[] = item
statement
underscores
11. A conditional or loop is a ________________.
.=
control structure
$dbc = mysql_connect(hostname, username, password)
Magic Constant
12. Control structures that break exit
mysql_fetch_array()
if/elseif/else and switch statements
underscores
indexed array
13. Function that contains the highest value that rand() can have randomly
Constant
round() Function
octal
getrandmax()
14. To check if a constant is already declared
XOR
curly braces
str_word_count()
defined()
15. does a certain action when called upon
$array[] = item
SEO
function
ini_set ('display_errors', 1)
16. equivalence
==
abs()
array_merge()
predefined variable
17. To refer to an item in an array
mysql_fetch_object()
error_reporting (0)
echo
$varname[key]
18. 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.
predefined
error_reporting (E_ALL | E_STRICT)
rand()
the dollar sign $
19. EXtensible Markup Language
isset()
precedence
SEO
XML
20. An array of variables passed in the URL
html_entity_decode()
$_GET[]
numbers
SGML
21. Used to encrypt values - it is a one-way encryption method
boolean
crypt()
mysql
+
22. a type with two possible values: true and false
&
DTD
switch
boolean
23. To append elements to an array - this will assign item to the next available index; associative arrays get messy.
int
Constant
$array[] = item
echo
24. Returns an array that corresponds to the fetched row of MySQL data and moves the internal data pointer ahead
the escape character ''
mysql_fetch_array()
predefined
1
25. To set up error reporting
rsort()
bin2hex()
function error_reporting()
AJAX
26. The four main error types are:Notice - Warning - ________ and Error.
error_reporting (E_ALL & -E_NOTICE)
html_entity_decode()
predefined
Parse error
27. Predefined constants such as __LINE__ or __FILE__ or __FUNCTION__ or __CLASS__ and __METHOD__
Magic Constant
ksort()
<<
1
28. Use _______ for passwords or pages that would not be bookmarked or pages that require security.
count()
error_reporting (E_ALL | E_STRICT)
POST
$_GET[]
29. Tag to begin a php script
<?php
general
string
PHP
30. Shorthand used to increment and decrement
predefined variable
octal
$var++ and $var
function error_reporting()
31. Document Type Definitions
floor()
getrandmax()
underscores
DTD
32. To sort by the keys while maintaining the correlation between the key and its value
PHP
not
ksort()
array()
33. This will not show error reporting - it will be turned off.
htmlspecialchars()
Error
predefined variable
error_reporting (0)
34. Returns a string with backslashes in front of predefined characters
addslashes()
0
&
isset()
35. Creates a pointer to a file with the declared mode (read - write -etc.).
boolean
+= or -= or *= or /=
count()
fopen()
36. TRUE or FALSE
Object
boolean
foreach loop
the dollar sign $
37. collection of binary data
float
htmlentities()
curly braces
string
38. a line of information that can be stored in a variable or used in a function or statement
string
addslashes()
Array
error_reporting (0)
39. $_POST Data sent using POST found is sent to _______
?>
PHP
predefined variable
switch
40. Search Engine Optimization
floor()
SEO
?>
number_format()
41. Used to create a substring (referred to as a token) from a larger string
preg_split()
strtok()
AJAX
switch
42. signed integer
the period; .
$dbc = mysql_connect(hostname, username, password)
PHP
int
43. Used to replace a substring with another string - it is not case-sensitive.
$dbc = mysql_connect(hostname, username, password)
crypt()
associative array
str_ireplace()
44. To counter htmlentities()
!= inequality
boolean
html_entity_decode()
switch
45. Used to check if a variable has any value (including 0 or FALSE or an empty string).
preg_split()
boolean
isset()
SEO
46. This error refers to a variable with no value.
foreach loop
Notice
decimal
chr()
47. Used to check if a given variable has an "empty" value - no value or 0 or FALSE.
boolean
empty()
double quotes
foreach loop
48. returns the number of matches found by a given search string under this format...
abs()
not
if/elseif/else and switch statements
preg_match()
49. To refer to an element in a multidimensional array list the indices in order of _____ to more precise;
abs()
0
general
$dbc = mysql_connect(hostname, username, password)
50. Used to find the amount of words in a string.
str_word_count()
htmlentities()
predefined
strlen()
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