Close
« Tutorial

Spring MVC - Simple Form Submission MCQ

0/13
0 ✓
0 ✗

1. What is a form backing object in Spring MVC?

2. How does Spring's implicit data binding decide which form value goes to which field of the backing object?

3. Which HTTP method is normally used to submit a form that sends data to the server for processing?

4. A controller needs to show an empty form and also handle the form submission on the same URL. What is a common way to do this?

5. Is @ModelAttribute required on a handler method parameter to bind form data to a Java object?

6. Which annotation maps a handler method to HTTP POST requests in a short way?

7. An HTML input field has the name city. Which property of the backing object receives its value?

8. What does the action attribute of an HTML <form> tag specify?

9. A handler method returns the String "registration-done". What does this String usually mean in Spring MVC?

10. When a backing object is bound implicitly, under what default name is it added to the model?

11. Which annotation marks a class as a Spring MVC controller that handles web requests?

12. In a form submitted with POST, how does the form data reach the server?

Join