Question: Question Two a ) Define an Internet Protocol? ( 0 4 Marks ) b ) Discuss the significance of the Domain Name System in the

Question Two
a) Define an Internet Protocol?
(04 Marks)
b) Discuss the significance of the Domain Name System in the internet world.
c) Explain five advantages of the internet.
(04 Marks)
d) With illustrations, explain the client-server architecture in context of web apps.
Question Three
a) Explain what is meant by the term SQL injection. Give an example of a mechanism that can
be deployed to prevent the practice.
b) Write short notes on the following. Explain how to prevent web application attacks in each
scenario.
(04 Marks)
i) xSS
ii) CSRF
c) Describe each of the following terms as used in web development.
(12 Marks)
i. Hyperlink
ii. Web Browser
iii. Website
iv. Web Page
v. HTML Element
vi. IP Address
Question Four
Assume a grocery store uses a relational database to keep track of all users' and clients'
information and day to day transactions.
a) Write a PHP script required to connect to the grocery database "transactions",
(02 Marks)
b) Write a PHP script that takes client's Email Address, Username and Password as values from
user registration form and stores them in a table named "client".
(04 Marks)
Hint: Use prepared statements. Passwords must be hashed.
(c) With examples, explain each of the following PHP variable scopes.
(08 Marks)
i. Local variable scope
ii. Global variable scope
(d) Give three differences between a POST method and a GET method as used in PHP form
submissions,
(06 Marks)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!