Q: Which of the following methods can be used by the client and server to validate user input?
A) Validation using JavaScript on the client side
B) Validation through Servlets on the server side
C) Validation through Java Applets on the client side
D) Validation through XML on the server side
-
A
F) A) and D)
-
B
E) A) and B)
B
Answer:
B
Explanation:
The correct option is:
E) A) and B)
Explanation:
- A) Validation using JavaScript on the client side: JavaScript can be used on the client side to validate user input before sending it to the server.
- B) Validation through Servlets on the server side: Server-side validation is crucial to ensure that input is properly validated, even if it passes client-side validation.
Related Topic:
Share Above MCQ