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. allows you to split strings based on more complex rules
preg_split()
int
XOR
$_GET[]
2. Converts a string of ASCII characters to hexadecimal values
wordwrap()
mysql
bin2hex()
function error_reporting()
3. This will not show error reporting - it will be turned off.
error_reporting (E_ALL | E_STRICT)
reassign
error_reporting (0)
date()
4. collection of binary data
true
string
function
foreach loop
5. Used to convert all HTML tags into their entity versions.
chop()
Hex
htmlentities()
defined()
6. This will show all error reporting.
define()
is_numeric()
error_reporting (E_ALL)
$var++ and $var
7. does a certain action when called upon
function
Object
float
the dollar sign $
8. Use ______ for search engines or catalogued pages or pages that would be bookmarked.
<<
mysql_close($dbc)
predefined
GET
9. container of both data and code
mysql_fetch_object()
==
Object
indexed array
10. function Function used to create a random number
urlencode()
echo
mysql_fetch_array()
rand()
11. $_POST Data sent using POST found is sent to _______
predefined variable
shuffle()
count()
urlencode()
12. To assign array element values to individual variables
list()
$_REQUEST
octal
mysql_fetch_object()
13. An array whose keys are numbers.
HTML
indexed array
^
is_numeric()
14. TRUE or FALSE
mysql_fetch_object()
boolean
decimal
PHP
15. container of ordered data elements
true
Array
decimal
drop
16. This will show all error reporting except for notice errors.
error_reporting (E_ALL & -E_NOTICE)
array()
true
wordwrap()
17. Function used to find the absolute value of a number or numeric variable
true
nl2br()
abs()
$_POST[]
18. $_POST and $_GET are ________ variables.
wordwrap()
predefined
HTML
Shebang
19. This fatal fatal is caused by a semantic mistake: omission of a semicolon or imbalance of quotations or parentheses or braces.
$_REQUEST
+= or -= or *= or /=
Parse error
for ($i = 0; $i < count($array); $i++) {statement(s);}
20. Returns a character from a specified ASCII value
loops
Shebang
chr()
floor()
21. Returns a string with backslashes in front of predefined characters
str_word_count()
variable
addslashes()
<?php
22. identity
===
reassign
$varname[key]
server-side programing
23. This error refers to a variable with no value.
preg_match()
$_REQUEST
superglobal
Notice
24. The output of var_export((float)array());
curly braces
round() Function
$_SESSION[]
0
25. Use ________ to have multiple quotations in one string
the escape character ''
rsort()
strlen()
boolean
26. To sort by the keys while maintaining the correlation between the key and its value
GET
AJAX
ksort()
general
27. Shorthand used to increment and decrement
fopen()
negative numbers
$var++ and $var
server-side programing
28. _______ is a comparison operator
$dbc = mysql_connect(hostname, username, password)
if/elseif/else and switch statements
nl2br()
!= inequality
29. To append elements to an array - this will assign item to the next available index; associative arrays get messy.
Hex
sort()
predefined
$array[] = item
30. Used to remove any white space - spaces or newlines or tabs - from the beginning and end of a string - not the middle.
array()
boolean
trim()
single quotes
31. To check if a constant is already declared
error_reporting (E_ALL)
fopen()
Constant
defined()
32. a positive or negative number
parentheses
?>
round() Function
integer
33. returns the number of matches found by a given search string under this format...
preg_match()
error_reporting (E_ALL | E_STRICT)
HTTP
define()
34. The syntax for connecting to a database
$dbc = mysql_connect(hostname, username, password)
<<
ASP
octal
35. bitwise right shift
WYSIWYG
str_word_count()
>>
unset()
36. Function used to round down to the lowest integer
nl2br()
error_reporting (E_ALL | E_STRICT)
the period; .
floor()
37. Returns a string with backslashes in front of the specified characters
floor()
addcslashes()
the escape character ''
POST
38. To determine the amount of elements in an array
Array
date()
single quotes
count()
39. To close a connection between a database
superglobal
preg_match()
null
mysql_close($dbc)
40. Use _______ for passwords or pages that would not be bookmarked or pages that require security.
POST
underscores
define()
chop()
41. Online applications and resources which are available to the general public with very few restrictions
int
<<
loops
open source
42. Hyper Text Markup Language
sql
HTML
$varname[key]
the dollar sign $
43. To merge arrays
strlen()
decimal
double quotes
array_merge()
44. Used to encrypt values - it is a one-way encryption method
chr()
true
crypt()
loops
45. ____ or key is referred to for a value within an array.
rsort()
index
function error_reporting()
crypt()
46. Used to create a substring (referred to as a token) from a larger string
$_SESSION[]
function error_reporting()
strtok()
preg_replace()
47. Similar to mysql_fetch_array() - but cannot be accessed by integer offset
wordwrap()
mysql_fetch_object()
associative array
error_reporting (E_ALL | E_STRICT)
48. All variables must begin with _________.
int
the dollar sign $
statement
defined()
49. The concatenation operator?
the period; .
predefined
Constant
0
50. Use ______ when a variable contains any amount of variables; in general.
underscores
control structure
DTD
double quotes
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