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. collection of binary data
AJAX
getrandmax()
define()
string
2. Tag to begin a php script
error_reporting (E_ALL | E_STRICT)
<?php
strlen()
indexed array
3. Standard Generalized Markup Language
sql
SGML
strlen()
AJAX
4. Similar to mysql_fetch_array() - but cannot be accessed by integer offset
the period; .
chop()
mysql_fetch_object()
+= or -= or *= or /=
5. The name of the #! used to designate the location of the PHP binary
$array[] = item
fopen()
mysql_fetch_object()
Shebang
6. _____ is a logical operator
1
XOR
PHP
associative array
7. Online applications and resources which are available to the general public with very few restrictions
open source
str_ireplace()
client-side programing
HTML
8. a type with two possible values: true and false
superglobal
E_STRICT
boolean
$_GET[]
9. To determine the amount of elements in an array
Magic Constant
&
mysql_fetch_array()
count()
10. This will show all error reporting.
error_reporting (E_ALL)
str_ireplace()
PHP
GET
11. Used to find the amount of words in a string.
foreach loop
ksort()
array()
str_word_count()
12. ____ or key is referred to for a value within an array.
$_GET[]
if/elseif/else and switch statements
index
WYSIWYG
13. The syntax for connecting to a database
$dbc = mysql_connect(hostname, username, password)
string
array
mysql_fetch_array()
14. either hasn't yet been set or is assigned NULL value
floor()
1
double quotes
null
15. A conditional or loop is a ________________.
string
>>
string
control structure
16. Returns a string with backslashes in front of the specified characters
HTTP
preg_split()
addcslashes()
drop
17. PHP has two conditional: if and ______.
0
include() and require()
switch
foreach
18. To declare a constant
underscores
mysql_close($dbc)
define()
<<
19. Function used to round down to the lowest integer
floor()
error_reporting (E_ALL & -E_NOTICE)
DTD
switch
20. Search Engine Optimization
SEO
array()
===
client-side programing
21. Used to create a substring (referred to as a token) from a larger string
$_GET[]
not
strtok()
?>
22. container of ordered data elements
0
Array
preg_split()
single quotes
23. TRUE or FALSE
defined()
client-side programing
boolean
unset()
24. The ouput of var_export((bool)"NULL");
true
if/elseif/else and switch statements
+= or -= or *= or /=
string
25. To reorganise the array randomly
error_reporting (E_ALL)
array
shuffle()
!= inequality
26. Document Type Definitions
+= or -= or *= or /=
DTD
is_numeric()
preg_match()
27. This fatal error arises from memory allocation problem.
str_word_count()
mysql_fetch_array()
ceil()
Error
28. Active Server Pages
ASP
bin2hex()
ceil()
Object
29. To assign array element values to individual variables
urlencode()
error_reporting (E_ALL | E_STRICT)
predefined
list()
30. 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.
date()
htmlentities()
error_reporting (E_ALL | E_STRICT)
chr()
31. The prefix for a dynamic variable - also known as a variable variable
statement
$$
precedence
strtok()
32. To remove all HTML and PHP tags.
foreach loop
string
strip_tags()
chr()
33. To delete a variable or an element of an array
$varname[key]
unset()
$_POST[]
echo
34. $_POST Data sent using POST found is sent to _______
predefined variable
str_word_count()
null
foreach
35. Control structures that break exit
HTML
predefined variable
if/elseif/else and switch statements
1
36. To merge arrays
array_merge()
function
strip_tags()
open source
37. The array that stores variables specific to a user's visit
mysql
decimal
$_SESSION[]
single quotes
38. Used to display errors in a particular script - should be placed at top of script.
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
39. Used to check if a given variable has an "empty" value - no value or 0 or FALSE.
empty()
ini_set ('display_errors', 1)
$$
strlen()
40. a positive or negative number
trim()
null
integer
$_GET[]
41. An array whose keys are numbers.
rsort()
$$
.=
indexed array
42. any programing language where the user must support the language the script is written in
client-side programing
boolean
$_REQUEST
parentheses
43. To refer to an element in a multidimensional array list the indices in order of _____ to more precise;
>>
boolean
trim()
general
44. Function that contains the highest value that rand() can have randomly
<<
asort()
count()
getrandmax()
45. To counter htmlentities()
decimal
null
XML
html_entity_decode()
46. bitwise left shift
foreach
abs()
if/elseif/else and switch statements
<<
47. a database which is best supported by PHP
the period; .
E_STRICT
Error
mysql
48. This will show all error reporting except for notice errors.
shuffle()
<?php
error_reporting (E_ALL & -E_NOTICE)
$_SESSION[]
49. Function used to convert new lines in a variable from a form to <br /> tags so that the data can be formatted correctly.
Parse error
Hex
nl2br()
$_POST[]
50. any programing language where the script is parsed on the server
$_REQUEST
server-side programing
getrandmax()
loops
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