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. returns the number of matches found by a given search string under this format...
preg_match()
numbers
decimal
predefined
2. Used to check if a given variable has an "empty" value - no value or 0 or FALSE.
empty()
curly braces
addslashes()
predefined variable
3. Use ________ to have multiple quotations in one string
define()
empty()
urlencode()
the escape character ''
4. To declare a constant
Magic Constant
E_STRICT
define()
predefined
5. To append elements to an array - this will assign item to the next available index; associative arrays get messy.
Constant
function error_reporting()
$array[] = item
fopen()
6. Returns a string with backslashes in front of the specified characters
+
addcslashes()
client-side programing
drop
7. any programing language where the script is parsed on the server
server-side programing
HTML
statement
int
8. The seven main SQL (structured query language) functions are alter - create - delete - _______ - insert - select - update
rand()
single quotes
boolean
drop
9. To reset an array _______ the array() function to the array
reassign
WYSIWYG
Shebang
if/elseif/else and switch statements
10. This will not show error reporting - it will be turned off.
htmlspecialchars()
error_reporting (0)
WYSIWYG
shuffle()
11. This fatal fatal is caused by a semantic mistake: omission of a semicolon or imbalance of quotations or parentheses or braces.
Parse error
preg_split()
shuffle()
number_format()
12. To find how many substrings are in a string
trim()
floor()
?>
substr_count()
13. Creates a pointer to a file with the declared mode (read - write -etc.).
fopen()
count()
$dbc = mysql_connect(hostname, username, password)
reassign
14. This will show all error reporting except for notice errors.
$$
boolean
error_reporting (E_ALL & -E_NOTICE)
the dollar sign $
15. An array of variables passed in the URL
str_word_count()
$_GET[]
is_numeric()
str_ireplace()
16. TRUE or FALSE
strlen()
list()
boolean
negative numbers
17. An array of variables passed with <input /> data
Parse error
$_POST[]
server-side programing
ini_set ('display_errors', 1)
18. searches the subject for matches to a given pattern replaced with the given replacement text
open source
defined()
function
preg_replace()
19. To sort the values while maintaining the correlation between each value and its key
mysql_fetch_array()
asort()
number_format()
addslashes()
20. To sort the values while maintaining the correlation between each value and its key - in reversed order
getrandmax()
for ($i = 0; $i < count($array); $i++) {statement(s);}
arsort()
substr_count()
21. The syntax for connecting to a database
function
Object
$dbc = mysql_connect(hostname, username, password)
Notice
22. 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 __________.
unset()
XML
curly braces; ${$total}
substr_count()
23. $_SERVER - $_POST - $_GET - $_COOKIE - $_SESSION - $_ENV; special arrays.
empty()
asort()
mysql
superglobal
24. The name of the #! used to designate the location of the PHP binary
Shebang
abs()
boolean
str_ireplace()
25. addition
+
ASP
boolean
echo
26. Control structure that continue exit - they perform specific statements for a determined number of iterations.
array_merge()
loops
===
numbers
27. container of both data and code
preg_match()
Object
isset()
urlencode()
28. Used to check if a variable has any value (including 0 or FALSE or an empty string).
if/elseif/else and switch statements
double quotes
array
isset()
29. To create an array
array()
GET
the escape character ''
==
30. To iterate over the keys and values of an array
foreach loop
null
trim()
ksort()
31. Similar to mysql_fetch_array() - but cannot be accessed by integer offset
strtok()
server-side programing
mysql_fetch_object()
$array[] = item
32. ___________ can be used with substr() to count backward
preg_replace()
negative numbers
underscores
mysql_fetch_object()
33. The seven main error reporting constants are: E_NOTICE - E_WARNING - E_PARSE - E_ERROR - E_ALL - _____ - E_DEPRECATED
mysql_fetch_array()
WYSIWYG
E_STRICT
Array
34. signed integer
shuffle()
function
int
mysql_fetch_array()
35. Returns a character from a specified ASCII value
chr()
function
true
mysql_fetch_array()
36. This error refers to a variable with no value.
Notice
superglobal
loops
$_REQUEST
37. To close a connection between a database
Magic Constant
array_merge()
>>
mysql_close($dbc)
38. To determine the amount of elements in an array
$$
is_numeric()
count()
PHP
39. To sort by the keys while maintaining the correlation between the key and its value
^
Constant
foreach
ksort()
40. Leading 0x: 0x13F or 0xA23
octal
predefined
Hex
bin2hex()
41. The output of var_export((float)array());
urlencode()
abs()
0
if/elseif/else and switch statements
42. EXtensible Markup Language
preg_replace()
XML
array()
mysql_close($dbc)
43. used to round numeric values.
numbers
curly braces; ${$total}
shuffle()
round() Function
44. All variables must begin with _________.
list()
Parse error
the dollar sign $
strip_tags()
45. When used the value can be passed safely through the URL (GET).
$var++ and $var
urlencode()
error_reporting (E_ALL | E_STRICT)
date()
46. To counter htmlentities()
html_entity_decode()
$_SESSION[]
reassign
getrandmax()
47. Variable names can begin with __________
underscores
the period; .
Error
predefined
48. The prefix for a dynamic variable - also known as a variable variable
$$
html_entity_decode()
is_numeric()
preg_split()
49. The array that stores variables specific to a user's visit
int
<?php
curly braces; ${$total}
$_SESSION[]
50. a positive or negative number
mysql_close($dbc)
wordwrap()
predefined
integer
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