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. Creates a pointer to a file with the declared mode (read - write -etc.).
mysql
fopen()
foreach loop
mysql_fetch_object()
2. 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.
wordwrap()
sql
error_reporting (E_ALL | E_STRICT)
strlen()
3. Shorthand used to increment and decrement
$var++ and $var
function error_reporting()
SEO
ksort()
4. Returns a character from a specified ASCII value
chr()
Hex
the dollar sign $
floor()
5. a line of information that can be stored in a variable or used in a function or statement
mysql_fetch_array()
array_merge()
HTTP
string
6. Define(NAME,value)
foreach loop
+= or -= or *= or /=
Constant
PHP
7. Operators used to operate and assign
==
float
E_STRICT
+= or -= or *= or /=
8. Used to encrypt values - it is a one-way encryption method
associative array
crypt()
predefined variable
$$
9. Similar to mysql_fetch_array() - but cannot be accessed by integer offset
strip_tags()
mysql_fetch_object()
ksort()
define()
10. To sort the values while maintaining the correlation between each value and its key
asort()
===
urlencode()
htmlspecialchars()
11. function Function used to create a random number
curly braces
rand()
null
error_reporting (E_ALL | E_STRICT)
12. 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
13. Used to check if a given variable has an "empty" value - no value or 0 or FALSE.
sql
empty()
htmlspecialchars()
AJAX
14. To counter htmlentities()
$_GET[]
html_entity_decode()
arsort()
!= inequality
15. Online applications and resources which are available to the general public with very few restrictions
mysql_close($dbc)
open source
wordwrap()
loops
16. says 'if' this then do this 'else' do this or 'while' this do this
strip_tags()
$var++ and $var
statement
arsort()
17. To determine the amount of elements in an array
date()
GET
crypt()
count()
18. Returns a string with backslashes in front of the specified characters
function error_reporting()
addcslashes()
preg_match()
curly braces
19. ____ or key is referred to for a value within an array.
octal
if/elseif/else and switch statements
strtok()
index
20. EXtensible Markup Language
decimal
number_format()
XML
>>
21. This error refers to a variable with no value.
?>
empty()
Notice
ASP
22. allows you to split strings based on more complex rules
double quotes
preg_split()
list()
SEO
23. The array that stores variables specific to a user's visit
open source
chop()
&
$_SESSION[]
24. To reorganise the array randomly
+
preg_match()
shuffle()
+= or -= or *= or /=
25. This will show all error reporting except for notice errors.
error_reporting (E_ALL & -E_NOTICE)
urlencode()
round() Function
loops
26. addition
error_reporting (E_ALL | E_STRICT)
for ($i = 0; $i < count($array); $i++) {statement(s);}
abs()
+
27. Returns a string with backslashes in front of predefined characters
associative array
addslashes()
preg_replace()
Hex
28. Hyper Text Markup Language
&
HTML
defined()
index
29. PHP has two conditional: if and ______.
<<
switch
the escape character ''
Array
30. a storage location in the computer's memory that has a type & a name and a contents
GET
==
variable
.=
31. Used to convert certain HTML tags into their entity versions.
POST
control structure
+
htmlspecialchars()
32. This will show all error reporting.
mysql_fetch_array()
fopen()
error_reporting (E_ALL)
variable
33. bitwise AND
&
PHP
reassign
Parse error
34. Function used to round up to the highest integer
decimal
preg_match()
empty()
ceil()
35. To declare a constant
preg_replace()
define()
error_reporting (0)
sql
36. $_POST and $_GET are ________ variables.
!= inequality
array
curly braces; ${$total}
predefined
37. signed floating-point value
strlen()
float
switch
HTTP
38. ___________ can be used with substr() to count backward
the dollar sign $
Shebang
negative numbers
+= or -= or *= or /=
39. To get time data
switch
client-side programing
asort()
date()
40. When used the value can be passed safely through the URL (GET).
urlencode()
$array[] = item
parentheses
!= inequality
41. To close a connection between a database
loops
htmlspecialchars()
mysql_close($dbc)
not
42. Asynchronous Javascript And XML
===
AJAX
>>
error_reporting (0)
43. To remove all HTML and PHP tags.
if/elseif/else and switch statements
Object
$_POST[]
strip_tags()
44. What You See Is What You Get
date()
E_STRICT
strip_tags()
WYSIWYG
45. Besides GET and POST ________ can be used to access data but $_POST and $_GET are more precise and therefore preferable.
shuffle()
reassign
$_REQUEST
XOR
46. Use ______ when there are no variables in the string
unset()
index
single quotes
associative array
47. This error arises from misusing a function.
Warning
variable
.=
addslashes()
48. signed integer
urlencode()
getrandmax()
unset()
int
49. Search Engine Optimization
SEO
server-side programing
$$
decimal
50. Hypertext Preprocessor - a server-side programing language used to create webpages
html_entity_decode()
PHP
loops
ksort()
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