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. 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
2. A conditional or loop is a ________________.
control structure
integer
html_entity_decode()
abs()
3. Online applications and resources which are available to the general public with very few restrictions
mysql_fetch_object()
boolean
open source
octal
4. function Function used to create a random number
Shebang
rand()
loops
precedence
5. An array of variables passed with <input /> data
defined()
$array[] = item
mysql
$_POST[]
6. The concatenation assignment operator?
abs()
$varname[key]
list()
.=
7. a language in which to make querys to a database with
bin2hex()
sql
count()
urlencode()
8. To counter htmlentities()
html_entity_decode()
single quotes
drop
reassign
9. Function can you use to format a number with commas
number_format()
true
double quotes
abs()
10. Returns a character from a specified ASCII value
bin2hex()
PHP
drop
chr()
11. Hyper Text Transfer Protocol
drop
curly braces
HTTP
preg_replace()
12. bitwise AND
&
!= inequality
trim()
AJAX
13. leading zero: 0100 or 0567
octal
foreach loop
str_word_count()
bin2hex()
14. An array whose keys are numbers.
str_word_count()
indexed array
Object
boolean
15. Use ______ for search engines or catalogued pages or pages that would be bookmarked.
arsort()
array
GET
HTTP
16. Returns an array that corresponds to the fetched row of MySQL data and moves the internal data pointer ahead
curly braces; ${$total}
$array[] = item
mysql_fetch_array()
count()
17. The output of var_export((float)array(0));
arsort()
1
the period; .
indexed array
18. To word wrap after a certain amount of characters.
superglobal
decimal
asort()
wordwrap()
19. _________ can be used in conditional statements to set precedence
parentheses
foreach loop
sort()
mysql_close($dbc)
20. signed integer
int
isset()
0
<<
21. does a certain action when called upon
function
for ($i = 0; $i < count($array); $i++) {statement(s);}
$_POST[]
+
22. Used to convert all HTML tags into their entity versions.
htmlentities()
curly braces; ${$total}
SEO
XML
23. a database which is best supported by PHP
DTD
mysql
shuffle()
Magic Constant
24. searches the subject for matches to a given pattern replaced with the given replacement text
preg_split()
function
preg_replace()
Warning
25. All variables must begin with _________.
+= or -= or *= or /=
list()
abs()
the dollar sign $
26. a positive or negative number
server-side programing
integer
round() Function
array
27. Hyper Text Markup Language
decimal
HTML
SGML
E_STRICT
28. This error arises from misusing a function.
.=
integer
Warning
foreach loop
29. PHP has two conditional: if and ______.
ksort()
strtok()
true
switch
30. To find how many substrings are in a string
mysql
$var++ and $var
substr_count()
trim()
31. any programing language where the user must support the language the script is written in
html_entity_decode()
str_word_count()
echo
client-side programing
32. Similar to mysql_fetch_array() - but cannot be accessed by integer offset
abs()
htmlspecialchars()
crypt()
mysql_fetch_object()
33. Document Type Definitions
switch
DTD
+
abs()
34. either hasn't yet been set or is assigned NULL value
PHP
integer
unset()
null
35. Used to check if a variable has a valid numerical value; strings with numerical values pass.
is_numeric()
Array
single quotes
boolean
36. To get time data
integer
date()
ceil()
predefined variable
37. To refer to an item in an array
$varname[key]
variable
preg_replace()
asort()
38. Active Server Pages
ASP
strip_tags()
ceil()
Parse error
39. Used to find the amount of words in a string.
bin2hex()
Shebang
str_word_count()
integer
40. _____ is a logical operator
superglobal
Hex
+
XOR
41. used to round numeric values.
error_reporting (0)
round() Function
Constant
.=
42. What You See Is What You Get
Array
WYSIWYG
+= or -= or *= or /=
HTTP
43. This fatal error arises from memory allocation problem.
preg_match()
mysql_close($dbc)
Error
asort()
44. To sort by the keys while maintaining the correlation between the key and its value
GET
XML
ASP
ksort()
45. Tag to begin a php script
<?php
preg_match()
strlen()
$varname[key]
46. The seven main SQL (structured query language) functions are alter - create - delete - _______ - insert - select - update
HTML
single quotes
fopen()
drop
47. Used to convert certain HTML tags into their entity versions.
preg_replace()
htmlspecialchars()
include() and require()
str_ireplace()
48. standard notation
the dollar sign $
variable
Shebang
decimal
49. Use ______ when there are no variables in the string
$var++ and $var
if/elseif/else and switch statements
single quotes
mysql_close($dbc)
50. print $_SERVER will _____ work if you use the print function on arrays.
Shebang
is_numeric()
not
!= inequality
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