Search Header Logo

Spring 100-150

Authored by Zhannat Akylbek

Other

12th Grade

Used 3+ times

Spring 100-150
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

51 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which Lombok annotation combines @Getter, @Setter, @ToString, @EqualsAndHashCode, and @RequiredArgsConstructor?

@Data

@Compound

@Bean

@EntityComplete

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

When configuring a relational database in `application.properties` for Spring Data JPA, which property specifies the JDBC URL?

spring.datasource.url

spring.jpa.database-url

spring.db.connection-string

spring.jdbc.url

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In a REST API, which HTTP method is typically used to delete a resource identified by a URI?

DELETE

REMOVE

DROP

ERASE

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the role of an `EntityManager` in JPA?

It is an API that manages the lifecycle of entities, including operations like persisting, finding, updating, and removing entities, and querying.

It is a factory for creating database connections.

It is an annotation to define an entity manager bean.

It is a tool for generating entity classes from database tables.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

If you want to ensure a specific field in your JPA entity is not null at the database level, which attribute of the `@Column` annotation would you use?

nullable = false

@NotNull

required = true

optional = false

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

When defining a one-to-one relationship in JPA, which annotation is used on the entity field representing the relationship?

@OneToOne

@SingleJoin

@UniqueAssociation

@ToOne

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of a "join table" in the context of a many-to-many relationship in relational databases?

To resolve a many-to-many relationship into two one-to-many relationships by having a table that links records from the two related tables.

To store denormalized data for faster reads.

To combine columns from multiple tables into a single view.

To partition a large table into smaller ones.

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?