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. the most basic function in PHP used to output information to the page
array_merge()
empty()
htmlspecialchars()
echo
2. Function used to round up to the highest integer
$$
double quotes
curly braces
ceil()
3. Used to check if a given variable has an "empty" value - no value or 0 or FALSE.
Magic Constant
empty()
open source
HTTP
4. When used the value can be passed safely through the URL (GET).
foreach
predefined
defined()
urlencode()
5. Besides GET and POST ________ can be used to access data but $_POST and $_GET are more precise and therefore preferable.
$_REQUEST
^
htmlentities()
error_reporting (E_ALL | E_STRICT)
6. 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
7. $_SERVER is a ________ variable.
predefined
integer
int
$_GET[]
8. Leading 0x: 0x13F or 0xA23
shuffle()
urlencode()
Hex
index
9. To reset an array _______ the array() function to the array
Parse error
reassign
$_GET[]
substr_count()
10. To sort values of an array without regard to the keys
sql
addcslashes()
Notice
sort()
11. any programing language where the user must support the language the script is written in
client-side programing
chr()
array
Magic Constant
12. The syntax for connecting to a database
$dbc = mysql_connect(hostname, username, password)
===
ini_set ('display_errors', 1)
arsort()
13. a line of information that can be stored in a variable or used in a function or statement
sql
bin2hex()
string
double quotes
14. A conditional or loop is a ________________.
Constant
control structure
error_reporting (E_ALL)
!= inequality
15. To remove all HTML and PHP tags.
decimal
DTD
date()
strip_tags()
16. Function used to round down to the lowest integer
strlen()
true
count()
floor()
17. To assign keys to the values in an array
urlencode()
foreach
array()
asort()
18. bitwise AND
array_merge()
empty()
&
reassign
19. Function that contains the highest value that rand() can have randomly
getrandmax()
$_REQUEST
precedence
DTD
20. To sort by the keys while maintaining the correlation between the key and its value
SGML
if/elseif/else and switch statements
wordwrap()
ksort()
21. To find how many substrings are in a string
substr_count()
POST
mysql_close($dbc)
boolean
22. Converts a string of ASCII characters to hexadecimal values
AJAX
bin2hex()
error_reporting (E_ALL & -E_NOTICE)
$_REQUEST
23. Tag to begin a php script
<?php
control structure
string
$_REQUEST
24. container of both data and code
Object
.=
sort()
drop
25. An array of variables passed with <input /> data
ASP
error_reporting (E_ALL)
$_POST[]
Hex
26. identity
count()
>>
addcslashes()
===
27. To delete a variable or an element of an array
WYSIWYG
Hex
unset()
ASP
28. Operators used to operate and assign
include() and require()
+= or -= or *= or /=
AJAX
htmlentities()
29. Variable names cannot begin with _______
numbers
Parse error
underscores
^
30. The output of var_export((float)array());
predefined variable
0
include() and require()
Error
31. Predefined constants such as __LINE__ or __FILE__ or __FUNCTION__ or __CLASS__ and __METHOD__
WYSIWYG
float
mysql_close($dbc)
Magic Constant
32. Used to create a substring (referred to as a token) from a larger string
SGML
XML
strtok()
array()
33. Shorthand used to increment and decrement
variable
date()
$var++ and $var
strip_tags()
34. Hyper Text Markup Language
foreach
wordwrap()
HTML
define()
35. bitwise XOR
0
^
SGML
if/elseif/else and switch statements
36. To check if a constant is already declared
$_SESSION[]
defined()
preg_split()
float
37. To counter htmlentities()
SGML
html_entity_decode()
true
function error_reporting()
38. The ouput of var_export((bool)"NULL");
open source
null
true
index
39. To assign array element values to individual variables
unset()
htmlentities()
list()
server-side programing
40. Used to encrypt values - it is a one-way encryption method
===
$_SESSION[]
crypt()
$_GET[]
41. PHP has two conditional: if and ______.
switch
function
array()
$_GET[]
42. either hasn't yet been set or is assigned NULL value
fopen()
precedence
abs()
null
43. Define(NAME,value)
$varname[key]
Constant
define()
rand()
44. Returns a string with backslashes in front of the specified characters
addcslashes()
number_format()
str_word_count()
for ($i = 0; $i < count($array); $i++) {statement(s);}
45. To include files - _______ will give errors and _________ will terminate execution().
include() and require()
strtok()
strip_tags()
decimal
46. Document Type Definitions
DTD
addcslashes()
associative array
abs()
47. Similar to mysql_fetch_array() - but cannot be accessed by integer offset
mysql_fetch_object()
PHP
unset()
boolean
48. returns the number of matches found by a given search string under this format...
htmlspecialchars()
mysql_fetch_array()
rand()
preg_match()
49. This will show all error reporting except for notice errors.
mysql
error_reporting (E_ALL & -E_NOTICE)
foreach
int
50. collection of binary data
strlen()
WYSIWYG
SEO
string
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