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 find the amount of words in a string.
nl2br()
abs()
str_word_count()
htmlspecialchars()
2. To reset an array _______ the array() function to the array
reassign
number_format()
+
Parse error
3. Used to check if a variable has a valid numerical value; strings with numerical values pass.
$var++ and $var
===
is_numeric()
curly braces
4. 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
<<
curly braces; ${$total}
substr_count()
5. Used to encrypt values - it is a one-way encryption method
associative array
str_word_count()
crypt()
HTTP
6. The syntax for connecting to a database
fopen()
int
open source
$dbc = mysql_connect(hostname, username, password)
7. Search Engine Optimization
$_GET[]
the escape character ''
SEO
Error
8. signed floating-point value
Object
float
precedence
open source
9. Used to convert certain HTML tags into their entity versions.
array
Array
htmlspecialchars()
true
10. To merge arrays
array_merge()
single quotes
underscores
abs()
11. Function used to convert new lines in a variable from a form to <br /> tags so that the data can be formatted correctly.
fopen()
nl2br()
<?php
Warning
12. identity
error_reporting (E_ALL & -E_NOTICE)
===
shuffle()
true
13. To declare a constant
html_entity_decode()
define()
strtok()
function
14. does a certain action when called upon
nl2br()
SEO
function
general
15. Used to convert all HTML tags into their entity versions.
boolean
define()
DTD
htmlentities()
16. To close a connection between a database
floor()
mysql_close($dbc)
array
ASP
17. a line of information that can be stored in a variable or used in a function or statement
preg_split()
string
strip_tags()
not
18. This will not show error reporting - it will be turned off.
number_format()
statement
loops
error_reporting (0)
19. To get time data
AJAX
date()
nl2br()
include() and require()
20. To iterate over the keys and values of an array
!= inequality
predefined variable
chop()
foreach loop
21. Function that contains the highest value that rand() can have randomly
preg_match()
is_numeric()
superglobal
getrandmax()
22. Online applications and resources which are available to the general public with very few restrictions
integer
open source
associative array
is_numeric()
23. The array that stores variables specific to a user's visit
$_SESSION[]
the period; .
nl2br()
preg_match()
24. Use ______ when there are no variables in the string
error_reporting (E_ALL | E_STRICT)
1
==
single quotes
25. To find how many substrings are in a string
floor()
nl2br()
AJAX
substr_count()
26. standard notation
decimal
Magic Constant
addslashes()
strlen()
27. To counter htmlentities()
round() Function
SEO
error_reporting (E_ALL)
html_entity_decode()
28. When used the value can be passed safely through the URL (GET).
octal
urlencode()
.=
wordwrap()
29. a positive or negative number
Constant
===
integer
$_REQUEST
30. The output of var_export((float)array(0));
Parse error
1
include() and require()
string
31. Alias of rtrim()
date()
precedence
SGML
chop()
32. bitwise right shift
chr()
rand()
drop
>>
33. Control structure that continue exit - they perform specific statements for a determined number of iterations.
predefined
E_STRICT
loops
associative array
34. A conditional or loop is a ________________.
+
urlencode()
control structure
string
35. Control structures that break exit
drop
error_reporting (E_ALL | E_STRICT)
if/elseif/else and switch statements
mysql_fetch_object()
36. To sort the values while maintaining the correlation between each value and its key
foreach loop
asort()
crypt()
predefined
37. Hypertext Preprocessor - a server-side programing language used to create webpages
PHP
the escape character ''
function error_reporting()
urlencode()
38. Returns a string with backslashes in front of the specified characters
addcslashes()
for ($i = 0; $i < count($array); $i++) {statement(s);}
error_reporting (E_ALL)
crypt()
39. This will show all error reporting.
drop
<?php
error_reporting (E_ALL)
null
40. The prefix for a dynamic variable - also known as a variable variable
shuffle()
error_reporting (E_ALL)
ini_set ('display_errors', 1)
$$
41. Variable names cannot begin with _______
server-side programing
$_SESSION[]
WYSIWYG
numbers
42. Hyper Text Transfer Protocol
$$
preg_match()
HTTP
octal
43. a storage location in the computer's memory that has a type & a name and a contents
parentheses
reassign
Notice
variable
44. A data structure that can hold a number of items of data of the same type eg. a list of names
mysql_fetch_object()
array
?>
XML
45. Hyper Text Markup Language
drop
variable
+
HTML
46. To remove all HTML and PHP tags.
preg_match()
Hex
ceil()
strip_tags()
47. To sort values of an array without regard to the keys
htmlentities()
sort()
&
function error_reporting()
48. Used to check if a given variable has an "empty" value - no value or 0 or FALSE.
!= inequality
date()
boolean
empty()
49. print $_SERVER will _____ work if you use the print function on arrays.
octal
the period; .
not
strlen()
50. The three types of loops in PHP are: for - while - ____.
asort()
int
foreach
the escape character ''
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