Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

SECTION B: 6 0 Marks Question Two a ) Define an Internet Protocol? ( 0 4 Marks ) b ) Discuss the significance of the

SECTION B: 60 Marks
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 internel.
(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)
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Databases Illuminated

Authors: Catherine Ricardo

2nd Edition

1449606008, 978-1449606008

More Books

Students also viewed these Databases questions