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. Alias of rtrim()
rsort()
Array
variable
chop()
2. 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
3. The ouput of var_export((bool)"NULL");
$dbc = mysql_connect(hostname, username, password)
true
function
strtok()
4. Variable names cannot begin with _______
numbers
error_reporting (E_ALL & -E_NOTICE)
string
Constant
5. The four main error types are:Notice - Warning - ________ and Error.
Parse error
.=
error_reporting (E_ALL & -E_NOTICE)
SEO
6. PHP has two conditional: if and ______.
$array[] = item
switch
floor()
if/elseif/else and switch statements
7. Use ______ for search engines or catalogued pages or pages that would be bookmarked.
E_STRICT
GET
boolean
true
8. Asynchronous Javascript And XML
server-side programing
AJAX
double quotes
$$
9. To close a connection between a database
mysql_close($dbc)
Array
sql
string
10. bitwise left shift
<<
octal
associative array
preg_replace()
11. _____ is a logical operator
ini_set ('display_errors', 1)
Shebang
XOR
client-side programing
12. To refer to an element in a multidimensional array list the indices in order of _____ to more precise;
AJAX
Array
ksort()
general
13. To counter htmlentities()
html_entity_decode()
$array[] = item
!= inequality
mysql
14. What You See Is What You Get
WYSIWYG
error_reporting (E_ALL & -E_NOTICE)
$$
asort()
15. $_POST and $_GET are ________ variables.
strip_tags()
===
predefined
<<
16. To get time data
0
date()
crypt()
strlen()
17. EXtensible Markup Language
XML
htmlspecialchars()
single quotes
boolean
18. a language in which to make querys to a database with
sql
asort()
array
$_REQUEST
19. To refer to an item in an array
rand()
index
define()
$varname[key]
20. The prefix for a dynamic variable - also known as a variable variable
foreach loop
sort()
<?php
$$
21. Used to create a substring (referred to as a token) from a larger string
trim()
negative numbers
str_word_count()
strtok()
22. either hasn't yet been set or is assigned NULL value
HTML
null
$varname[key]
htmlentities()
23. Function used to find the absolute value of a number or numeric variable
open source
abs()
nl2br()
$array[] = item
24. To sort the values while maintaining the correlation between each value and its key - in reversed order
SGML
arsort()
list()
statement
25. Returns a string with backslashes in front of the specified characters
function
numbers
addcslashes()
predefined variable
26. Variable names can begin with __________
Magic Constant
$_REQUEST
float
underscores
27. Used to convert all HTML tags into their entity versions.
htmlentities()
$_SESSION[]
str_ireplace()
count()
28. Returns a string with backslashes in front of predefined characters
$array[] = item
control structure
addslashes()
!= inequality
29. searches the subject for matches to a given pattern replaced with the given replacement text
shuffle()
boolean
preg_replace()
Constant
30. The order of operations.
abs()
POST
precedence
$varname[key]
31. Used to convert certain HTML tags into their entity versions.
curly braces; ${$total}
htmlspecialchars()
Magic Constant
client-side programing
32. Use _______ for passwords or pages that would not be bookmarked or pages that require security.
curly braces; ${$total}
negative numbers
POST
addcslashes()
33. Function can you use to format a number with commas
number_format()
===
ceil()
crypt()
34. This will show all error reporting.
+= or -= or *= or /=
error_reporting (E_ALL)
$_GET[]
XML
35. Online applications and resources which are available to the general public with very few restrictions
open source
sql
empty()
variable
36. a line of information that can be stored in a variable or used in a function or statement
predefined
string
for ($i = 0; $i < count($array); $i++) {statement(s);}
trim()
37. This error refers to a variable with no value.
Notice
.=
Constant
index
38. Used to replace a substring with another string - it is not case-sensitive.
str_ireplace()
true
boolean
strlen()
39. equivalence
general
==
if/elseif/else and switch statements
arsort()
40. To check if a constant is already declared
chr()
defined()
arsort()
PHP
41. This will not show error reporting - it will be turned off.
error_reporting (0)
the period; .
addslashes()
open source
42. a database which is best supported by PHP
Warning
superglobal
addcslashes()
mysql
43. a storage location in the computer's memory that has a type & a name and a contents
foreach loop
addslashes()
$_GET[]
variable
44. To set up error reporting
function error_reporting()
AJAX
round() Function
$$
45. To sort values of an array in reversed order
<?php
.=
rsort()
define()
46. TRUE or FALSE
mysql_fetch_object()
boolean
server-side programing
str_ireplace()
47. This error arises from misusing a function.
Warning
ASP
crypt()
strip_tags()
48. Operators used to operate and assign
drop
negative numbers
index
+= or -= or *= or /=
49. To sort values of an array without regard to the keys
define()
parentheses
sort()
precedence
50. This will show all error reporting except for notice errors.
the period; .
foreach loop
curly braces; ${$total}
error_reporting (E_ALL & -E_NOTICE)
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