Search Header Logo

SB_Quiz1_Day1-Day4

Authored by Pratham Soni

Computers

Professional Development

Used 6+ times

SB_Quiz1_Day1-Day4
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is the goal of Spring Boot?

Additional libraries for monitoring

Manual configuration

Extensive XML configuration

Faster setup and less configuration

2.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is the purpose of @Autowired annotation?

Defines and configures a bean

Marks a class as a Spring bean

Used for dependency injection

Specifies which bean to inject

3.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is the default scope of a class in Spring Boot?

Singleton

Session

Prototype

Request

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the difference between @Controller and @RestController in Spring MVC?

@Controller is used for RESTful API services, @RestController is used for traditional web applications

@Controller requires @ResponseBody for data response, @RestController implicitly includes @ResponseBody

@Controller returns data directly, @RestController returns views

@Controller handles web pages, @RestController handles RESTful web services

5.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

What is the purpose of JPQL in JPA?

A platform-independent object-oriented query language

Direct database access

More code for managing connections

Fine-grained control over database operations

6.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which annotation is used to specify the primary key of an entity in JPA?

@Id

@GeneratedValue

@Entity

@Table

7.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What does Hibernate do in relation to JPA?

Maps Java objects to database tables

Requires more boilerplate code

Handles direct database access

Provides fine-grained control over operations

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?