In: Computer Science
4. Give three examples of items that would be included in the Interface Tier.
5. Give three examples of items that would not be included in the Interface Tier.
6. Can some program code exist in the Interface Tier? If so, what tasks does this code provide?
7. What tasks can Business Rule Tier code accomplish that is similar to a task accomplished by code in the Interface Tier? Why is this code possibility duplicated in both tiers?
8. How does the Business Rules Tier pass and receive data (information)?
13. When must you convert numbers to a numeric form (such as Integer) for storage within a database?
14. Why use datasets to pass information between tiers?
15. What items have been missed or ignored in the case example?
4. Give three examples of items that would be included in the Interface Tier
Ans: In the interface tier-three things must be used That
is:
1) Displaying content that can be done using HTML, there different
versions of HTML like HTMl5(latest)
2) How that content should be displayed to the user or how it
should look at the end for this we can use CSS(Cascading style
sheet)
3) How the interface should behave and it can be done using
JAVASCRIPT
And Interface tier can communicate between other tiers through API(Application program Interface) calls
5. Give three examples of items that would not be included in
the Interface Tier.
Ans: On the interface tier you can not include the following
items;
1). You can not include business logic in your interface tier which
can be written in your backend with some programming language such
as JAVA, Python, PHP,
2). Data which you will get from your user should not be stored in
on the interface.
3). Should not include your core functions that have the logic
written in it, middleware function and Some security-related
components.
6. Can some program code exist in the Interface Tier? If so, what
tasks does this code provide?
Ans: Yes, Some program code can exist in the Interface tier when you have manipulated the data on the front, for example, you have to calculate the final amount based on the input provided by the user and show him instantly.
7). What tasks can Business Rule Tier code accomplish that is
similar to a task accomplished by code in the Interface Tier? Why
is this code possibility duplicated in both tiers?
Ans: When the information is passed between business rule tier and interface tier there a possibility that it can be manipulated by some hacker, so to verify or validate the data that it the proper format that was supposed to receive, so this is just a duplicacy but validation should be done.
8. How does the Business Rules Tier pass and receive data
(information)?
Ans: Business rule pass information with the help of datasets which
is just like a data table in databases, and used to transfer data
between tiers.
And these datasets can be sent or received to interface tier
through GET or POST request.
13. When must you convert numbers to a numeric form (such as
Integer) for storage within a database?
Ans: When we are about to store data in the database we should
convert that data or number in the numeric form
14. Why use datasets to pass information between tiers?
Ans: Dataset is a structure that can hold many data a table in a database, it can be set to pass information between tiers.
Transfer data between tiers is not that easy if you use data
entities for every single data you need to transfer.
It will take time as every entity will be identified and then used.
Have to make too many calls for every entity of the data. and there
is too much data in our databases nowadays.
To solve this kind of problems there is something called
Datasets.
In a dataset, there can be lots of data, and that can be fetched
and use as a set.
for example, if you need whole information related to an
organization that is stored in a table.
So, you can fetch whole data or a particular row and store it in a
dataset and use it anywhere.
And that dataset can be transferred anywhere between any tier to
use and it will be easy and less time consuming as it is a whole
data that is stored in one variable.