SE321 A Mid Fall2020
SE321 A Mid Fall2020
1. Briefly describe and draw the working flow of Domain name server. 2
2. Differentiate between <input type = “submit”/> and <input type = “button”/> 3
Also, mention other 4 values of type attribute of input tag.
3. Why do we use console.log() in JavaScript? 1
4. What do you mean by asynchronous and synchronous communication in client side? Which
technique could be used for asynchronous communication and why? 3
5. Recently two students of DIU has started a new e-commerce business. They mostly sale customize
and banded t-shirt from their website. They are added to their product(t-shirt) information into
their website. Customer can order and compare their favourites t-shirt through their system. Day
by day their system goes to the popular e-commerce site and increases the demand of their
product. So they want to customer get product information firstly which is not come to the server
or database. Also they want to give 11% discount for 11.11 campaign through the coupon code
“FEAST11.11”. For that purpose, they are planning to develop an online calculator which will
calculate the price & place order from online. In order to develop the system will ask little
information to the customer, same as the diagram given below:
Please note that a customer will face these question one after another. For example, if a customer
provides a valid answer in the first field(Name), only then the second field(Address) will appear
on the page. It means the visibility of the entire question except the first one will be set to hidden.
Only after receiving a valid answer, the system will show the next question.
Now design the system meeting all of the system requirements using the following instructions:
(2.5+2.5+2+3+3+3) = 16
a. Create the HTML form. Also, validate the form (Type Validation). Note: All fields are required
except the checkbox.
b. Check all the fields are filled up or not. If all fields have value then the submit button will be
enabled, otherwise it will be disabled.
c. Using JavaScript events show that whenever a customer click on submit button the calculated
price will be shown.
d. While placing an order using JavaScript check if the customer is a DIU student, then he/she
get extra 5% discount on their purchase amount above 500Tk. Show a new file upload field
for uploading student id card.
e. Add the compare product into compare box without page reloading or going to another page.
And Show the product information firstly without using database.
f. Using a client-side language receives the input values from the form and sends an
asynchronous request to the server with "get" method. Also, write code to receive the
response from server side.