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. Use ______ for search engines or catalogued pages or pages that would be bookmarked.
statement
$$
define()
GET
2. bitwise XOR
E_STRICT
rsort()
^
Warning
3. An array of variables passed in the URL
round() Function
string
$_GET[]
client-side programing
4. Used to convert all HTML tags into their entity versions.
not
htmlspecialchars()
htmlentities()
Constant
5. a line of information that can be stored in a variable or used in a function or statement
switch
boolean
ceil()
string
6. To append elements to an array - this will assign item to the next available index; associative arrays get messy.
for ($i = 0; $i < count($array); $i++) {statement(s);}
Constant
str_word_count()
$array[] = item
7. Function used to round down to the lowest integer
mysql_fetch_object()
crypt()
floor()
client-side programing
8. The prefix for a dynamic variable - also known as a variable variable
$$
single quotes
AJAX
0
9. Leading 0x: 0x13F or 0xA23
Hex
array_merge()
strip_tags()
fopen()
10. Similar to mysql_fetch_array() - but cannot be accessed by integer offset
unset()
$varname[key]
mysql_fetch_object()
1
11. Used to check if a variable has any value (including 0 or FALSE or an empty string).
if/elseif/else and switch statements
error_reporting (E_ALL)
isset()
chr()
12. bitwise AND
predefined
isset()
&
^
13. To word wrap after a certain amount of characters.
$array[] = item
POST
==
wordwrap()
14. 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
15. Operators used to operate and assign
html_entity_decode()
+= or -= or *= or /=
&
error_reporting (E_ALL | E_STRICT)
16. a type with two possible values: true and false
parentheses
mysql_close($dbc)
+
boolean
17. The concatenation assignment operator?
statement
variable
.=
HTTP
18. A conditional or loop is a ________________.
ini_set ('display_errors', 1)
mysql_fetch_object()
1
control structure
19. Returns a string with backslashes in front of the specified characters
define()
preg_replace()
rsort()
addcslashes()
20. To delete a variable or an element of an array
?>
octal
unset()
html_entity_decode()
21. To reset an array _______ the array() function to the array
reassign
array_merge()
is_numeric()
SEO
22. The order of operations.
preg_split()
addcslashes()
precedence
string
23. Active Server Pages
ASP
PHP
is_numeric()
bin2hex()
24. bitwise right shift
>>
SEO
boolean
decimal
25. The seven main SQL (structured query language) functions are alter - create - delete - _______ - insert - select - update
function
htmlentities()
getrandmax()
drop
26. To reorganise the array randomly
shuffle()
DTD
defined()
bin2hex()
27. identity
<?php
===
defined()
bin2hex()
28. The syntax for connecting to a database
superglobal
Warning
double quotes
$dbc = mysql_connect(hostname, username, password)
29. Function used to round up to the highest integer
ceil()
Shebang
preg_split()
defined()
30. To create an array
array()
htmlentities()
Notice
SEO
31. _____ is a logical operator
error_reporting (0)
Object
for ($i = 0; $i < count($array); $i++) {statement(s);}
XOR
32. Hyper Text Markup Language
empty()
HTML
$_POST[]
htmlentities()
33. To iterate over the keys and values of an array
+
foreach loop
Parse error
ASP
34. TRUE or FALSE
statement
urlencode()
boolean
Array
35. signed integer
int
echo
Notice
array_merge()
36. $_SERVER is a ________ variable.
client-side programing
$_GET[]
reassign
predefined
37. To merge arrays
mysql
array_merge()
function
server-side programing
38. To sort values of an array in reversed order
E_STRICT
not
is_numeric()
rsort()
39. Used to check if a variable has a valid numerical value; strings with numerical values pass.
shuffle()
is_numeric()
XML
preg_split()
40. To set up error reporting
loops
associative array
rand()
function error_reporting()
41. leading zero: 0100 or 0567
fopen()
is_numeric()
octal
$_SESSION[]
42. Use ______ when there are no variables in the string
predefined
PHP
GET
single quotes
43. To sort values of an array without regard to the keys
date()
0
sort()
abs()
44. To determine the amount of elements in an array
octal
count()
mysql_fetch_array()
trim()
45. $_POST and $_GET are ________ variables.
array()
$_SESSION[]
html_entity_decode()
predefined
46. Used to replace a substring with another string - it is not case-sensitive.
predefined
str_ireplace()
addslashes()
$_SESSION[]
47. To declare a constant
define()
$dbc = mysql_connect(hostname, username, password)
sql
strtok()
48. $_SERVER - $_POST - $_GET - $_COOKIE - $_SESSION - $_ENV; special arrays.
^
superglobal
Notice
WYSIWYG
49. To check if a constant is already declared
foreach loop
defined()
$_SESSION[]
count()
50. $_POST Data sent using POST found is sent to _______
decimal
not
isset()
predefined variable
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