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. Function used to round up to the highest integer
Hex
+
ceil()
strip_tags()
2. Used to replace a substring with another string - it is not case-sensitive.
strtok()
<<
str_ireplace()
trim()
3. To iterate over the keys and values of an array
array()
curly braces
foreach loop
error_reporting (E_ALL & -E_NOTICE)
4. This error arises from misusing a function.
int
the dollar sign $
Warning
ceil()
5. Similar to mysql_fetch_array() - but cannot be accessed by integer offset
mysql_fetch_object()
htmlentities()
+
$$
6. Hypertext Preprocessor - a server-side programing language used to create webpages
Notice
list()
PHP
>>
7. equivalence
crypt()
strip_tags()
array_merge()
==
8. Hyper Text Markup Language
0
strlen()
server-side programing
HTML
9. All variables must begin with _________.
Notice
array_merge()
the dollar sign $
chr()
10. a database which is best supported by PHP
mysql
nl2br()
for ($i = 0; $i < count($array); $i++) {statement(s);}
POST
11. bitwise right shift
round() Function
sql
drop
>>
12. Used to encrypt values - it is a one-way encryption method
foreach
crypt()
===
sort()
13. Used to create a substring (referred to as a token) from a larger string
negative numbers
numbers
strtok()
<<
14. leading zero: 0100 or 0567
octal
PHP
round() Function
rsort()
15. bitwise left shift
crypt()
Array
bin2hex()
<<
16. any programing language where the user must support the language the script is written in
boolean
client-side programing
predefined variable
SGML
17. Function used to round down to the lowest integer
indexed array
curly braces; ${$total}
floor()
single quotes
18. Variable names cannot begin with _______
numbers
1
rsort()
urlencode()
19. Shorthand used to increment and decrement
client-side programing
sort()
$var++ and $var
$_REQUEST
20. Predefined constants such as __LINE__ or __FILE__ or __FUNCTION__ or __CLASS__ and __METHOD__
ASP
Magic Constant
preg_split()
AJAX
21. Use ________ to have multiple quotations in one string
function error_reporting()
the escape character ''
$varname[key]
ASP
22. To declare a constant
reassign
define()
Shebang
shuffle()
23. To sort values of an array without regard to the keys
the escape character ''
HTML
WYSIWYG
sort()
24. This error refers to a variable with no value.
Notice
decimal
+= or -= or *= or /=
XML
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. To sort values of an array in reversed order
rsort()
addslashes()
HTTP
&
27. the most basic function in PHP used to output information to the page
Constant
echo
$_SESSION[]
HTML
28. $_POST and $_GET are ________ variables.
>>
the period; .
predefined
the escape character ''
29. The output of var_export((float)array(0));
1
wordwrap()
substr_count()
decimal
30. To sort the values while maintaining the correlation between each value and its key - in reversed order
arsort()
preg_match()
WYSIWYG
.=
31. any programing language where the script is parsed on the server
chr()
str_ireplace()
^
server-side programing
32. To iterate over the values of an array
rsort()
superglobal
$$
for ($i = 0; $i < count($array); $i++) {statement(s);}
33. To determine the amount of elements in an array
boolean
array()
count()
html_entity_decode()
34. Standard Generalized Markup Language
the escape character ''
SGML
strip_tags()
shuffle()
35. To refer to an element in a multidimensional array list the indices in order of _____ to more precise;
general
ceil()
XOR
WYSIWYG
36. ___________ can be used with substr() to count backward
negative numbers
AJAX
$_POST[]
htmlentities()
37. The concatenation operator?
POST
indexed array
preg_split()
the period; .
38. returns the number of matches found by a given search string under this format...
===
preg_match()
array()
loops
39. Leading 0x: 0x13F or 0xA23
SGML
decimal
$_POST[]
Hex
40. Use ______ when there are no variables in the string
variable
array()
single quotes
$array[] = item
41. The three types of loops in PHP are: for - while - ____.
substr_count()
foreach
foreach loop
ksort()
42. To assign array element values to individual variables
is_numeric()
list()
AJAX
$$
43. The four main error types are:Notice - Warning - ________ and Error.
$_SESSION[]
Parse error
DTD
server-side programing
44. Returns a string with backslashes in front of predefined characters
trim()
addslashes()
include() and require()
single quotes
45. Online applications and resources which are available to the general public with very few restrictions
open source
empty()
rsort()
Hex
46. Operators used to operate and assign
+= or -= or *= or /=
HTML
PHP
$array[] = item
47. Creates a pointer to a file with the declared mode (read - write -etc.).
Array
foreach loop
fopen()
empty()
48. Function can you use to format a number with commas
mysql_close($dbc)
getrandmax()
underscores
number_format()
49. The array that stores variables specific to a user's visit
number_format()
1
is_numeric()
$_SESSION[]
50. does a certain action when called upon
function
numbers
true
==
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