A simple web form allows users to submit their name and email. Which of the following is a common method for handling this data on the server side after submission?
Senior Secondary (HKDSE) · Information and Communication Technology
Web Programming and Applications : Practice Questions
5 multiple-choice questions marked as you go, and 5 written questions with worked solutions. All on Web Programming and Applications .
A developer is designing a web form where users enter a numeric value \( X \). To prevent SQL Injection attacks while maintaining a responsive user interface, which of the following strategies should be implemented?
When comparing client-side scripting (e.g., JavaScript) and server-side scripting (e.g., PHP), which of the following tasks is generally ONLY possible for a server-side script to perform?
A web application processes a flight booking. The server-side script must perform the following actions:
1. Check if the seats available (\( A \)) is greater than or equal to requested seats (\( R \)).
2. Subtract \( R \) from \( A \) in the database.
3. Insert a new record into the BOOKINGS table.
Why is server-side scripting mandatory for this process?
In a web-based inventory system, a server-side script is used to process a sales transaction. If the current stock is represented by variable \( S \) and the quantity ordered is \( Q \), which of the following sequences of operations is most appropriate for the script to perform to ensure data integrity?
Name two common methods or platforms that can be used to publish web content onto the World Wide Web.
Write your answer out first, then check it against the worked solution.
Describe one function of a server-side script when handling user login credentials and explain why this task is typically handled server-side rather than client-side.
Write your answer out first, then check it against the worked solution.
Compare the impact on network traffic when using only server-side validation versus using a hybrid approach (client-side and server-side) for a long registration form.
Write your answer out first, then check it against the worked solution.
Consider an online registration form where users need to enter their email address and a password. Before submitting the form to the server, the website should check if the email address field is not empty.
(a) What is client-side data validation? Briefly explain its main purpose in this scenario.
(b) Give one example of a common client-side scripting language used to perform such validation.
Write your answer out first, then check it against the worked solution.
A school wants to develop a simple web-based homework checklist system for its students. The system should allow students to mark assignments as "completed" and view their upcoming deadlines. An administrator should be able to add new assignments to the system.
(a) Distinguish between client-side technologies and server-side technologies in the context of this homework checklist system, providing an example for each.
(b) Outline how the client-side and server-side scripts would typically interact when a student marks an assignment as "completed".
Write your answer out first, then check it against the worked solution.
* The content provided by thinka is generated by AI and may not always be accurate or up-to-date. Please use it as a supplementary resource and verify with official materials.
You've seen the model answer. Now get yours marked.
This page can show you how a good answer looks. It cannot tell you what your answer was missing. thinka marks your written work against the real mark scheme in about 15 seconds.
Want more questions like these? Get a fresh set on this topic, marked as you go.
Practise More