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. All variables must begin with _________.
foreach
$dbc = mysql_connect(hostname, username, password)
the dollar sign $
$_POST[]
2. The seven main error reporting constants are: E_NOTICE - E_WARNING - E_PARSE - E_ERROR - E_ALL - _____ - E_DEPRECATED
$varname[key]
E_STRICT
array
$array[] = item
3. To create an array
1
is_numeric()
round() Function
array()
4. does a certain action when called upon
XML
urlencode()
octal
function
5. Define(NAME,value)
error_reporting (E_ALL & -E_NOTICE)
predefined variable
array
Constant
6. TRUE or FALSE
if/elseif/else and switch statements
is_numeric()
general
boolean
7. To sort values of an array without regard to the keys
Parse error
sort()
<<
ini_set ('display_errors', 1)
8. Similar to mysql_fetch_array() - but cannot be accessed by integer offset
===
mysql_fetch_object()
the period; .
chop()
9. To assign keys to the values in an array
array()
addcslashes()
isset()
GET
10. Hypertext Preprocessor - a server-side programing language used to create webpages
PHP
sort()
str_word_count()
strip_tags()
11. Function that contains the highest value that rand() can have randomly
not
DTD
drop
getrandmax()
12. Used to check if a variable has a valid numerical value; strings with numerical values pass.
not
indexed array
is_numeric()
Shebang
13. equivalence
predefined
wordwrap()
==
list()
14. 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 __________.
not
bin2hex()
curly braces; ${$total}
string
15. Function used to find the absolute value of a number or numeric variable
abs()
loops
define()
count()
16. The prefix for a dynamic variable - also known as a variable variable
decimal
$$
precedence
index
17. To refer to an element in a multidimensional array list the indices in order of _____ to more precise;
<?php
predefined variable
$array[] = item
general
18. $_SERVER - $_POST - $_GET - $_COOKIE - $_SESSION - $_ENV; special arrays.
superglobal
variable
>>
Object
19. Used to convert all HTML tags into their entity versions.
htmlentities()
$$
not
substr_count()
20. To merge arrays
array_merge()
open source
$var++ and $var
$_SESSION[]
21. To reset an array _______ the array() function to the array
double quotes
shuffle()
reassign
Shebang
22. ___________ can be used with substr() to count backward
&
negative numbers
foreach
array
23. To sort the values while maintaining the correlation between each value and its key
asort()
ksort()
htmlentities()
Parse error
24. The syntax for connecting to a database
isset()
$dbc = mysql_connect(hostname, username, password)
function
Shebang
25. To determine the amount of elements in an array
$array[] = item
include() and require()
count()
server-side programing
26. This will not show error reporting - it will be turned off.
empty()
error_reporting (0)
XML
date()
27. Asynchronous Javascript And XML
nl2br()
superglobal
variable
AJAX
28. Uses two arguments: constant name and constant definition
isset()
parentheses
define()
getrandmax()
29. To sort the values while maintaining the correlation between each value and its key - in reversed order
underscores
arsort()
variable
DTD
30. Function used to round down to the lowest integer
HTTP
floor()
DTD
boolean
31. EXtensible Markup Language
indexed array
preg_match()
boolean
XML
32. Shorthand used to increment and decrement
float
$var++ and $var
===
strtok()
33. Returns a string with backslashes in front of predefined characters
SEO
addslashes()
GET
abs()
34. This will show all error reporting except for notice errors.
predefined
array()
error_reporting (E_ALL & -E_NOTICE)
XOR
35. To assign array element values to individual variables
list()
loops
<<
isset()
36. An array whose keys are numbers.
POST
error_reporting (E_ALL & -E_NOTICE)
predefined variable
indexed array
37. To get over quotation marks while using arrays
preg_split()
indexed array
Notice
curly braces
38. Hyper Text Transfer Protocol
HTTP
list()
===
numbers
39. To include files - _______ will give errors and _________ will terminate execution().
include() and require()
the dollar sign $
shuffle()
rand()
40. Use ______ when a variable contains any amount of variables; in general.
$$
mysql_close($dbc)
$_POST[]
double quotes
41. 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
42. bitwise left shift
error_reporting (E_ALL & -E_NOTICE)
switch
<<
error_reporting (E_ALL)
43. To reorganise the array randomly
+
abs()
shuffle()
true
44. a database which is best supported by PHP
mysql
shuffle()
mysql_close($dbc)
foreach
45. An array of variables passed with <input /> data
bin2hex()
$_POST[]
reassign
Shebang
46. Used to find the length of a string
reassign
strlen()
not
statement
47. Function can you use to format a number with commas
number_format()
$varname[key]
$dbc = mysql_connect(hostname, username, password)
$array[] = item
48. a language in which to make querys to a database with
DTD
urlencode()
sql
E_STRICT
49. To iterate over the values of an array
preg_match()
for ($i = 0; $i < count($array); $i++) {statement(s);}
XOR
$var++ and $var
50. Function used to convert new lines in a variable from a form to <br /> tags so that the data can be formatted correctly.
nl2br()
double quotes
float
precedence
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