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. any programing language where the user must support the language the script is written in
client-side programing
ASP
SGML
float
2. To sort values of an array in reversed order
rsort()
unset()
server-side programing
XML
3. container of both data and code
control structure
unset()
$_GET[]
Object
4. Used to convert certain HTML tags into their entity versions.
htmlspecialchars()
nl2br()
bin2hex()
shuffle()
5. ____ or key is referred to for a value within an array.
index
floor()
crypt()
variable
6. bitwise XOR
^
chr()
getrandmax()
list()
7. Tag to end a php script
predefined
mysql_fetch_object()
?>
Constant
8. To sort values of an array without regard to the keys
control structure
sort()
ini_set ('display_errors', 1)
$dbc = mysql_connect(hostname, username, password)
9. To close a connection between a database
Parse error
Parse error
Error
mysql_close($dbc)
10. bitwise right shift
+= or -= or *= or /=
urlencode()
define()
>>
11. To refer to an element in a multidimensional array list the indices in order of _____ to more precise;
Parse error
general
HTTP
$dbc = mysql_connect(hostname, username, password)
12. leading zero: 0100 or 0567
general
octal
$$
error_reporting (0)
13. This will show all error reporting except for notice errors.
strlen()
Error
error_reporting (E_ALL & -E_NOTICE)
rand()
14. The order of operations.
precedence
define()
the period; .
numbers
15. Returns a string with backslashes in front of predefined characters
str_ireplace()
floor()
addslashes()
addcslashes()
16. Hypertext Preprocessor - a server-side programing language used to create webpages
!= inequality
getrandmax()
$_SESSION[]
PHP
17. To iterate over the keys and values of an array
rsort()
foreach loop
number_format()
define()
18. What You See Is What You Get
WYSIWYG
getrandmax()
parentheses
the period; .
19. Function that contains the highest value that rand() can have randomly
statement
string
$dbc = mysql_connect(hostname, username, password)
getrandmax()
20. The syntax for connecting to a database
the escape character ''
indexed array
ini_set ('display_errors', 1)
$dbc = mysql_connect(hostname, username, password)
21. Returns a string with backslashes in front of the specified characters
addcslashes()
switch
array
curly braces; ${$total}
22. Converts a string of ASCII characters to hexadecimal values
str_word_count()
bin2hex()
^
mysql_fetch_array()
23. a line of information that can be stored in a variable or used in a function or statement
foreach
substr_count()
string
true
24. To append elements to an array - this will assign item to the next available index; associative arrays get messy.
>>
fopen()
Error
$array[] = item
25. Use ______ when there are no variables in the string
mysql_fetch_array()
Parse error
crypt()
single quotes
26. Used to replace a substring with another string - it is not case-sensitive.
boolean
$array[] = item
isset()
str_ireplace()
27. Operators used to operate and assign
^
true
mysql
+= or -= or *= or /=
28. To counter htmlentities()
htmlspecialchars()
html_entity_decode()
rsort()
underscores
29. This fatal error arises from memory allocation problem.
integer
Error
string
<<
30. EXtensible Markup Language
indexed array
superglobal
rand()
XML
31. To refer to an item in an array
chop()
$varname[key]
+= or -= or *= or /=
<?php
32. Similar to mysql_fetch_array() - but cannot be accessed by integer offset
indexed array
preg_replace()
open source
mysql_fetch_object()
33. allows you to split strings based on more complex rules
preg_split()
!= inequality
XML
variable
34. The output of var_export((float)array(0));
1
ini_set ('display_errors', 1)
$$
foreach
35. a positive or negative number
Warning
integer
sql
array()
36. This fatal fatal is caused by a semantic mistake: omission of a semicolon or imbalance of quotations or parentheses or braces.
numbers
WYSIWYG
Parse error
indexed array
37. _________ can be used in conditional statements to set precedence
parentheses
XOR
the dollar sign $
Object
38. Document Type Definitions
SGML
DTD
$_SESSION[]
array()
39. To check if a constant is already declared
nl2br()
defined()
general
Hex
40. Active Server Pages
single quotes
ASP
superglobal
reassign
41. bitwise left shift
<<
date()
mysql_close($dbc)
$_POST[]
42. Asynchronous Javascript And XML
===
AJAX
^
SEO
43. To delete a variable or an element of an array
===
is_numeric()
fopen()
unset()
44. Use ________ to have multiple quotations in one string
the escape character ''
double quotes
==
^
45. Creates a pointer to a file with the declared mode (read - write -etc.).
!= inequality
associative array
$varname[key]
fopen()
46. says 'if' this then do this 'else' do this or 'while' this do this
define()
SGML
statement
null
47. To sort the values while maintaining the correlation between each value and its key - in reversed order
function error_reporting()
index
arsort()
drop
48. Predefined constants such as __LINE__ or __FILE__ or __FUNCTION__ or __CLASS__ and __METHOD__
Magic Constant
decimal
addslashes()
foreach
49. Used to check if a given variable has an "empty" value - no value or 0 or FALSE.
empty()
preg_match()
&
Warning
50. To assign array element values to individual variables
^
echo
null
list()
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