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 sort values of an array in reversed order
array()
if/elseif/else and switch statements
rsort()
superglobal
2. What You See Is What You Get
indexed array
WYSIWYG
Hex
array()
3. PHP has two conditional: if and ______.
array()
chop()
reassign
switch
4. Function used to round up to the highest integer
error_reporting (0)
ceil()
strlen()
index
5. Function used to round down to the lowest integer
foreach
floor()
arsort()
statement
6. The ouput of var_export((bool)"NULL");
trim()
crypt()
true
decimal
7. 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
8. Hyper Text Markup Language
?>
foreach
chr()
HTML
9. Returns an array that corresponds to the fetched row of MySQL data and moves the internal data pointer ahead
mysql_fetch_array()
array_merge()
not
null
10. Function can you use to format a number with commas
shuffle()
0
number_format()
error_reporting (E_ALL & -E_NOTICE)
11. Similar to mysql_fetch_array() - but cannot be accessed by integer offset
POST
mysql_fetch_object()
urlencode()
define()
12. Function used to find the absolute value of a number or numeric variable
round() Function
abs()
arsort()
superglobal
13. a storage location in the computer's memory that has a type & a name and a contents
preg_split()
variable
Notice
open source
14. The seven main SQL (structured query language) functions are alter - create - delete - _______ - insert - select - update
Magic Constant
strip_tags()
drop
<<
15. print $_SERVER will _____ work if you use the print function on arrays.
not
string
sql
superglobal
16. Predefined constants such as __LINE__ or __FILE__ or __FUNCTION__ or __CLASS__ and __METHOD__
$_POST[]
array
index
Magic Constant
17. The name of the #! used to designate the location of the PHP binary
Parse error
mysql_fetch_object()
Shebang
float
18. Document Type Definitions
array_merge()
DTD
double quotes
$var++ and $var
19. bitwise left shift
Shebang
fopen()
precedence
<<
20. Tag to end a php script
GET
str_ireplace()
parentheses
?>
21. To refer to an element in a multidimensional array list the indices in order of _____ to more precise;
general
open source
precedence
error_reporting (E_ALL & -E_NOTICE)
22. The order of operations.
substr_count()
double quotes
index
precedence
23. To determine the amount of elements in an array
^
true
count()
list()
24. EXtensible Markup Language
XML
str_word_count()
ini_set ('display_errors', 1)
error_reporting (E_ALL)
25. To merge arrays
control structure
+
underscores
array_merge()
26. TRUE or FALSE
reassign
integer
Error
boolean
27. a database which is best supported by PHP
&
list()
superglobal
mysql
28. To delete a variable or an element of an array
==
curly braces; ${$total}
echo
unset()
29. To counter htmlentities()
boolean
ksort()
open source
html_entity_decode()
30. _________ can be used in conditional statements to set precedence
$varname[key]
parentheses
==
defined()
31. either hasn't yet been set or is assigned NULL value
<?php
indexed array
null
the period; .
32. container of both data and code
Object
define()
echo
include() and require()
33. Function that contains the highest value that rand() can have randomly
wordwrap()
integer
getrandmax()
<?php
34. Uses two arguments: constant name and constant definition
Shebang
define()
Constant
loops
35. Hypertext Preprocessor - a server-side programing language used to create webpages
$dbc = mysql_connect(hostname, username, password)
PHP
statement
foreach
36. Control structures that break exit
if/elseif/else and switch statements
+= or -= or *= or /=
wordwrap()
null
37. collection of binary data
indexed array
decimal
$_REQUEST
string
38. Variable names can begin with __________
numbers
preg_match()
strip_tags()
underscores
39. container of ordered data elements
Array
index
<?php
strip_tags()
40. To include files - _______ will give errors and _________ will terminate execution().
asort()
include() and require()
rsort()
AJAX
41. To find how many substrings are in a string
substr_count()
crypt()
Parse error
Object
42. Use ________ to have multiple quotations in one string
$_REQUEST
echo
the escape character ''
decimal
43. An array of variables passed in the URL
$_GET[]
float
echo
DTD
44. The three types of loops in PHP are: for - while - ____.
not
foreach
superglobal
integer
45. bitwise XOR
GET
htmlentities()
rsort()
^
46. To reset an array _______ the array() function to the array
define()
str_word_count()
integer
reassign
47. To create an array
server-side programing
HTTP
chop()
array()
48. To sort the values while maintaining the correlation between each value and its key
asort()
Hex
==
true
49. searches the subject for matches to a given pattern replaced with the given replacement text
include() and require()
function
preg_replace()
float
50. An array of variables passed with <input /> data
null
client-side programing
foreach loop
$_POST[]
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