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. EXtensible Markup Language
XML
strip_tags()
chr()
string
2. Leading 0x: 0x13F or 0xA23
Hex
round() Function
===
Constant
3. To iterate over the keys and values of an array
mysql
predefined
foreach loop
defined()
4. To sort the values while maintaining the correlation between each value and its key
shuffle()
asort()
!= inequality
mysql_close($dbc)
5. signed floating-point value
float
underscores
list()
preg_replace()
6. a storage location in the computer's memory that has a type & a name and a contents
Array
variable
switch
drop
7. An array of variables passed with <input /> data
for ($i = 0; $i < count($array); $i++) {statement(s);}
loops
$_POST[]
numbers
8. Use ______ for search engines or catalogued pages or pages that would be bookmarked.
parentheses
bin2hex()
GET
$_GET[]
9. any programing language where the script is parsed on the server
control structure
<?php
superglobal
server-side programing
10. The prefix for a dynamic variable - also known as a variable variable
$$
$array[] = item
negative numbers
HTML
11. This will not show error reporting - it will be turned off.
$array[] = item
error_reporting (0)
define()
string
12. Control structures that break exit
Array
$dbc = mysql_connect(hostname, username, password)
if/elseif/else and switch statements
Warning
13. Variable names can begin with __________
bin2hex()
rsort()
underscores
$array[] = item
14. any programing language where the user must support the language the script is written in
general
client-side programing
floor()
Constant
15. To put a dollar sign before a variable like $10 where 10 is the variable's value - you can escape the first dollar sign; $$cost; or you can use __________.
curly braces; ${$total}
+= or -= or *= or /=
rsort()
strip_tags()
16. To refer to an item in an array
array
$varname[key]
count()
fopen()
17. used to round numeric values.
ini_set ('display_errors', 1)
round() Function
client-side programing
mysql_close($dbc)
18. This fatal fatal is caused by a semantic mistake: omission of a semicolon or imbalance of quotations or parentheses or braces.
mysql_close($dbc)
index
chop()
Parse error
19. TRUE or FALSE
boolean
sql
curly braces; ${$total}
predefined
20. Returns an array that corresponds to the fetched row of MySQL data and moves the internal data pointer ahead
ksort()
<?php
array()
mysql_fetch_array()
21. Function used to round down to the lowest integer
XML
sort()
floor()
Object
22. Besides GET and POST ________ can be used to access data but $_POST and $_GET are more precise and therefore preferable.
$_REQUEST
HTML
indexed array
ksort()
23. This error arises from misusing a function.
ksort()
Parse error
Warning
negative numbers
24. Active Server Pages
loops
ASP
count()
true
25. A conditional or loop is a ________________.
double quotes
wordwrap()
number_format()
control structure
26. This will show all error reporting.
is_numeric()
ini_set ('display_errors', 1)
error_reporting (E_ALL)
GET
27. bitwise right shift
strip_tags()
>>
HTTP
defined()
28. To sort by the keys while maintaining the correlation between the key and its value
ini_set ('display_errors', 1)
>>
ksort()
sort()
29. Use ______ when a variable contains any amount of variables; in general.
double quotes
shuffle()
.=
preg_split()
30. Used to encrypt values - it is a one-way encryption method
crypt()
?>
<<
curly braces
31. container of both data and code
Object
boolean
trim()
!= inequality
32. The syntax for connecting to a database
$dbc = mysql_connect(hostname, username, password)
integer
for ($i = 0; $i < count($array); $i++) {statement(s);}
the escape character ''
33. Tag to begin a php script
<?php
^
PHP
SEO
34. Hyper Text Markup Language
predefined variable
.=
HTML
$_SESSION[]
35. To word wrap after a certain amount of characters.
mysql_fetch_array()
define()
wordwrap()
Error
36. This fatal error arises from memory allocation problem.
shuffle()
preg_split()
Error
<<
37. container of ordered data elements
foreach loop
$$
parentheses
Array
38. PHP has two conditional: if and ______.
addslashes()
predefined
curly braces
switch
39. To get over quotation marks while using arrays
curly braces
list()
DTD
SEO
40. The order of operations.
defined()
precedence
HTTP
preg_replace()
41. The output of var_export((float)array(0));
1
Error
index
Array
42. To remove all HTML and PHP tags.
$$
null
the dollar sign $
strip_tags()
43. The three types of loops in PHP are: for - while - ____.
foreach
+= or -= or *= or /=
+
Magic Constant
44. What You See Is What You Get
WYSIWYG
getrandmax()
string
double quotes
45. Shorthand used to increment and decrement
$var++ and $var
1
index
curly braces; ${$total}
46. To assign keys to the values in an array
array()
Parse error
$$
negative numbers
47. Control structure that continue exit - they perform specific statements for a determined number of iterations.
float
loops
PHP
drop
48. Used to find the amount of words in a string.
date()
statement
$_GET[]
str_word_count()
49. either hasn't yet been set or is assigned NULL value
mysql
strtok()
numbers
null
50. searches the subject for matches to a given pattern replaced with the given replacement text
preg_replace()
predefined
unset()
$var++ and $var
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