COMPUTER NETWORKING

APPLICATION LAYER

CLIENT SERVER PARADIGM

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
In what scenario would client-side scripting be preferred over server-side scripting?
A
Form validation
B
User authentication
C
Database query
D
Server load balancing
Explanation: 

Detailed explanation-1: -If the user request requires server resources to validate the user input, you should use Server Side Validation. If the user request does not require any server resources to validate the input, you can use Client Side Validation.

Detailed explanation-2: -In general, it is best to perform input validation on both the client side and server side. Client-side input validation can help reduce server load and can prevent malicious users from submitting invalid data. However, client-side input validation is not a substitute for server-side input validation.

Detailed explanation-3: -When you enter data, the browser and/or the web server will check to see that the data is in the correct format and within the constraints set by the application. Validation done in the browser is called client-side validation, while validation done on the server is called server-side validation.

There is 1 question to complete.