Answered step by step
Verified Expert Solution
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: Marks
Question Two
a Define an Internet Protocol?
Marks
b Discuss the significance of the Domain Name System in the internet world.
c Explain five advantages of the internel.
Marks
d With illustrations, explain the clientserver 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.
Marks
i
ii CSRF
c Describe each of the following terms as used in web development.
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",
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".
Marks
Hint: Use prepared statements. Passwords must be hashed.
c With examples, explain each of the following PHP variable scopes.
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,
Marks
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started