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 :練習問題
その場で採点される選択問題 5 問と、解説つきの記述問題 5 問。すべて「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.
まず自分で答えを書いてから、解説と照らし合わせましょう。
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.
まず自分で答えを書いてから、解説と照らし合わせましょう。
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.
まず自分で答えを書いてから、解説と照らし合わせましょう。
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.
まず自分で答えを書いてから、解説と照らし合わせましょう。
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".
まず自分で答えを書いてから、解説と照らし合わせましょう。
※ thinkaのコンテンツはAIにより生成されているため、内容が正確でない場合があります。補助教材としてご使用いただき、公式の教材と合わせてご確認ください。
模範解答は見ました。次はあなたの答案を採点します。
このページは良い答案の形を示せますが、あなたの答案に何が足りないかは教えられません。thinka は実際の採点基準に沿って記述答案を約 15 秒で採点します。
同じような問題をもっと解きたい?このトピックの新しい問題を、解きながら採点。
練習を始める