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 delete a variable or an element of an array
SGML
unset()
empty()
PHP
2. TRUE or FALSE
the dollar sign $
boolean
rsort()
preg_match()
3. Tag to begin a php script
<?php
HTML
strlen()
addcslashes()
4. says 'if' this then do this 'else' do this or 'while' this do this
reassign
floor()
statement
HTTP
5. Used to check if a variable has a valid numerical value; strings with numerical values pass.
Parse error
is_numeric()
preg_split()
echo
6. The concatenation assignment operator?
ceil()
curly braces; ${$total}
Magic Constant
.=
7. searches the subject for matches to a given pattern replaced with the given replacement text
0
preg_replace()
octal
number_format()
8. ___________ can be used with substr() to count backward
strip_tags()
negative numbers
urlencode()
+
9. The seven main SQL (structured query language) functions are alter - create - delete - _______ - insert - select - update
XOR
superglobal
drop
bin2hex()
10. To sort values of an array without regard to the keys
boolean
urlencode()
sort()
chr()
11. Function used to round up to the highest integer
ceil()
strlen()
fopen()
array()
12. To get over quotation marks while using arrays
SEO
mysql_close($dbc)
getrandmax()
curly braces
13. Search Engine Optimization
POST
floor()
SEO
Error
14. identity
string
preg_replace()
===
bin2hex()
15. To declare a constant
for ($i = 0; $i < count($array); $i++) {statement(s);}
preg_replace()
define()
index
16. Use ______ when a variable contains any amount of variables; in general.
SEO
?>
SGML
double quotes
17. Hyper Text Transfer Protocol
HTTP
$_SESSION[]
associative array
addslashes()
18. This error refers to a variable with no value.
Notice
array_merge()
associative array
server-side programing
19. Returns a string with backslashes in front of predefined characters
arsort()
addslashes()
+= or -= or *= or /=
error_reporting (0)
20. An array of variables passed in the URL
AJAX
$_GET[]
indexed array
Shebang
21. Control structure that continue exit - they perform specific statements for a determined number of iterations.
shuffle()
predefined variable
loops
strlen()
22. 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
23. The four main error types are:Notice - Warning - ________ and Error.
Parse error
boolean
integer
==
24. This error arises from misusing a function.
$dbc = mysql_connect(hostname, username, password)
Warning
not
str_ireplace()
25. The concatenation operator?
null
boolean
chr()
the period; .
26. To find how many substrings are in a string
!= inequality
foreach loop
$varname[key]
substr_count()
27. Uses two arguments: constant name and constant definition
define()
statement
rsort()
variable
28. A data structure that can hold a number of items of data of the same type eg. a list of names
general
trim()
arsort()
array
29. Alias of rtrim()
chop()
GET
ksort()
Parse error
30. bitwise XOR
Array
variable
^
mysql
31. Hyper Text Markup Language
asort()
the dollar sign $
HTML
foreach
32. Use ______ when there are no variables in the string
single quotes
ceil()
Notice
PHP
33. Define(NAME,value)
Constant
arsort()
floor()
client-side programing
34. a type with two possible values: true and false
boolean
str_ireplace()
<?php
array()
35. a storage location in the computer's memory that has a type & a name and a contents
variable
rand()
1
<?php
36. To counter htmlentities()
html_entity_decode()
XML
error_reporting (E_ALL)
rsort()
37. Use ______ for search engines or catalogued pages or pages that would be bookmarked.
strtok()
GET
general
double quotes
38. Predefined constants such as __LINE__ or __FILE__ or __FUNCTION__ or __CLASS__ and __METHOD__
curly braces
array_merge()
Magic Constant
html_entity_decode()
39. Tag to end a php script
string
array
include() and require()
?>
40. Used to check if a given variable has an "empty" value - no value or 0 or FALSE.
server-side programing
empty()
1
define()
41. Returns an array that corresponds to the fetched row of MySQL data and moves the internal data pointer ahead
reassign
curly braces; ${$total}
mysql_fetch_array()
strtok()
42. To get time data
nl2br()
superglobal
Shebang
date()
43. To append elements to an array - this will assign item to the next available index; associative arrays get messy.
strtok()
client-side programing
$array[] = item
statement
44. Function that contains the highest value that rand() can have randomly
$_REQUEST
WYSIWYG
abs()
getrandmax()
45. Active Server Pages
single quotes
ASP
preg_split()
mysql_fetch_array()
46. standard notation
reassign
trim()
decimal
predefined
47. print $_SERVER will _____ work if you use the print function on arrays.
chop()
not
preg_split()
Notice
48. What You See Is What You Get
$array[] = item
htmlentities()
Notice
WYSIWYG
49. bitwise left shift
$_REQUEST
underscores
strtok()
<<
50. a positive or negative number
integer
0
sql
ceil()
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