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. This will show all error reporting except for notice errors.
error_reporting (E_ALL & -E_NOTICE)
$varname[key]
preg_split()
array
2. Used to create a substring (referred to as a token) from a larger string
strtok()
0
$array[] = item
str_word_count()
3. 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.
preg_replace()
predefined
error_reporting (E_ALL | E_STRICT)
abs()
4. does a certain action when called upon
loops
&
function
^
5. Returns an array that corresponds to the fetched row of MySQL data and moves the internal data pointer ahead
echo
Notice
predefined variable
mysql_fetch_array()
6. To sort the values while maintaining the correlation between each value and its key
true
wordwrap()
numbers
asort()
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 __________.
SGML
predefined variable
superglobal
curly braces; ${$total}
8. function Function used to create a random number
server-side programing
$varname[key]
rand()
arsort()
9. This fatal fatal is caused by a semantic mistake: omission of a semicolon or imbalance of quotations or parentheses or braces.
predefined
array
the dollar sign $
Parse error
10. Used to check if a given variable has an "empty" value - no value or 0 or FALSE.
htmlentities()
curly braces
empty()
addcslashes()
11. To set up error reporting
function error_reporting()
floor()
define()
defined()
12. Use ______ for search engines or catalogued pages or pages that would be bookmarked.
^
rsort()
GET
unset()
13. To determine the amount of elements in an array
error_reporting (0)
count()
+= or -= or *= or /=
empty()
14. The prefix for a dynamic variable - also known as a variable variable
single quotes
Parse error
null
$$
15. To reorganise the array randomly
WYSIWYG
Hex
parentheses
shuffle()
16. bitwise XOR
float
^
strip_tags()
Object
17. This will not show error reporting - it will be turned off.
preg_match()
error_reporting (0)
WYSIWYG
?>
18. The three types of loops in PHP are: for - while - ____.
count()
$_GET[]
foreach
list()
19. ___________ can be used with substr() to count backward
negative numbers
null
defined()
$_POST[]
20. To merge arrays
Warning
control structure
indexed array
array_merge()
21. $_POST and $_GET are ________ variables.
underscores
.=
predefined
control structure
22. To remove all HTML and PHP tags.
$varname[key]
strip_tags()
Array
reassign
23. To sort values of an array in reversed order
===
$dbc = mysql_connect(hostname, username, password)
rsort()
str_ireplace()
24. To counter htmlentities()
strip_tags()
preg_replace()
html_entity_decode()
?>
25. Used to convert certain HTML tags into their entity versions.
float
htmlspecialchars()
ceil()
nl2br()
26. The ouput of var_export((bool)"NULL");
error_reporting (E_ALL | E_STRICT)
Warning
true
fopen()
27. Hyper Text Transfer Protocol
XOR
strip_tags()
htmlspecialchars()
HTTP
28. To get over quotation marks while using arrays
precedence
curly braces
Shebang
$var++ and $var
29. TRUE or FALSE
error_reporting (E_ALL & -E_NOTICE)
===
htmlspecialchars()
boolean
30. a line of information that can be stored in a variable or used in a function or statement
predefined
Magic Constant
superglobal
string
31. To declare a constant
error_reporting (E_ALL & -E_NOTICE)
mysql
define()
urlencode()
32. Variable names can begin with __________
!= inequality
define()
echo
underscores
33. used to round numeric values.
E_STRICT
true
round() Function
loops
34. Alias of rtrim()
general
chop()
urlencode()
array()
35. Online applications and resources which are available to the general public with very few restrictions
isset()
rsort()
open source
numbers
36. To assign array element values to individual variables
list()
chop()
chr()
&
37. any programing language where the user must support the language the script is written in
floor()
substr_count()
client-side programing
foreach loop
38. Use ________ to have multiple quotations in one string
the escape character ''
predefined
str_ireplace()
<?php
39. Function that contains the highest value that rand() can have randomly
round() Function
the dollar sign $
list()
getrandmax()
40. a type with two possible values: true and false
addcslashes()
urlencode()
boolean
precedence
41. This error arises from misusing a function.
function error_reporting()
parentheses
SEO
Warning
42. a storage location in the computer's memory that has a type & a name and a contents
integer
WYSIWYG
Error
variable
43. Used to remove any white space - spaces or newlines or tabs - from the beginning and end of a string - not the middle.
htmlspecialchars()
mysql_fetch_object()
trim()
bin2hex()
44. An array whose keys are strings; also known as a hash.
substr_count()
chop()
associative array
true
45. Asynchronous Javascript And XML
single quotes
<?php
AJAX
mysql_fetch_array()
46. The array that stores variables specific to a user's visit
$_REQUEST
$_SESSION[]
Parse error
empty()
47. Function used to round up to the highest integer
drop
true
ceil()
empty()
48. PHP has two conditional: if and ______.
array
Magic Constant
switch
empty()
49. Used to encrypt values - it is a one-way encryption method
null
Constant
control structure
crypt()
50. _____ is a logical operator
date()
XOR
double quotes
defined()
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