Question

In: Computer Science

1. Describe the difference between a static web page and a dynamic one. 2.Briefly explain the...

1. Describe the difference between a static web page and a dynamic one.

2.Briefly explain the benefit of using a templating engine when developing a web app.

3.How does the express.js package make it easier to write a web application?

4.Describe how callbacks and promises help with asynchronous programming.

5.What is the difference between a GET and a POST request? When would you use each?

6.Explain what adding the body-parser plugin to your app allows you to do with express.

Solutions

Expert Solution

1. ans )

Static web pages are written in HTML, css etc, In  static web pages when the server receives a request for a web page, and the server send the response suddenly to the user who requested without any additional process carriying out.  it remains same ( static ) until someone changes it manually. as here the data is not changing. although the static web pages are simple in nature and easy to create and maintain.

Dynamic Web Pages are written in languages like CGI, AJAX, ASP.NET, etc.

In dynamic web pages, each time the content of the page is changing , so it is different for different user requested. It takes more time to load than the static web page. Dynamic web pages are mainly used to represent the frequently changing data, like weather information site, stoke price, commercial sites ( frequently updating data ) etc.

SOME IMPORTANT DIFFERENCES BETWEEN STATIC VS DYNAMIC WEB PAGES :

STATIC web page

DYNAMIC web page

take less time to load the page

take more time to load

simple and easy to create

more complex

database is not needed

a database is needed

written in javascript, html, css

in asp , asp.net etc

need less work

need updation and maintanence

information is not changed over time

changed over time


Related Solutions

1. Explain the static effects and dynamic effects of economic integration. What is the difference between...
1. Explain the static effects and dynamic effects of economic integration. What is the difference between trade creation and trade diversion resulting from economic integration? 2.What was the rationale for NAFTA? 3.What are the rules of origin and regional content provisions of NAFTA?
What is the difference between static efficiency for one period in time and dynamic efficiency over...
What is the difference between static efficiency for one period in time and dynamic efficiency over multiple periods? What is the discount rate and how is it used to compare a future dollar benefit to a present-day benefit? Suppose that you could have a sum of $1,000 today or 1,500 next year and the interest rate happened to be 10%. Which would be more valuable? Show your work.
What is the difference between static efficiency for one period in time and dynamic efficiency over...
What is the difference between static efficiency for one period in time and dynamic efficiency over multiple periods? What is the discount rate and how is it used to compare a future dollar benefit to a present-day benefit? Suppose you could have a sum of $1,000 today or 1,500 next year and the interest rate happened to be 10%. Which would be more valuable? Show your work. Yes this is supposed to be a single question just with multiple parts.
What is the difference between static efficiency for one period in time and dynamic efficiency over...
What is the difference between static efficiency for one period in time and dynamic efficiency over multiple periods? What is the discount rate and how is it used to compare a future dollar benefit to a present-day benefit? Suppose that you could have a sum of $1,000 today or 1,500 next year and the interest rate happened to be 10%. Which would be more valuable? Show your work.
Briefly describe static linking and dynamic linking. Include the advantages and disadvantages of dynamic linking over static linking.
Briefly describe static linking and dynamic linking. Include the advantages and disadvantages of dynamic linking over static linking.Describe a Windows DLL.Suppose you are writing a DLL and need to export the function void CYBR215(). Show the C syntax to export this function for use by other modules or executables.
Are static web pages more or less secure than dynamic web pages? What can make dynamic...
Are static web pages more or less secure than dynamic web pages? What can make dynamic web pages insecure? Why do developers insist on using dynamic web pages?
Briefly explain how Dynamic NAT is more effective than Static NAT
Examine the Security measures subnetting, NAT and ACL. Identify the security principles incorporates in creating these defence measures. Explain it as a scenario. Briefly explain how Dynamic NAT is more effective than Static NAT.
1. What is a divestiture? (2) 2. Briefly explain the difference between a spin-off and a...
1. What is a divestiture? (2) 2. Briefly explain the difference between a spin-off and a carve-out. (4) 3. Briefly explain bankruptcy costs(4)
Dynamic equilibrium vs equilibrium. What is the difference between a reaction in dynamic equilibrium and one...
Dynamic equilibrium vs equilibrium. What is the difference between a reaction in dynamic equilibrium and one at equilibrium? What is the difference between an open and a closed system? Entropy Changes during Egg Development Consider a system consisting of an egg in an incubator. The white and yolk of the egg contain proteins, carbohydrates, and lipids. If fertilized, the egg is transformed from a single cell to a complex organism. Discuss this irreversible process in terms of the entropy changes...
Please briefly explain us: 1) the difference between the journal and the ledger, and 2) when...
Please briefly explain us: 1) the difference between the journal and the ledger, and 2) when accounts should be debited, and when they should be credited.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT