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. To append elements to an array - this will assign item to the next available index; associative arrays get messy.
for ($i = 0; $i < count($array); $i++) {statement(s);}
htmlentities()
$array[] = item
Warning
2. To include files - _______ will give errors and _________ will terminate execution().
error_reporting (E_ALL)
===
echo
include() and require()
3. TRUE or FALSE
mysql_close($dbc)
$var++ and $var
boolean
control structure
4. Use ______ when there are no variables in the string
sql
mysql_close($dbc)
single quotes
Array
5. The order of operations.
!= inequality
index
round() Function
precedence
6. To word wrap after a certain amount of characters.
curly braces
number_format()
mysql_close($dbc)
wordwrap()
7. This will not show error reporting - it will be turned off.
boolean
error_reporting (0)
number_format()
ceil()
8. To iterate over the keys and values of an array
<?php
WYSIWYG
integer
foreach loop
9. a language in which to make querys to a database with
null
arsort()
precedence
sql
10. _________ can be used in conditional statements to set precedence
urlencode()
Error
htmlentities()
parentheses
11. allows you to split strings based on more complex rules
drop
bin2hex()
preg_split()
the dollar sign $
12. _____ is a logical operator
XOR
array()
general
octal
13. Asynchronous Javascript And XML
associative array
+= or -= or *= or /=
AJAX
defined()
14. To create an array
fopen()
general
array()
include() and require()
15. The concatenation operator?
sql
count()
Warning
the period; .
16. Function used to find the absolute value of a number or numeric variable
Magic Constant
abs()
predefined
$array[] = item
17. The syntax for connecting to a database
int
date()
Error
$dbc = mysql_connect(hostname, username, password)
18. This error arises from misusing a function.
the dollar sign $
superglobal
XML
Warning
19. Document Type Definitions
1
DTD
urlencode()
parentheses
20. Used to check if a given variable has an "empty" value - no value or 0 or FALSE.
loops
empty()
Constant
$$
21. a storage location in the computer's memory that has a type & a name and a contents
error_reporting (E_ALL)
number_format()
variable
SEO
22. signed integer
define()
int
Constant
floor()
23. The name of the #! used to designate the location of the PHP binary
floor()
the period; .
Shebang
predefined
24. Active Server Pages
Hex
asort()
superglobal
ASP
25. Used to find the amount of words in a string.
not
for ($i = 0; $i < count($array); $i++) {statement(s);}
str_word_count()
empty()
26. a positive or negative number
DTD
ini_set ('display_errors', 1)
integer
switch
27. either hasn't yet been set or is assigned NULL value
null
floor()
superglobal
curly braces
28. any programing language where the script is parsed on the server
server-side programing
shuffle()
>>
count()
29. Used to find the length of a string
POST
html_entity_decode()
not
strlen()
30. $_SERVER - $_POST - $_GET - $_COOKIE - $_SESSION - $_ENV; special arrays.
superglobal
defined()
$$
ceil()
31. container of ordered data elements
Array
true
ksort()
$dbc = mysql_connect(hostname, username, password)
32. used to round numeric values.
SGML
$_REQUEST
round() Function
str_word_count()
33. Variable names cannot begin with _______
Hex
negative numbers
numbers
octal
34. any programing language where the user must support the language the script is written in
client-side programing
isset()
str_ireplace()
htmlentities()
35. Function that contains the highest value that rand() can have randomly
.=
string
control structure
getrandmax()
36. This fatal error arises from memory allocation problem.
predefined variable
Error
the escape character ''
client-side programing
37. bitwise right shift
>>
strtok()
decimal
error_reporting (E_ALL & -E_NOTICE)
38. To merge arrays
$_SESSION[]
array()
function error_reporting()
array_merge()
39. To sort by the keys while maintaining the correlation between the key and its value
control structure
mysql
array()
ksort()
40. bitwise AND
$dbc = mysql_connect(hostname, username, password)
&
Object
statement
41. To sort values of an array in reversed order
sql
ASP
curly braces; ${$total}
rsort()
42. Used to replace a substring with another string - it is not case-sensitive.
Constant
Object
str_ireplace()
Notice
43. Returns a character from a specified ASCII value
chr()
$_POST[]
$dbc = mysql_connect(hostname, username, password)
nl2br()
44. To sort the values while maintaining the correlation between each value and its key
$dbc = mysql_connect(hostname, username, password)
error_reporting (0)
asort()
mysql
45. Returns a string with backslashes in front of predefined characters
sort()
<?php
addslashes()
ksort()
46. Tag to end a php script
Magic Constant
Array
?>
round() Function
47. To reorganise the array randomly
.=
$_REQUEST
foreach
shuffle()
48. Returns a string with backslashes in front of the specified characters
AJAX
addcslashes()
defined()
urlencode()
49. Use ______ for search engines or catalogued pages or pages that would be bookmarked.
!= inequality
GET
$_REQUEST
PHP
50. identity
decimal
===
curly braces; ${$total}
Parse error
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