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. leading zero: 0100 or 0567
associative array
octal
include() and require()
if/elseif/else and switch statements
2. To create an array
curly braces
array()
preg_replace()
Constant
3. The order of operations.
function error_reporting()
precedence
client-side programing
fopen()
4. An array of variables passed in the URL
Parse error
underscores
$_GET[]
array_merge()
5. The name of the #! used to designate the location of the PHP binary
htmlentities()
float
Shebang
addslashes()
6. To iterate over the keys and values of an array
str_ireplace()
general
foreach loop
error_reporting (E_ALL)
7. Use ______ when a variable contains any amount of variables; in general.
double quotes
Warning
SEO
true
8. Document Type Definitions
DTD
single quotes
count()
defined()
9. any programing language where the script is parsed on the server
str_ireplace()
server-side programing
htmlspecialchars()
foreach loop
10. The syntax for connecting to a database
integer
$dbc = mysql_connect(hostname, username, password)
chr()
rsort()
11. Used to encrypt values - it is a one-way encryption method
crypt()
Parse error
include() and require()
$_POST[]
12. A data structure that can hold a number of items of data of the same type eg. a list of names
unset()
echo
integer
array
13. Similar to mysql_fetch_array() - but cannot be accessed by integer offset
variable
ceil()
mysql_fetch_object()
nl2br()
14. The concatenation assignment operator?
mysql
wordwrap()
.=
foreach loop
15. standard notation
sort()
count()
unset()
decimal
16. allows you to split strings based on more complex rules
Array
function error_reporting()
preg_split()
SEO
17. Returns a character from a specified ASCII value
strip_tags()
open source
chr()
trim()
18. This error arises from misusing a function.
echo
mysql_fetch_array()
double quotes
Warning
19. function Function used to create a random number
strip_tags()
rand()
superglobal
HTML
20. To refer to an item in an array
$varname[key]
strtok()
XML
isset()
21. To delete a variable or an element of an array
Array
unset()
crypt()
true
22. Control structure that continue exit - they perform specific statements for a determined number of iterations.
loops
<?php
include() and require()
indexed array
23. Besides GET and POST ________ can be used to access data but $_POST and $_GET are more precise and therefore preferable.
Parse error
$_REQUEST
PHP
curly braces; ${$total}
24. This will show all error reporting except for notice errors.
curly braces
mysql_fetch_object()
wordwrap()
error_reporting (E_ALL & -E_NOTICE)
25. returns the number of matches found by a given search string under this format...
numbers
preg_match()
addcslashes()
error_reporting (E_ALL)
26. Predefined constants such as __LINE__ or __FILE__ or __FUNCTION__ or __CLASS__ and __METHOD__
ceil()
foreach
predefined
Magic Constant
27. ____ or key is referred to for a value within an array.
rand()
ASP
index
!= inequality
28. Function used to round up to the highest integer
drop
Warning
ceil()
PHP
29. Used to convert certain HTML tags into their entity versions.
curly braces; ${$total}
htmlspecialchars()
ASP
isset()
30. To sort values of an array without regard to the keys
parentheses
sort()
list()
+= or -= or *= or /=
31. equivalence
rsort()
shuffle()
trim()
==
32. To get time data
date()
foreach loop
chr()
boolean
33. The seven main SQL (structured query language) functions are alter - create - delete - _______ - insert - select - update
getrandmax()
drop
echo
ksort()
34. To determine the amount of elements in an array
trim()
count()
function
Magic Constant
35. The three types of loops in PHP are: for - while - ____.
foreach
chop()
==
<?php
36. Use ______ when there are no variables in the string
ini_set ('display_errors', 1)
<<
for ($i = 0; $i < count($array); $i++) {statement(s);}
single quotes
37. To assign array element values to individual variables
foreach loop
list()
$_POST[]
echo
38. The ouput of var_export((bool)"NULL");
true
1
$_REQUEST
foreach loop
39. Used to convert all HTML tags into their entity versions.
the escape character ''
htmlentities()
preg_match()
>>
40. To include files - _______ will give errors and _________ will terminate execution().
sort()
Parse error
is_numeric()
include() and require()
41. Used to create a substring (referred to as a token) from a larger string
!= inequality
strip_tags()
$_SESSION[]
strtok()
42. print $_SERVER will _____ work if you use the print function on arrays.
1
rsort()
server-side programing
not
43. To sort the values while maintaining the correlation between each value and its key - in reversed order
empty()
curly braces
==
arsort()
44. To counter htmlentities()
the dollar sign $
html_entity_decode()
sql
precedence
45. a positive or negative number
integer
bin2hex()
htmlspecialchars()
array()
46. To set up error reporting
E_STRICT
function error_reporting()
parentheses
switch
47. Online applications and resources which are available to the general public with very few restrictions
+= or -= or *= or /=
trim()
open source
is_numeric()
48. To sort the values while maintaining the correlation between each value and its key
XOR
asort()
parentheses
<?php
49. bitwise left shift
<<
rand()
fopen()
reassign
50. 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 __________.
general
rand()
htmlspecialchars()
curly braces; ${$total}
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