Spring Web

Spring Web

Professional Development

9 Qs

quiz-placeholder

Similar activities

Media Sosial dan Dampaknya

Media Sosial dan Dampaknya

KG - Professional Development

10 Qs

MARKETING LECCION 3

MARKETING LECCION 3

Professional Development

10 Qs

Encuentro #TEAMLABOT

Encuentro #TEAMLABOT

Professional Development

10 Qs

JavaScript Quiz

JavaScript Quiz

Professional Development

10 Qs

2 año A

2 año A

Professional Development

10 Qs

DBMS-Transactions-Revision

DBMS-Transactions-Revision

Professional Development

12 Qs

Office 365

Office 365

Professional Development

11 Qs

Topic Quiz-1 : Python Basics

Topic Quiz-1 : Python Basics

Professional Development

10 Qs

Spring Web

Spring Web

Assessment

Quiz

Computers

Professional Development

Practice Problem

Hard

Created by

Ismail LAANAIT

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

9 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does MVC stand for? (Choose one.)

management versus control

model-view-controller

model verbosity clearance

model view conventions

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which Spring library is needed in your classpath to write a full-blown Spring web application? (Choose one.)

spring-core.jar is enough

spring-core.jar and spring-context.jar are enough

spring-web.jar is enough

spring-webmvc.jar is a must because that is where the DispatcherServlet class is

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of the @Controller annotation? (Choose one.)

to indicate that the bean is to be encapsulated in a special Web Proxy

to indicate that the class is to be used as a template to create a special type of bean required in a Spring web application to provide handler methods for requests

to declare a class as the configuration class for a Spring web application

4.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

Which scopes are web specific? (Choose all that apply.)

SCOPE_SESSION

SCOPE_THREAD

SCOPE_SINGLETON

SCOPE_APPLICATION

SCOPE_REQUEST

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Given the following controller class containing a single handler method, which of the following URLs will be handled by that method? (Choose one.)
@Controller
@RequestMapping("/persons")
public class PersonController {
@RequestMapping(value = "/showPerson")
public String show(@RequestParam("personId") Long id, Model model) {
...
}
}

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which class in the following list is the default view resolver in Spring: (Choose one.)

JspResourceViewResolver

ResourceViewResolver

InternalResourceViewResolver

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is wrong with the following controller class declaration? (Choose one.)
@ControllerAdvice
public class PersonsController {
@ExceptionHandler(NotFoundException.class)
@ResponseStatus(HttpStatus.NOT_FOUND)
public ModelAndView handle(NotFoundException ex) {
ModelAndView mav = new ModelAndView();
mav.addObject("problem", ex.getMessage());
mav.setViewName("error");
return mav;
}
}

Nothing.

This is not a controller class declaration, but a special type of bean used for handling exceptions thrown by handler methods.

The handle() method is not allowed to return an instance of ModelAndView

The handler method should be annotated with @RequestMapping or one of its specializations.

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?