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.
trim()
HTTP
str_word_count()
drop
2. To refer to an item in an array
$var++ and $var
empty()
$varname[key]
general
3. Uses two arguments: constant name and constant definition
define()
E_STRICT
ceil()
function error_reporting()
4. To sort values of an array without regard to the keys
$var++ and $var
sort()
AJAX
single quotes
5. searches the subject for matches to a given pattern replaced with the given replacement text
preg_replace()
Hex
parentheses
negative numbers
6. 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.
getrandmax()
error_reporting (E_ALL | E_STRICT)
mysql_fetch_object()
Notice
7. 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 __________.
string
$varname[key]
sql
curly braces; ${$total}
8. To close a connection between a database
$_SESSION[]
chr()
Shebang
mysql_close($dbc)
9. When used the value can be passed safely through the URL (GET).
curly braces
urlencode()
true
float
10. Function used to find the absolute value of a number or numeric variable
function
integer
abs()
<<
11. Variable names can begin with __________
underscores
associative array
loops
Parse error
12. Use ______ when there are no variables in the string
WYSIWYG
Object
array_merge()
single quotes
13. used to round numeric values.
str_word_count()
round() Function
echo
if/elseif/else and switch statements
14. Used to replace a substring with another string - it is not case-sensitive.
str_ireplace()
decimal
POST
$dbc = mysql_connect(hostname, username, password)
15. Use ________ to have multiple quotations in one string
array
the escape character ''
curly braces; ${$total}
ksort()
16. Leading 0x: 0x13F or 0xA23
$_POST[]
variable
Hex
error_reporting (E_ALL)
17. identity
statement
===
str_ireplace()
ASP
18. To reorganise the array randomly
error_reporting (0)
numbers
$_GET[]
shuffle()
19. The output of var_export((float)array(0));
floor()
index
1
superglobal
20. any programing language where the user must support the language the script is written in
parentheses
strlen()
sort()
client-side programing
21. Besides GET and POST ________ can be used to access data but $_POST and $_GET are more precise and therefore preferable.
==
the period; .
wordwrap()
$_REQUEST
22. Hyper Text Transfer Protocol
HTTP
<?php
mysql_close($dbc)
$_GET[]
23. Active Server Pages
chr()
open source
ASP
not
24. _____ is a logical operator
loops
string
XOR
strtok()
25. Define(NAME,value)
Constant
crypt()
is_numeric()
str_word_count()
26. Tag to end a php script
indexed array
the escape character ''
$_POST[]
?>
27. This will show all error reporting.
error_reporting (E_ALL)
str_ireplace()
null
$_REQUEST
28. This fatal error arises from memory allocation problem.
Error
asort()
+
for ($i = 0; $i < count($array); $i++) {statement(s);}
29. bitwise right shift
>>
preg_replace()
error_reporting (E_ALL | E_STRICT)
variable
30. ___________ can be used with substr() to count backward
<?php
reassign
negative numbers
XML
31. To find how many substrings are in a string
substr_count()
!= inequality
array()
boolean
32. Used to create a substring (referred to as a token) from a larger string
function error_reporting()
numbers
Error
strtok()
33. To declare a constant
addslashes()
curly braces
define()
array_merge()
34. To iterate over the values of an array
for ($i = 0; $i < count($array); $i++) {statement(s);}
wordwrap()
array_merge()
statement
35. 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
36. To get time data
date()
open source
true
$dbc = mysql_connect(hostname, username, password)
37. Online applications and resources which are available to the general public with very few restrictions
DTD
open source
WYSIWYG
the escape character ''
38. Used to convert all HTML tags into their entity versions.
htmlentities()
mysql
substr_count()
the dollar sign $
39. does a certain action when called upon
Hex
mysql_fetch_array()
function
mysql_close($dbc)
40. PHP has two conditional: if and ______.
Parse error
str_ireplace()
switch
isset()
41. print $_SERVER will _____ work if you use the print function on arrays.
not
true
Constant
chop()
42. _________ can be used in conditional statements to set precedence
parentheses
SGML
$_GET[]
asort()
43. Used to encrypt values - it is a one-way encryption method
WYSIWYG
number_format()
control structure
crypt()
44. The array that stores variables specific to a user's visit
null
0
associative array
$_SESSION[]
45. Use ______ for search engines or catalogued pages or pages that would be bookmarked.
GET
is_numeric()
$dbc = mysql_connect(hostname, username, password)
+= or -= or *= or /=
46. Control structures that break exit
E_STRICT
strip_tags()
if/elseif/else and switch statements
predefined
47. The three types of loops in PHP are: for - while - ____.
foreach
mysql
arsort()
array()
48. Document Type Definitions
mysql_fetch_object()
DTD
not
Shebang
49. a positive or negative number
integer
if/elseif/else and switch statements
array()
the period; .
50. To create an array
PHP
Object
array()
strip_tags()
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