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. bitwise left shift
numbers
the period; .
<<
for ($i = 0; $i < count($array); $i++) {statement(s);}
2. Creates a pointer to a file with the declared mode (read - write -etc.).
foreach loop
0
fopen()
control structure
3. To assign keys to the values in an array
array
foreach loop
abs()
array()
4. Used to replace a substring with another string - it is not case-sensitive.
floor()
array
control structure
str_ireplace()
5. bitwise AND
curly braces; ${$total}
float
empty()
&
6. The syntax for connecting to a database
$dbc = mysql_connect(hostname, username, password)
urlencode()
variable
indexed array
7. This error refers to a variable with no value.
mysql_fetch_array()
.=
addslashes()
Notice
8. To word wrap after a certain amount of characters.
wordwrap()
the dollar sign $
===
index
9. An array of variables passed with <input /> data
string
if/elseif/else and switch statements
ceil()
$_POST[]
10. Used to create a substring (referred to as a token) from a larger string
strtok()
float
floor()
Shebang
11. This will not show error reporting - it will be turned off.
unset()
define()
strip_tags()
error_reporting (0)
12. print $_SERVER will _____ work if you use the print function on arrays.
XML
not
$$
precedence
13. the most basic function in PHP used to output information to the page
$_GET[]
define()
echo
boolean
14. 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.
Parse error
error_reporting (E_ALL | E_STRICT)
<?php
statement
15. searches the subject for matches to a given pattern replaced with the given replacement text
number_format()
preg_replace()
AJAX
1
16. Used to check if a given variable has an "empty" value - no value or 0 or FALSE.
if/elseif/else and switch statements
empty()
string
strip_tags()
17. When used the value can be passed safely through the URL (GET).
1
switch
true
urlencode()
18. 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
19. ____ or key is referred to for a value within an array.
addslashes()
<?php
rand()
index
20. Online applications and resources which are available to the general public with very few restrictions
octal
negative numbers
strlen()
open source
21. Uses two arguments: constant name and constant definition
XML
index
define()
count()
22. EXtensible Markup Language
reassign
true
unset()
XML
23. Asynchronous Javascript And XML
AJAX
round() Function
true
$$
24. says 'if' this then do this 'else' do this or 'while' this do this
statement
chop()
boolean
define()
25. This will show all error reporting.
$dbc = mysql_connect(hostname, username, password)
error_reporting (E_ALL)
number_format()
Parse error
26. To sort the values while maintaining the correlation between each value and its key
variable
asort()
nl2br()
$_GET[]
27. container of ordered data elements
PHP
Array
preg_match()
Parse error
28. a positive or negative number
date()
$var++ and $var
mysql_fetch_object()
integer
29. To close a connection between a database
rand()
foreach loop
arsort()
mysql_close($dbc)
30. An array of variables passed in the URL
shuffle()
^
$_GET[]
empty()
31. Control structures that break exit
reassign
if/elseif/else and switch statements
==
$var++ and $var
32. Tag to begin a php script
single quotes
preg_replace()
list()
<?php
33. To include files - _______ will give errors and _________ will terminate execution().
include() and require()
error_reporting (E_ALL | E_STRICT)
htmlentities()
predefined variable
34. Used to convert certain HTML tags into their entity versions.
addslashes()
htmlspecialchars()
Parse error
unset()
35. Function used to round up to the highest integer
ceil()
indexed array
curly braces; ${$total}
ksort()
36. The seven main SQL (structured query language) functions are alter - create - delete - _______ - insert - select - update
1
boolean
parentheses
drop
37. Document Type Definitions
<?php
PHP
rand()
DTD
38. Hypertext Preprocessor - a server-side programing language used to create webpages
arsort()
PHP
strip_tags()
strlen()
39. signed integer
general
$var++ and $var
int
!= inequality
40. To sort by the keys while maintaining the correlation between the key and its value
Hex
switch
ksort()
foreach loop
41. returns the number of matches found by a given search string under this format...
?>
number_format()
preg_match()
define()
42. _______ is a comparison operator
Notice
switch
!= inequality
htmlspecialchars()
43. Used to remove any white space - spaces or newlines or tabs - from the beginning and end of a string - not the middle.
E_STRICT
trim()
is_numeric()
defined()
44. The name of the #! used to designate the location of the PHP binary
Shebang
the dollar sign $
Warning
$var++ and $var
45. $_POST Data sent using POST found is sent to _______
not
empty()
AJAX
predefined variable
46. To reorganise the array randomly
htmlentities()
shuffle()
unset()
count()
47. A data structure that can hold a number of items of data of the same type eg. a list of names
urlencode()
general
array
predefined
48. To iterate over the values of an array
predefined variable
SEO
for ($i = 0; $i < count($array); $i++) {statement(s);}
negative numbers
49. standard notation
decimal
drop
HTML
function error_reporting()
50. To merge arrays
curly braces
array_merge()
statement
crypt()
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