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...
mysql_fetch_object()
preg_match()
wordwrap()
drop
2. Hypertext Preprocessor - a server-side programing language used to create webpages
$var++ and $var
preg_match()
PHP
abs()
3. To include files - _______ will give errors and _________ will terminate execution().
float
numbers
server-side programing
include() and require()
4. When used the value can be passed safely through the URL (GET).
Warning
switch
string
urlencode()
5. print $_SERVER will _____ work if you use the print function on arrays.
statement
date()
not
wordwrap()
6. To counter htmlentities()
decimal
is_numeric()
html_entity_decode()
floor()
7. An array of variables passed in the URL
Object
HTML
function
$_GET[]
8. $_SERVER is a ________ variable.
empty()
precedence
predefined
XOR
9. To merge arrays
Warning
foreach loop
predefined variable
array_merge()
10. Besides GET and POST ________ can be used to access data but $_POST and $_GET are more precise and therefore preferable.
^
$_REQUEST
error_reporting (E_ALL & -E_NOTICE)
AJAX
11. Use ______ when there are no variables in the string
array
preg_match()
single quotes
true
12. bitwise XOR
$_POST[]
unset()
preg_split()
^
13. The output of var_export((float)array(0));
if/elseif/else and switch statements
isset()
1
Parse error
14. The prefix for a dynamic variable - also known as a variable variable
$$
strtok()
XOR
fopen()
15. This will show all errors that fall under E_ALL or E_STRICT - the pipe | is used for 'or' so that errors that fall under either will be shown.
error_reporting (E_ALL | E_STRICT)
+
array
preg_replace()
16. To create an array
predefined
bin2hex()
array()
HTTP
17. Used to create a substring (referred to as a token) from a larger string
substr_count()
Constant
client-side programing
strtok()
18. _______ is a comparison operator
Shebang
!= inequality
ini_set ('display_errors', 1)
str_word_count()
19. standard notation
the dollar sign $
variable
predefined
decimal
20. a database which is best supported by PHP
mysql
sort()
not
crypt()
21. Function can you use to format a number with commas
not
number_format()
predefined
open source
22. To refer to an element in a multidimensional array list the indices in order of _____ to more precise;
Parse error
loops
float
general
23. signed floating-point value
client-side programing
<<
float
string
24. The four main error types are:Notice - Warning - ________ and Error.
POST
switch
Parse error
DTD
25. Returns a character from a specified ASCII value
chr()
octal
PHP
list()
26. a language in which to make querys to a database with
if/elseif/else and switch statements
drop
XML
sql
27. To delete a variable or an element of an array
?>
predefined
client-side programing
unset()
28. To remove all HTML and PHP tags.
general
the escape character ''
&
strip_tags()
29. This error refers to a variable with no value.
Notice
int
^
0
30. Uses two arguments: constant name and constant definition
define()
DTD
count()
general
31. To assign array element values to individual variables
$varname[key]
list()
>>
floor()
32. The seven main SQL (structured query language) functions are alter - create - delete - _______ - insert - select - update
drop
rand()
associative array
.=
33. Used to display errors in a particular script - should be placed at top of script.
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
34. Used to remove any white space - spaces or newlines or tabs - from the beginning and end of a string - not the middle.
.=
client-side programing
trim()
statement
35. To close a connection between a database
mysql_close($dbc)
array()
str_word_count()
parentheses
36. Search Engine Optimization
Parse error
preg_replace()
SEO
superglobal
37. bitwise right shift
>>
strtok()
Hex
trim()
38. Used to encrypt values - it is a one-way encryption method
crypt()
control structure
strtok()
substr_count()
39. Function that contains the highest value that rand() can have randomly
mysql_close($dbc)
getrandmax()
mysql_fetch_array()
indexed array
40. Returns a string with backslashes in front of the specified characters
POST
is_numeric()
string
addcslashes()
41. Tag to begin a php script
loops
switch
<?php
addcslashes()
42. Returns an array that corresponds to the fetched row of MySQL data and moves the internal data pointer ahead
+
Error
drop
mysql_fetch_array()
43. bitwise AND
single quotes
AJAX
?>
&
44. The syntax for connecting to a database
ceil()
PHP
preg_match()
$dbc = mysql_connect(hostname, username, password)
45. This will show all error reporting except for notice errors.
string
error_reporting (E_ALL & -E_NOTICE)
SEO
is_numeric()
46. container of ordered data elements
<?php
PHP
Array
include() and require()
47. To sort values of an array in reversed order
Constant
echo
rsort()
+= or -= or *= or /=
48. Function used to round down to the lowest integer
reassign
+= or -= or *= or /=
error_reporting (0)
floor()
49. Used to find the amount of words in a string.
string
Error
strlen()
str_word_count()
50. Used to check if a given variable has an "empty" value - no value or 0 or FALSE.
int
index
the dollar sign $
empty()
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