Search Header Logo

Quiz sobre Spring e JPA

Authored by VICTOR MATHEUS DE SOUZA MULLER

Information Technology (IT)

11th Grade

Used 1+ times

Quiz sobre Spring e JPA
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

30 sec • 1 pt

Qual anotação é usada para mapear uma classe Java como uma entidade no JPA?

@Table

@Entity

@Column

@Id

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Qual é a função principal de um repositório no Spring Data JPA?

Gerenciar transações

Executar consultas SQL nativas

Fornecer operações CRUD para entidades

Configurar o contexto de persistência

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Qual anotação é usada para injetar uma dependência em um componente Spring?

@Autowired

@Inject

@Resource

@Component

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Qual anotação é usada para definir um controlador REST no Spring?

@RestController

@Controller

@Service

@Repository

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Qual anotação é usada para especificar a chave primária de uma entidade no JPA?

@PrimaryKey

@Id

@Key

@GeneratedValue

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Qual é a função de um serviço no padrão de camadas do Spring?

Gerenciar a lógica de negócios

Controlar a interface do usuário

Acessar diretamente o banco de dados

Configurar o contexto de aplicação

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Qual anotação é usada para mapear uma coluna de banco de dados para um campo de entidade no JPA?

@Column

@Field

@Table

@Entity

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

Microsoft

Continue with Microsoft

or continue with

Facebook

Facebook

Apple

Apple

Others

Others

Already have an account?