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 0x: 0x13F or 0xA23
Hex
E_STRICT
octal
^
2. The order of operations.
sql
$array[] = item
if/elseif/else and switch statements
precedence
3. Used to replace a substring with another string - it is not case-sensitive.
predefined
indexed array
crypt()
str_ireplace()
4. To sort values of an array in reversed order
rsort()
!= inequality
error_reporting (E_ALL)
numbers
5. Used to remove any white space - spaces or newlines or tabs - from the beginning and end of a string - not the middle.
$var++ and $var
AJAX
trim()
nl2br()
6. Document Type Definitions
DTD
POST
int
htmlspecialchars()
7. To find how many substrings are in a string
substr_count()
echo
strtok()
error_reporting (E_ALL | E_STRICT)
8. Returns an array that corresponds to the fetched row of MySQL data and moves the internal data pointer ahead
&
mysql_fetch_array()
mysql_close($dbc)
SGML
9. The output of var_export((float)array(0));
mysql_fetch_array()
ceil()
1
error_reporting (E_ALL)
10. A conditional or loop is a ________________.
$array[] = item
control structure
XOR
indexed array
11. ____ or key is referred to for a value within an array.
index
drop
decimal
html_entity_decode()
12. Active Server Pages
list()
the dollar sign $
Error
ASP
13. Search Engine Optimization
str_word_count()
getrandmax()
SEO
array
14. bitwise right shift
index
GET
open source
>>
15. a storage location in the computer's memory that has a type & a name and a contents
variable
Parse error
<<
htmlspecialchars()
16. A data structure that can hold a number of items of data of the same type eg. a list of names
$_SESSION[]
open source
$array[] = item
array
17. addition
not
+
$array[] = item
.=
18. a line of information that can be stored in a variable or used in a function or statement
error_reporting (E_ALL)
string
if/elseif/else and switch statements
client-side programing
19. This will show all error reporting.
$varname[key]
error_reporting (E_ALL)
trim()
WYSIWYG
20. $_SERVER - $_POST - $_GET - $_COOKIE - $_SESSION - $_ENV; special arrays.
reassign
define()
0
superglobal
21. Used to convert certain HTML tags into their entity versions.
Warning
bin2hex()
htmlspecialchars()
isset()
22. Function used to find the absolute value of a number or numeric variable
abs()
isset()
<?php
htmlspecialchars()
23. Used to find the length of a string
underscores
strlen()
Error
ksort()
24. Similar to mysql_fetch_array() - but cannot be accessed by integer offset
mysql_fetch_object()
error_reporting (E_ALL)
str_word_count()
general
25. bitwise AND
array()
&
curly braces; ${$total}
ASP
26. When used the value can be passed safely through the URL (GET).
index
urlencode()
define()
$_GET[]
27. Used to create a substring (referred to as a token) from a larger string
E_STRICT
0
control structure
strtok()
28. Used to check if a variable has a valid numerical value; strings with numerical values pass.
is_numeric()
true
&
the escape character ''
29. To merge arrays
abs()
drop
nl2br()
array_merge()
30. PHP has two conditional: if and ______.
switch
+= or -= or *= or /=
str_ireplace()
precedence
31. Use ________ to have multiple quotations in one string
the escape character ''
true
asort()
HTTP
32. To iterate over the keys and values of an array
SGML
foreach loop
GET
date()
33. Used to check if a variable has any value (including 0 or FALSE or an empty string).
isset()
floor()
.=
0
34. An array of variables passed with <input /> data
SGML
nl2br()
$_POST[]
variable
35. This will show all error reporting except for notice errors.
WYSIWYG
error_reporting (E_ALL & -E_NOTICE)
$var++ and $var
curly braces
36. Asynchronous Javascript And XML
AJAX
include() and require()
Warning
not
37. a type with two possible values: true and false
^
strip_tags()
numbers
boolean
38. The prefix for a dynamic variable - also known as a variable variable
array()
foreach loop
$$
variable
39. Function used to round down to the lowest integer
floor()
the escape character ''
$array[] = item
HTML
40. container of both data and code
str_ireplace()
server-side programing
Object
XML
41. The seven main error reporting constants are: E_NOTICE - E_WARNING - E_PARSE - E_ERROR - E_ALL - _____ - E_DEPRECATED
getrandmax()
E_STRICT
for ($i = 0; $i < count($array); $i++) {statement(s);}
sql
42. What You See Is What You Get
$varname[key]
WYSIWYG
define()
boolean
43. To create an array
array()
for ($i = 0; $i < count($array); $i++) {statement(s);}
Shebang
null
44. Alias of rtrim()
count()
mysql_close($dbc)
bin2hex()
chop()
45. The array that stores variables specific to a user's visit
trim()
str_word_count()
array_merge()
$_SESSION[]
46. The syntax for connecting to a database
html_entity_decode()
defined()
$dbc = mysql_connect(hostname, username, password)
array()
47. _______ is a comparison operator
getrandmax()
SGML
single quotes
!= inequality
48. To refer to an item in an array
function
Parse error
Warning
$varname[key]
49. An array of variables passed in the URL
loops
$_GET[]
mysql_close($dbc)
chr()
50. ___________ can be used with substr() to count backward
server-side programing
Parse error
$_GET[]
negative numbers
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