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. Function used to convert new lines in a variable from a form to <br /> tags so that the data can be formatted correctly.
octal
nl2br()
indexed array
error_reporting (E_ALL)
2. _____ is a logical operator
error_reporting (E_ALL)
$$
XOR
precedence
3. Control structures that break exit
curly braces; ${$total}
if/elseif/else and switch statements
curly braces
bin2hex()
4. Tag to begin a php script
0
<?php
htmlentities()
ASP
5. Used to create a substring (referred to as a token) from a larger string
HTTP
preg_split()
mysql
strtok()
6. To find how many substrings are in a string
if/elseif/else and switch statements
asort()
substr_count()
single quotes
7. To declare a constant
define()
curly braces
not
variable
8. $_SERVER is a ________ variable.
function
strtok()
predefined
arsort()
9. bitwise XOR
^
$var++ and $var
Parse error
underscores
10. This fatal fatal is caused by a semantic mistake: omission of a semicolon or imbalance of quotations or parentheses or braces.
Parse error
fopen()
nl2br()
preg_replace()
11. bitwise right shift
XOR
preg_match()
chop()
>>
12. a storage location in the computer's memory that has a type & a name and a contents
variable
urlencode()
$_GET[]
mysql_fetch_array()
13. A data structure that can hold a number of items of data of the same type eg. a list of names
rand()
array
Hex
boolean
14. The four main error types are:Notice - Warning - ________ and Error.
control structure
<<
Parse error
mysql_close($dbc)
15. To close a connection between a database
array_merge()
mysql_close($dbc)
variable
$$
16. Returns an array that corresponds to the fetched row of MySQL data and moves the internal data pointer ahead
precedence
mysql_fetch_array()
Object
$_GET[]
17. Active Server Pages
ASP
asort()
$dbc = mysql_connect(hostname, username, password)
variable
18. Used to check if a given variable has an "empty" value - no value or 0 or FALSE.
array()
addcslashes()
Error
empty()
19. standard notation
date()
Constant
Parse error
decimal
20. signed floating-point value
1
index
float
echo
21. To iterate over the keys and values of an array
foreach loop
$_POST[]
float
function
22. container of ordered data elements
Array
urlencode()
precedence
Object
23. Document Type Definitions
DTD
abs()
drop
getrandmax()
24. any programing language where the script is parsed on the server
nl2br()
server-side programing
is_numeric()
$array[] = item
25. 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 __________.
statement
curly braces; ${$total}
abs()
urlencode()
26. To include files - _______ will give errors and _________ will terminate execution().
isset()
include() and require()
index
foreach loop
27. function Function used to create a random number
array
Constant
rand()
reassign
28. To merge arrays
error_reporting (E_ALL & -E_NOTICE)
list()
array_merge()
ksort()
29. An array of variables passed in the URL
int
preg_split()
$_GET[]
PHP
30. To iterate over the values of an array
for ($i = 0; $i < count($array); $i++) {statement(s);}
error_reporting (E_ALL & -E_NOTICE)
include() and require()
mysql
31. Used to convert certain HTML tags into their entity versions.
strlen()
arsort()
htmlspecialchars()
chop()
32. To counter htmlentities()
asort()
trim()
html_entity_decode()
$_SESSION[]
33. Similar to mysql_fetch_array() - but cannot be accessed by integer offset
parentheses
mysql_fetch_object()
Object
predefined variable
34. Variable names cannot begin with _______
define()
statement
numbers
crypt()
35. a language in which to make querys to a database with
octal
sql
function error_reporting()
str_word_count()
36. _______ is a comparison operator
array
!= inequality
XML
bin2hex()
37. To append elements to an array - this will assign item to the next available index; associative arrays get messy.
control structure
$array[] = item
null
is_numeric()
38. signed integer
int
Warning
PHP
decimal
39. The syntax for connecting to a database
asort()
$dbc = mysql_connect(hostname, username, password)
==
strip_tags()
40. Predefined constants such as __LINE__ or __FILE__ or __FUNCTION__ or __CLASS__ and __METHOD__
Magic Constant
negative numbers
foreach loop
isset()
41. To refer to an item in an array
addcslashes()
variable
$varname[key]
error_reporting (0)
42. The prefix for a dynamic variable - also known as a variable variable
===
int
$_REQUEST
$$
43. Used to check if a variable has any value (including 0 or FALSE or an empty string).
wordwrap()
floor()
isset()
number_format()
44. Asynchronous Javascript And XML
general
number_format()
AJAX
curly braces; ${$total}
45. Uses two arguments: constant name and constant definition
$varname[key]
define()
===
preg_replace()
46. Standard Generalized Markup Language
$_POST[]
SGML
AJAX
foreach loop
47. To determine the amount of elements in an array
$dbc = mysql_connect(hostname, username, password)
octal
array
count()
48. To remove all HTML and PHP tags.
.=
strip_tags()
asort()
!= inequality
49. When used the value can be passed safely through the URL (GET).
define()
null
urlencode()
Shebang
50. All variables must begin with _________.
predefined variable
the dollar sign $
define()
preg_replace()
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