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
abs()
preg_match()
isset()
XML
2. An array whose keys are strings; also known as a hash.
HTML
underscores
!= inequality
associative array
3. Predefined constants such as __LINE__ or __FILE__ or __FUNCTION__ or __CLASS__ and __METHOD__
trim()
nl2br()
Magic Constant
rsort()
4. Function used to convert new lines in a variable from a form to <br /> tags so that the data can be formatted correctly.
nl2br()
rand()
urlencode()
curly braces
5. _____ is a logical operator
XOR
asort()
Hex
ceil()
6. Converts a string of ASCII characters to hexadecimal values
preg_match()
bin2hex()
XML
.=
7. Control structure that continue exit - they perform specific statements for a determined number of iterations.
shuffle()
loops
HTML
mysql_fetch_object()
8. Used to encrypt values - it is a one-way encryption method
array()
XML
crypt()
str_word_count()
9. All variables must begin with _________.
reassign
Hex
the dollar sign $
$array[] = item
10. Used to find the length of a string
negative numbers
$_SESSION[]
floor()
strlen()
11. The three types of loops in PHP are: for - while - ____.
array()
foreach
strip_tags()
$$
12. Function used to find the absolute value of a number or numeric variable
abs()
string
empty()
strlen()
13. 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 __________.
>>
boolean
curly braces; ${$total}
wordwrap()
14. bitwise AND
true
>>
numbers
&
15. allows you to split strings based on more complex rules
switch
foreach
preg_split()
error_reporting (E_ALL | E_STRICT)
16. Function can you use to format a number with commas
index
number_format()
html_entity_decode()
server-side programing
17. Hyper Text Markup Language
$var++ and $var
precedence
ksort()
HTML
18. To reset an array _______ the array() function to the array
1
chop()
reassign
null
19. Used to find the amount of words in a string.
str_word_count()
rsort()
===
isset()
20. Active Server Pages
ASP
ini_set ('display_errors', 1)
htmlspecialchars()
arsort()
21. To sort the values while maintaining the correlation between each value and its key
precedence
asort()
Array
===
22. To sort values of an array in reversed order
POST
predefined variable
rsort()
<?php
23. Hyper Text Transfer Protocol
round() Function
>>
==
HTTP
24. Used to create a substring (referred to as a token) from a larger string
fopen()
strtok()
$_REQUEST
+
25. 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
26. a database which is best supported by PHP
mysql
GET
AJAX
array_merge()
27. $_SERVER - $_POST - $_GET - $_COOKIE - $_SESSION - $_ENV; special arrays.
superglobal
loops
strip_tags()
chr()
28. An array whose keys are numbers.
control structure
date()
indexed array
XML
29. Creates a pointer to a file with the declared mode (read - write -etc.).
if/elseif/else and switch statements
switch
fopen()
WYSIWYG
30. bitwise XOR
sql
Array
is_numeric()
^
31. Use ______ when a variable contains any amount of variables; in general.
!= inequality
GET
$var++ and $var
double quotes
32. Hypertext Preprocessor - a server-side programing language used to create webpages
function
preg_split()
predefined variable
PHP
33. To refer to an element in a multidimensional array list the indices in order of _____ to more precise;
error_reporting (E_ALL | E_STRICT)
getrandmax()
general
is_numeric()
34. This will show all errors that fall under E_ALL or E_STRICT - the pipe | is used for 'or' so that errors that fall under either will be shown.
htmlspecialchars()
error_reporting (E_ALL | E_STRICT)
==
HTTP
35. The name of the #! used to designate the location of the PHP binary
Hex
if/elseif/else and switch statements
Shebang
ceil()
36. Tag to end a php script
?>
$_REQUEST
double quotes
chop()
37. To create an array
$varname[key]
array()
drop
$_SESSION[]
38. Besides GET and POST ________ can be used to access data but $_POST and $_GET are more precise and therefore preferable.
$_REQUEST
single quotes
$_GET[]
fopen()
39. Search Engine Optimization
predefined
asort()
0
SEO
40. Returns an array that corresponds to the fetched row of MySQL data and moves the internal data pointer ahead
for ($i = 0; $i < count($array); $i++) {statement(s);}
function
mysql_fetch_array()
bin2hex()
41. $_POST and $_GET are ________ variables.
single quotes
numbers
predefined
$dbc = mysql_connect(hostname, username, password)
42. To sort the values while maintaining the correlation between each value and its key - in reversed order
arsort()
POST
the period; .
underscores
43. The concatenation assignment operator?
AJAX
.=
strtok()
POST
44. Used to convert certain HTML tags into their entity versions.
DTD
int
define()
htmlspecialchars()
45. The syntax for connecting to a database
float
crypt()
drop
$dbc = mysql_connect(hostname, username, password)
46. Variable names can begin with __________
+
underscores
urlencode()
client-side programing
47. Use _______ for passwords or pages that would not be bookmarked or pages that require security.
array
POST
$var++ and $var
==
48. container of both data and code
number_format()
Object
addcslashes()
underscores
49. To declare a constant
strtok()
<<
client-side programing
define()
50. To set up error reporting
reassign
function error_reporting()
crypt()
define()
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